Closed
Description
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" } });