Add importKind to spec
This commit is contained in:
parent
2fb1f9aed3
commit
4ba998c5db
@ -1149,6 +1149,7 @@ A specifier in an import or export declaration.
|
|||||||
```js
|
```js
|
||||||
interface ImportDeclaration <: ModuleDeclaration {
|
interface ImportDeclaration <: ModuleDeclaration {
|
||||||
type: "ImportDeclaration";
|
type: "ImportDeclaration";
|
||||||
|
importKind: null | "type" | "typeof" | "value";
|
||||||
specifiers: [ ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier ];
|
specifiers: [ ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier ];
|
||||||
source: Literal;
|
source: Literal;
|
||||||
}
|
}
|
||||||
@ -1156,6 +1157,8 @@ interface ImportDeclaration <: ModuleDeclaration {
|
|||||||
|
|
||||||
An import declaration, e.g., `import foo from "mod";`.
|
An import declaration, e.g., `import foo from "mod";`.
|
||||||
|
|
||||||
|
> importKind is only set when `flow` plugin enabled in babel-parser
|
||||||
|
|
||||||
### ImportSpecifier
|
### ImportSpecifier
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user