Skip to content

Commit

Permalink
Update _gen.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
rojvv authored Dec 15, 2024
1 parent 92c175a commit a9e2f80
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions _gen.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { JsDocTagDoc, JsDocTagUnsupported } from "deno_doc/types.d.ts";
import { getDocs } from "./_docs.ts";
import { renderToString } from "lume/deps/preact.ts";
import { getMethodOptionalParams, Method } from "./components/Method.tsx";
import { TsType, TypeParams_ } from "./components/TsType.tsx";
import { Properties } from "./components/Properties.tsx";
import { TypeAlias } from "./components/TypeAlias.tsx";
import { Description } from "./components/Description.tsx";
import { renderToString } from "npm:preact-render-to-string";

const version = Deno.env.get("VERSION") ? ("/" + Deno.env.get("VERSION")) : "";

Expand Down Expand Up @@ -172,9 +172,8 @@ title: ${method.name}
}
//
if (method.functionDef.params.length > 0) {
method_md += "### Parameters \n\n";
method_md += renderToString(
<Method getLink={getLink} methodTypes={methodTypes}>{method}</Method>,
method_md += "### Parameters \n\n";
method_md += renderToString( <Method getLink={getLink} methodTypes={methodTypes}>{method}</Method>
);
method_md += "\n\n";
}
Expand Down

0 comments on commit a9e2f80

Please sign in to comment.