chore(website): cleanup ts-errors

This commit is contained in:
iCrawl
2023-04-14 20:03:40 +02:00
parent 2c25639a85
commit 615752e32b
14 changed files with 17 additions and 107 deletions

View File

@@ -74,6 +74,7 @@ export function TSDoc({ item, tsdoc }: { item: ApiItem; tsdoc: DocNode }): JSX.E
case DocNodeKind.FencedCode: {
const { language, code } = tsdoc as DocFencedCode;
// @ts-expect-error async component
return <SyntaxHighlighter code={code.trim()} key={idx} lang={language ?? 'typescript'} />;
}