TypeScript/tests/baselines/reference/exportAsNamespaceConflict.errors.txt
Wesley Wigham 3b54ffcf0e
Preserve const enums should keep import refs (#28498)
* Preserve const enums should keep import refs

for exported const enums exported via export default

Move some functionality around, small cleanup

Remove unneeded const enum check

* Only mark const enums as references with preserveConstEnums on in export assignments

* Limit change to declarations and preserveConstEnums mode
2019-08-05 16:47:29 -07:00

10 lines
280 B
Plaintext

/a.d.ts(3,1): error TS2303: Circular definition of import alias 'N'.
==== /a.d.ts (1 errors) ====
declare global { namespace N {} }
export = N;
export as namespace N;
~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2303: Circular definition of import alias 'N'.