refactor(compiler-cli): fix typo in `TypeScriptCompilerHost#getExportsOfModule()` error message (#34811)
PR Close #34811
This commit is contained in:
parent
fa8d324929
commit
ba2bf82540
|
@ -98,7 +98,7 @@ export class TypeScriptReflectionHost implements ReflectionHost {
|
||||||
getExportsOfModule(node: ts.Node): Map<string, Declaration>|null {
|
getExportsOfModule(node: ts.Node): Map<string, Declaration>|null {
|
||||||
// In TypeScript code, modules are only ts.SourceFiles. Throw if the node isn't a module.
|
// In TypeScript code, modules are only ts.SourceFiles. Throw if the node isn't a module.
|
||||||
if (!ts.isSourceFile(node)) {
|
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>();
|
const map = new Map<string, Declaration>();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue