-
-
Notifications
You must be signed in to change notification settings - Fork 78
Open
Description
stripInternal is not effective
Modify a test case at will, such as `tests/testcases/call-signature/index.d.ts'.
export interface I {
(arg: string): string;
staticProp: string;
}
/**
* @internal
*/
export declare const fn: {
(arg: string): string;
/**
* @internal
*/
staticProp: string;
};add meta.js
// @ts-check
/** @type {import('../../testcases').Meta} */
export default {
options: {
stripInternal: true,
},
rollupOptions: {},
};npm run test
testcases/call-signature... failed
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
'interface I {\n' +
' (arg: string): string;\n' +
' staticProp: string;\n' +
'}\n' +
+ '/**\n' +
+ ' * @internal\n' +
+ ' */\n' +
+ 'declare const fn: {\n' +
+ ' (arg: string): string;\n' +
+ ' /**\n' +
+ ' * @internal\n' +
+ ' */\n' +
- 'declare const fn: {\n' +
- ' (arg: string): string;\n' +
' staticProp: string;\n' +
'};\n' +
'export { fn };\n' +
'export type { I };\n'kricsleo
Metadata
Metadata
Assignees
Labels
No labels