mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
closes #3906 closes #5687 closes #3958 --------- Co-authored-by: Dunqing <dengqing0821@gmail.com>
82 lines
No EOL
1.2 KiB
TypeScript
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 {} |