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",