Files
tsgo/testdata/baselines/reference/submodule/compiler/exportSpecifierReferencingOuterDeclaration2.errors.txt

11 lines
520 B
Plaintext

exportSpecifierReferencingOuterDeclaration2_B.ts(1,10): error TS2661: Cannot export 'X'. Only local declarations can be exported from a module.
==== exportSpecifierReferencingOuterDeclaration2_A.ts (0 errors) ====
declare namespace X { export interface bar { } }
==== exportSpecifierReferencingOuterDeclaration2_B.ts (1 errors) ====
export { X };
~
!!! error TS2661: Cannot export 'X'. Only local declarations can be exported from a module.
export declare function foo(): X.bar;