Skip to content

Commit

Permalink
Add missing assertions type (#13905)
Browse files Browse the repository at this point in the history
  • Loading branch information
sosukesuzuki committed Nov 1, 2021
1 parent 2d9de5f commit cba7f9e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/babel-parser/src/types.js
Expand Up @@ -898,6 +898,8 @@ export type ImportDeclaration = NodeBase & {
source: Literal,

importKind?: "type" | "typeof" | "value", // TODO: Not in spec

assertions?: $ReadOnlyArray<ImportAttribute>,
};

export type ImportSpecifier = ModuleSpecifier & {
Expand Down Expand Up @@ -952,6 +954,7 @@ export type ExportAllDeclaration = NodeBase & {
type: "ExportAllDeclaration",
source: Literal,
exportKind?: "type" | "value", // TODO: Not in spec
assertions?: $ReadOnlyArray<ImportAttribute>,
};

// JSX (TODO: Not in spec)
Expand Down

0 comments on commit cba7f9e

Please sign in to comment.