Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Description
THIS IS BREAKING CHANGE
What is this change about?
TSImportType
has boolean propertyisTypeOf
that is inconsistent with other usages oftypeof
within AST structure.
isTypeOf
property is unique (not used anywhere else in code)
typex=typeofimport('x')
TSImportType: - isTypeOf: boolean
typex=typeofwindow
TSTypeQuery: - exprName: Identifier
Why we should change it?
- Improve consistency of ast structure.
- Align generated structure with babel representation
- Allow consumers (eg. prettier) to correctly place comment -link
typeof/* comment */import('x')