We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 067fe82 commit dff885cCopy full SHA for dff885c
sphinx_js/js/redirectPrivateAliases.ts
@@ -167,7 +167,11 @@ export function redirectPrivateTypes(app: Application): ReadonlySymbolToType {
167
168
const missing = discoverMissingExports(mod, context);
169
for (const name of missing) {
170
- const decl = name.declarations![0];
+ // Some symbols e.g. JSX.LibraryManagedAttributes have no declarations
171
+ if (!name.declarations || name.declarations.length === 0) {
172
+ continue;
173
+ }
174
+ const decl = name.declarations[0];
175
if (decl.getSourceFile().fileName.includes("node_modules")) {
176
continue;
177
}
0 commit comments