mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +00:00
Previous I didn't follow the behavior of `TypeScript` to handle `export` in `namespace` as I thought no one used this
36 lines
No EOL
551 B
TypeScript
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;
|
|
} |