-
-
Notifications
You must be signed in to change notification settings - Fork 745
Closed
Closed
Copy link
Description
I have found a case where an error occurs in document output when the TypeScript compilation option strictNullChecks
is true.
Strangely enough, if you set strictNullChecks to false, it works correctly.
Search terms
A kind of which did not receive a URL
issue.
Expected Behavior
Should work whether the TypeScript compile option strictNullChecks
is true or false.
It worked before v0.28.7 and reproduced from v0.28.8.
Actual Behavior
Produces html output error.
[error] Tried to get a URL of a router target DOMIterable.[iterator].__type.__type which did not receive a URL
[error] html output could not be generated due to the errors above
[error] Found 2 errors and 0 warnings
Steps to reproduce the bug
- Unzip repro_package.zip
- cd unzipped directory
- npm i
- npm test
bug-repro.d.ts:
export interface Constructor<T> {
new (...args: any[]): T;
}
export interface MixinConstructor<B extends Constructor<object>, U> {
new (...args: ConstructorParameters<B>): U;
}
declare class DOMBase<T extends Node> {
[Symbol.iterator](): Iterator<T>;
}
export interface DOMIterable extends Partial<DOMBase<Node>> {
}
declare const DOMClass_base: MixinConstructor<typeof DOMBase, DOMBase<Node> & object>;
declare class DOMClass extends DOMClass_base {
private constructor();
}
tsconfig.json:
{
"compilerOptions": {
"module": "esnext",
"target": "es2024",
"lib": ["es2024", "dom", "dom.iterable"],
"moduleResolution": "node",
"resolveJsonModule": true,
"strictNullChecks": true,
"types": []
},
"include": [
"./types/*.d.ts"
]
}
Environment
- Typedoc version: v0.28.12
- TypeScript version: v5.9.2
- Node.js version: v22.14.0
- OS: Widnows11
Metadata
Metadata
Assignees
Labels
No labels