fix(node-swc/types): Add isTypeOnly to types (#4303)

This commit is contained in:
Yorkie Liu 2022-04-11 21:04:37 +08:00 committed by GitHub
parent 4ed3838ad7
commit 1a48732e78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1575,6 +1575,7 @@ export interface NamedImportSpecifier extends Node, HasSpan {
type: "ImportSpecifier";
local: Identifier;
imported: Identifier | null;
isTypeOnly?: boolean;
}
export type ExportSpecifier =
@ -1605,6 +1606,7 @@ export interface NamedExportSpecifier extends Node, HasSpan {
* `Some(bar)` in `export { foo as bar }`
*/
exported: Identifier | null;
isTypeOnly?: boolean;
}
interface HasInterpreter {