You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Type should be extracted correctly or at least not crash
Actual Behavior
AssertionError [ERR_ASSERTION]: Query type failed to get a symbol for: typeof TypeEmitter<T, TOptions>. This is a bug.
at Object.convertType (/Users/timotheeguerin/.npm/_npx/dafcb7cdaad6ed61/node_modules/typedoc/dist/lib/converter/types.js:394:30)
at convertType (/Users/timotheeguerin/.npm/_npx/dafcb7cdaad6ed61/node_modules/typedoc/dist/lib/converter/types.js:105:34)
at Converter.convertType (/Users/timotheeguerin/.npm/_npx/dafcb7cdaad6ed61/node_modules/typedoc/dist/lib/converter/converter.js:93:40)
at /Users/timotheeguerin/.npm/_npx/dafcb7cdaad6ed61/node_modules/typedoc/dist/lib/converter/factories/signature.js:89:44
at Array.map (<anonymous>)
at convertParameters (/Users/timotheeguerin/.npm/_npx/dafcb7cdaad6ed61/node_modules/typedoc/dist/lib/converter/factories/signature.js:70:23)
at createSignature (/Users/timotheeguerin/.npm/_npx/dafcb7cdaad6ed61/node_modules/typedoc/dist/lib/converter/factories/signature.js:39:25)
at Object.convertFunctionOrMethod (/Users/timotheeguerin/.npm/_npx/dafcb7cdaad6ed61/node_modules/typedoc/dist/lib/converter/symbols.js:247:41)
at convertSymbol (/Users/timotheeguerin/.npm/_npx/dafcb7cdaad6ed61/node_modules/typedoc/dist/lib/converter/symbols.js:135:41)
at Converter.convertExports (/Users/timotheeguerin/.npm/_npx/dafcb7cdaad6ed61/node_modules/typedoc/dist/lib/converter/converter.js:201:41) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: undefined,
expected: true,
operator: '=='
}
Steps to reproduce the bug
Add the following code when using typescript 5.0(Not having an issue before)
This appears to be because TS before 5.0 didn't preserve the query type when dealing with types (as you can see by pasting this into https://ts-ast-viewer.com/), so I never noticed before now that TS doesn't always give a symbol. I've asked in the compiler API channel of the TS discord if there's a better way of doing this.
Search terms
typescript5.0, query failed
Expected Behavior
Type should be extracted correctly or at least not crash
Actual Behavior
Steps to reproduce the bug
Add the following code when using typescript 5.0(Not having an issue before)
Repro PR: TypeStrong/typedoc-repros#28
Environment
The text was updated successfully, but these errors were encountered: