Skip to content

allowSyntheticDefaultImports does not allow named import-style aliasing of default #10083

Description

foo.d.ts

exportfunctionfoo(){}exportfunctionbar(){}

bar.ts

import{defaultasFoo}from"./foo";

Note that the following does work:

importFoofrom"./foo";

Metadata

Metadata

Labels

BugA bug in TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions