-
-
Notifications
You must be signed in to change notification settings - Fork 628
Closed
Labels
A-isolated-declarationsIsolated DeclarationsIsolated DeclarationsC-enhancementCategory - New feature or requestCategory - New feature or requestE-Help WantedExperience level - For the experienced collaboratorsExperience level - For the experienced collaborators
Description
Tested version: 0.16.3
> require('oxc-transform').isolatedDeclaration('hello.ts', `
export class Foo {
[Symbol.hasInstance](): boolean {
return false;
}
}
`)
{
sourceText: 'export declare class Foo {}\n',
errors: [
'TS9038: Computed property names on class or object literals cannot be inferred with --isolatedDeclarations.'
]
}
Expected:
export declare class Foo {
[Symbol.hasInstance](): boolean;
}
Actual:
export declare class Foo {}
Metadata
Metadata
Assignees
Labels
A-isolated-declarationsIsolated DeclarationsIsolated DeclarationsC-enhancementCategory - New feature or requestCategory - New feature or requestE-Help WantedExperience level - For the experienced collaboratorsExperience level - For the experienced collaborators