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
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user