-
Notifications
You must be signed in to change notification settings - Fork 626
[api-extractor] InternalError when analyzing EditorState from draft-js #1001
New issue
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
Comments
Inside the typings for @types\draft-js\index.d.ts we have this: export as namespace Draft;
declare namespace Draft {
namespace Model {
namespace ImmutableData {
class EditorState extends Record {
// ...
}
}
}
}
import EditorState = Draft.Model.ImmutableData.EditorState;
export {
EditorState
}; Initially I thought this was another instance of the // If the file is from a package that does not support AEDoc, then we process the
// symbol itself, but we don't attempt to process any parent/children of it.
const followedSymbolSourceFile: ts.SourceFile = followedSymbol.declarations[0].getSourceFile();
if (this._program.isSourceFileFromExternalLibrary(followedSymbolSourceFile)) {
if (!this._packageMetadataManager.isAedocSupportedFor(followedSymbolSourceFile.fileName)) {
nominal = true;
}
} Whereas if It seems that the compiler's |
This is working now in my branch for PR #1002 It makes the analysis accurate so that we can simply test whether |
Fixed in #1002 |
@nvh reported an error in issue #949, which on investigation turned out to be a separate issue:
The error message was:
The text was updated successfully, but these errors were encountered: