- Notifications
You must be signed in to change notification settings - Fork664
Open
Description
tsconfig.json
{ "compilerOptions": { "outDir": "./dist", "declaration": true, "moduleResolution": "node", "strict": true, "skipLibCheck": true }}
a.ts
export function Foo() { return "Foo";}export enum Bar { bar}Foo.Bar = Bar;
tsgo emit output
➜ tsgo➜ cat dist/a.d.tsexport declare function Foo(): string;export declare enum Bar { bar = 0}
tsc emit output
➜ tsc➜ cat dist/a.d.tsexport declare function Foo(): string;export declare namespace Foo { var Bar: typeof import("./a").Bar;}export declare enum Bar { bar = 0}