Closed
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 {}