mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
11 lines
476 B
Plaintext
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;
|
|
} |