Skip to content

Infering type from usage does silly import #32910

Closed
@jpike88

Description

@jpike88

TypeScript Version: typescript@3.6.0-dev.20190814

myInterfaceFile.ts

export interface MyExportedInterface {
	something: number
}

another file, when using 'infer type from usage' option in VSCode

export async function someFunction(metricParams: { algebra: import("../../../../../../../../../blaa/bla/myInterfaceFile.ts").MyExportedInterface }) {

}

An 'import' function shouldn't be called.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions