Skip to content

isolatedDeclarations: error on setters #5668

@yyx990803

Description

@yyx990803

In:

export interface X {
  set value(_: string)
}

Error:

  x TS9013: Expression type can't be inferred with --isolatedDeclarations.
   ,-[src.ts:2:3]
 1 | export interface X {
 2 |   set value(_: string)
   :   ^^^^^^^^^^^^^^^^^^^^
 3 | }
   `----

The transform can output desired code, but the error exists and seems incorrect.

Metadata

Metadata

Assignees

Labels

C-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