oxc/crates/oxc_isolated_declarations/tests/fixtures/module-declaration-with-export.ts
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

36 lines
No EOL
551 B
TypeScript

export namespace OnlyOneExport {
export const a = 0;
}
export namespace TwoExports {
export const c = 0;
export const a: typeof c = 0;
}
export namespace OneExportReferencedANonExported {
const c = 0;
export const a: typeof c = c;
}
declare module "OnlyOneExport" {
export const a = 0;
}
declare module "TwoExports" {
export const c = 0;
export const a: typeof c;
}
declare module "OneExportReferencedANonExported" {
const c = 0;
export const a: typeof c;
}
declare global {
const c = 0;
export const a: typeof c;
}