From cba7f9e5036c3c8b73faa988a0a9ba410511d0b2 Mon Sep 17 00:00:00 2001 From: Sosuke Suzuki Date: Mon, 1 Nov 2021 21:43:39 +0900 Subject: [PATCH] Add missing assertions type (#13905) --- packages/babel-parser/src/types.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/babel-parser/src/types.js b/packages/babel-parser/src/types.js index 5362caf18d..de30758084 100644 --- a/packages/babel-parser/src/types.js +++ b/packages/babel-parser/src/types.js @@ -898,6 +898,8 @@ export type ImportDeclaration = NodeBase & { source: Literal, importKind?: "type" | "typeof" | "value", // TODO: Not in spec + + assertions?: $ReadOnlyArray, }; export type ImportSpecifier = ModuleSpecifier & { @@ -952,6 +954,7 @@ export type ExportAllDeclaration = NodeBase & { type: "ExportAllDeclaration", source: Literal, exportKind?: "type" | "value", // TODO: Not in spec + assertions?: $ReadOnlyArray, }; // JSX (TODO: Not in spec)