Skip to content

Commit cba7f9e

Browse files
authored
Add missing assertions type (#13905)
1 parent 2d9de5f commit cba7f9e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/babel-parser/src/types.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,8 @@ export type ImportDeclaration = NodeBase & {
898898
source: Literal,
899899

900900
importKind?: "type" | "typeof" | "value", // TODO: Not in spec
901+
902+
assertions?: $ReadOnlyArray<ImportAttribute>,
901903
};
902904

903905
export type ImportSpecifier = ModuleSpecifier & {
@@ -952,6 +954,7 @@ export type ExportAllDeclaration = NodeBase & {
952954
type: "ExportAllDeclaration",
953955
source: Literal,
954956
exportKind?: "type" | "value", // TODO: Not in spec
957+
assertions?: $ReadOnlyArray<ImportAttribute>,
955958
};
956959

957960
// JSX (TODO: Not in spec)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy