We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tuple, optional, convertType
Docs should be generated for valid code.
Extending a tuple type that includes an optional member causes TypeDoc to exit with an unexpected error. This might be related to #1439.
Try to generate docs for this:
export function fails<T extends [foo: any, bar?: any]>(a: T): T { return a; }
This causes an error Cannot read property 'name' of undefined to be thrown from here
Cannot read property 'name' of undefined
typedoc/src/lib/converter/types.ts
Line 819 in 0c3b1a0
elements
namedMembers
Minimal reproduction: https://gist.github.com/eemeli/a860c474d8a8a221985aa3fc883baed0
The text was updated successfully, but these errors were encountered:
685cd3e
Oh shoot.. this is another instance of #1408. TS does weird things with generic constraints. Fixed in 0.20.11, thanks for the reproduction!
Sorry, something went wrong.
No branches or pull requests
Search terms
tuple, optional, convertType
Expected Behavior
Docs should be generated for valid code.
Actual Behavior
Extending a tuple type that includes an optional member causes TypeDoc to exit with an unexpected error. This might be related to #1439.
Steps to reproduce the bug
Try to generate docs for this:
This causes an error
Cannot read property 'name' of undefined
to be thrown from heretypedoc/src/lib/converter/types.ts
Line 819 in 0c3b1a0
due to
elements
having a length that's one greater than the length ofnamedMembers
.Minimal reproduction: https://gist.github.com/eemeli/a860c474d8a8a221985aa3fc883baed0
Environment
The text was updated successfully, but these errors were encountered: