Files
tsgo/testdata/baselines/reference/submodule/conformance/exportNonLocalDeclarations.errors.txt

12 lines
618 B
Plaintext

exportNonLocalDeclarations.ts(1,10): error TS2661: Cannot export 'string'. Only local declarations can be exported from a module.
exportNonLocalDeclarations.ts(2,15): error TS2661: Cannot export 'number'. Only local declarations can be exported from a module.
==== exportNonLocalDeclarations.ts (2 errors) ====
export { string };
~~~~~~
!!! error TS2661: Cannot export 'string'. Only local declarations can be exported from a module.
export type { number };
~~~~~~
!!! error TS2661: Cannot export 'number'. Only local declarations can be exported from a module.