Skip to content

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

Closed
@DanielRosenwasser

Description

@DanielRosenwasser

foo.d.ts

export function foo() { }

export function bar() { }

bar.ts

import { default as Foo } from "./foo";

Note that the following does work:

import Foo from "./foo";

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions