Skip to content

Oxc Parser - failed to parse import asserts in type alias #4601

@EliLichtblau

Description

@EliLichtblau

This is surprisingly valid TS:

type Vite =  typeof import("vite", { assert: { "resolution-mode": "import" } });

It looks like oxc fails to parse this in the playground.

TS playground
oxc playgroud

Metadata

Metadata

Assignees

Labels

C-bugCategory - Bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions