mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
Previous I didn't follow the behavior of `TypeScript` to handle `export` in `namespace` as I thought no one used this
34 lines
716 B
Text
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;
|
|
}
|