refactor(compiler-cli): fix typo in `TypeScriptCompilerHost#getExportsOfModule()` error message (#34811)

PR Close #34811
This commit is contained in:
George Kalpakas 2020-01-15 21:53:05 +02:00 committed by Andrew Kushnir
parent fa8d324929
commit ba2bf82540
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ export class TypeScriptReflectionHost implements ReflectionHost {
getExportsOfModule(node: ts.Node): Map<string, Declaration>|null {
// In TypeScript code, modules are only ts.SourceFiles. Throw if the node isn't a module.
if (!ts.isSourceFile(node)) {
throw new Error(`getDeclarationsOfModule() called on non-SourceFile in TS code`);
throw new Error(`getExportsOfModule() called on non-SourceFile in TS code`);
}
const map = new Map<string, Declaration>();