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
functioncreateReferenceReflection(context,source,target){if(!(context.scopeinstanceofmodels_1.ContainerReflection)){thrownewError('Cannot add reference to a non-container');}if(target.declarations.some(d=>context.isOutsideDocumentation(d.getSourceFile().fileName))){return;
...
}
I don't know when will be target.declaration === undefined. I have used typedoc-plugin-lerna-packages plugin. Would someone give me some information ?
Environment
Typedoc version: 0.16.11
TypeScript version: 3.7.5
Node.js version: v13.8.0
OS: mac os catalina
The text was updated successfully, but these errors were encountered:
TypeScript's types are wrong about some nullable types. symbol.declarations is one of them. We should be using symbol.getDeclarations() there instead and checking for null. I think it is correct to assume that if there are no declarations, the symbol is external.
symbol.declarations is refers to everywhere the symbol is defined. That might be in declaration files or source files. symbol.getDeclarations() is just a getter which returns symbol.declarations, but is correctly typed to return ts.Node[] | undefined, while symbol.declarations is incorrectly typed to be type ts.Node[]. There's an open issue in the TS repo regarding this. microsoft/TypeScript#24706
I don't know when will be
target.declaration === undefined
. I have usedtypedoc-plugin-lerna-packages
plugin. Would someone give me some information ?Environment
The text was updated successfully, but these errors were encountered: