Skip to content

Commit

Permalink
Refine typedoc configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
schlusslicht committed Apr 11, 2022
1 parent c9b37b7 commit 317d591
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
12 changes: 10 additions & 2 deletions 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 {
Expand Down Expand Up @@ -64,6 +63,15 @@ declare global {

}

interface Node {

/**
* @see https://github.com/google/incremental-dom/pull/467
*/
readonly namespaceURI: string | null;

}

}

/**
Expand Down Expand Up @@ -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;
}
Expand Down
9 changes: 5 additions & 4 deletions tsconfig.json
Expand Up @@ -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"
]
}
},
Expand All @@ -56,6 +52,11 @@
"excludeExternals": true,
"treatWarningsAsErrors": true,

"compilerOptions": {
"noUnusedLocals": false,
"noUnusedParameters": false
},

"entryPoints": [
"./packages/bin/index.ts",
"./packages/bus/index.ts",
Expand Down

0 comments on commit 317d591

Please sign in to comment.