Skip to content

isolatedDeclaration: dropping types used in declare module blocks #5667

@yyx990803

Description

@yyx990803

When using isolatedDeclaration transform:

In:

import { type X } from './x'

type Y = 1

declare module "foo" {
  interface Foo {
    x: X
    y: Y
  }
}

Out (see that import of X and declaration of Y are both incorrectly removed):

declare module "foo" {
	interface Foo {
		x: X;
		y: Y;
	}
}
export {};

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