Closed
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: