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

11 lines
476 B
Plaintext

exportSpecifierReferencingOuterDeclaration1.ts(3,14): error TS2661: Cannot export 'X'. Only local declarations can be exported from a module.
==== exportSpecifierReferencingOuterDeclaration1.ts (1 errors) ====
declare namespace X { export interface bar { } }
declare module "m" {
export { X };
~
!!! error TS2661: Cannot export 'X'. Only local declarations can be exported from a module.
export function foo(): X.bar;
}