From 317d59192eb1df6c7cb484a4c515514ec1b74cef Mon Sep 17 00:00:00 2001 From: Philip Schildkamp Date: Mon, 11 Apr 2022 01:35:09 +0200 Subject: [PATCH] Refine `typedoc` configuration - See: https://github.com/TypeStrong/typedoc/pull/1891 --- packages/shell/src/component/runtime.ts | 12 ++++++++++-- tsconfig.json | 9 +++++---- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/packages/shell/src/component/runtime.ts b/packages/shell/src/component/runtime.ts index 6bd5080..8f419e1 100644 --- a/packages/shell/src/component/runtime.ts +++ b/packages/shell/src/component/runtime.ts @@ -1,5 +1,4 @@ import { TypeOf } from '@sgrud/core'; -// @ts-expect-error https://github.com/TypeStrong/typedoc/pull/1891 import { elementClose, elementOpen, getKey, patch, text } from 'incremental-dom'; declare global { @@ -64,6 +63,15 @@ declare global { } + interface Node { + + /** + * @see https://github.com/google/incremental-dom/pull/467 + */ + readonly namespaceURI: string | null; + + } + } /** @@ -126,7 +134,7 @@ export function createElement( } } - element.push(elementClose.bind(null, type)); + element.push(elementClose.bind(null, type as keyof JSX.IntrinsicElements)); return element; } diff --git a/tsconfig.json b/tsconfig.json index b82bfa4..524d5b7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -37,10 +37,6 @@ "paths": { "@sgrud/*": [ "./packages/*" - ], - // https://github.com/TypeStrong/typedoc/pull/1891 - "incremental-dom": [ - "./node_modules/incremental-dom/dist/incremental-dom-cjs.js" ] } }, @@ -56,6 +52,11 @@ "excludeExternals": true, "treatWarningsAsErrors": true, + "compilerOptions": { + "noUnusedLocals": false, + "noUnusedParameters": false + }, + "entryPoints": [ "./packages/bin/index.ts", "./packages/bus/index.ts",