Add importKind to spec

This commit is contained in:
Daniel Tschinder 2019-02-10 23:22:53 -08:00 committed by Nicolò Ribaudo
parent 2fb1f9aed3
commit 4ba998c5db

View File

@ -1149,6 +1149,7 @@ A specifier in an import or export declaration.
```js
interface ImportDeclaration <: ModuleDeclaration {
type: "ImportDeclaration";
importKind: null | "type" | "typeof" | "value";
specifiers: [ ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier ];
source: Literal;
}
@ -1156,6 +1157,8 @@ interface ImportDeclaration <: ModuleDeclaration {
An import declaration, e.g., `import foo from "mod";`.
> importKind is only set when `flow` plugin enabled in babel-parser
### ImportSpecifier
```js