Skip to content

isolatedDeclarations drops type parameters of methods #3918

@MichaelMitchell-at

Description

@MichaelMitchell-at
> require('oxc-transform').isolatedDeclaration("hello.ts", `export class Foo { foo<F>(f: F): F { return f } }`)
{
  sourceText: 'export declare class Foo {\n\tfoo(f: F): F;\n}\n',
  errors: []
}

Metadata

Metadata

Assignees

Labels

A-codegenArea - Code GenerationC-bugCategory - Bug

Type

No type

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions