oxc/crates/oxc_isolated_declarations/tests/snapshots/module-declaration-with-export.snap
Dunqing 4a62703d88 feat(isolated-declarations): handle export in the namespace correctly (#5950)
Previous I didn't follow the behavior of `TypeScript` to handle `export` in `namespace` as I thought no one used this
2024-09-21 16:39:58 +00:00

34 lines
716 B
Text

---
source: crates/oxc_isolated_declarations/tests/mod.rs
input_file: crates/oxc_isolated_declarations/tests/fixtures/module-declaration-with-export.ts
---
```
==================== .D.TS ====================
export declare namespace OnlyOneExport {
const a = 0;
}
export declare namespace TwoExports {
const c = 0;
const a: typeof c;
}
export declare namespace OneExportReferencedANonExported {
const c = 0;
export const a: typeof c;
export {};
}
declare module "OnlyOneExport" {
const a = 0;
}
declare module "TwoExports" {
const c = 0;
const a: typeof c;
}
declare module "OneExportReferencedANonExported" {
const c = 0;
const a: typeof c;
}
declare global {
const c = 0;
export const a: typeof c;
}