-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Declaration EmitThe issue relates to the emission of d.ts filesThe issue relates to the emission of d.ts filesHelp WantedYou can do thisYou can do this
Milestone
Description
TypeScript Version: 2.9.0-dev.20180420
Search Terms: stripInternal
Code
bug.ts:
export class Foo {
constructor(/** @internal */ public bar: string) {}
/** @internal */ zoo: string;
}tsconfig.json:
{
"compilerOptions": {
"declaration": true,
"stripInternal": true
}
}Expected behavior:
bug.d.ts:
export declare class Foo {
constructor(bar: string);
}Both bar and zoo declarations are stripped
Actual behavior:
bug.d.ts:
export declare class Foo {
bar: string;
constructor(/** @internal */ bar: string);
}bar declaration is not stripped.
Playground Link:
Related Issues:
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Declaration EmitThe issue relates to the emission of d.ts filesThe issue relates to the emission of d.ts filesHelp WantedYou can do thisYou can do this