-
Notifications
You must be signed in to change notification settings - Fork 197
Open
pionxzh/ast-types-x
#4Description
When upgrading to TypeScript 5.4+, importing from ast-types leads to type errors.
Reproduction:
- check out chore(deps): update dependency typescript to v5.4.5 backstage/backstage#24265
- run
yarn install - run
yarn tsc:full
Obeying the instructions and explicitly making them type imports solves the problem:
-import { ASTNode, Type, AnyType, Field } from "./lib/types";
+import { ASTNode, type Type, AnyType, Field } from "./lib/types";
-import { NodePath } from "./lib/node-path";
+import { type NodePath } from "./lib/node-path";
-import { builders } from "./gen/builders";
+import { type builders } from "./gen/builders";Metadata
Metadata
Assignees
Labels
No labels
