oxc/crates/oxc_isolated_declarations/tests/fixtures/strip-internal.ts
Boshen 84a5816d03
feat(isolated_declarations): add stripInternal (#5878)
closes #3906
closes #5687
closes #3958

---------

Co-authored-by: Dunqing <dengqing0821@gmail.com>
2024-09-19 23:14:47 +08:00

82 lines
No EOL
1.2 KiB
TypeScript

/*
@internal
*/
class StripInternalClass {
public test() {
console.log("test");
}
}
class StripInternalClassFields {
/**
* @internal
*/
internalProperty: string = "internal";
// @internal
internalMethod(): void {}
}
/**
@internal
*/
function stripInternalFunction() {
console.log("test");
}
export { stripInternalFunction, StripInternalClass, StripInternalClassFields };
/**
@internal
*/
export function stripInternalExportedFunction() {
console.log("test");
}
/**
@internal*/
export const stripInternalExportedConst = "test";
/**
@internal*/
export interface StripInternalExportedInterface {}
export interface StripInternalInterfaceSignatures {
/**
* @internal
*/
internalMethod(): void;
/**
* @internal
*/
internalProperty: number;
/**@internal */
new (): any;
}
export type StripInternalTypeSignatures = {
/**
* @internal
*/
internalMethod(): void;
/**
* @internal
*/
internalProperty: number;
/**@internal */
new (): any;
};
export namespace StripInternalNamespaceInner {
/**
* @internal
*/
export function internalFunction() {
console.log("test");
}
}
/**
* @internal
*/
export namespace StripInternalNamespace {}