Skip to content

No error on resolution-mode in import() types in stable versions #49354

Closed
@DanielRosenwasser

Description

@DanielRosenwasser

Using module: nodenext

import type x from "asd" assert { "resolution-mode": "import" };

You'll get

Resolution mode assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.

But that's not the case for the following:

type A = import("", { assert: { "resolution-mode": "import" } }).Foo;

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

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions