summaryrefslogtreecommitdiff
path: root/node_modules/@babel/parser/typings
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/@babel/parser/typings')
-rw-r--r--node_modules/@babel/parser/typings/babel-parser.d.ts44
1 files changed, 23 insertions, 21 deletions
diff --git a/node_modules/@babel/parser/typings/babel-parser.d.ts b/node_modules/@babel/parser/typings/babel-parser.d.ts
index 3a61f014..61185d02 100644
--- a/node_modules/@babel/parser/typings/babel-parser.d.ts
+++ b/node_modules/@babel/parser/typings/babel-parser.d.ts
@@ -1,49 +1,52 @@
// This file is auto-generated! Do not modify it directly.
-/* eslint-disable import/no-extraneous-dependencies, @typescript-eslint/consistent-type-imports, prettier/prettier */
+/* eslint-disable @typescript-eslint/consistent-type-imports, @typescript-eslint/no-redundant-type-constituents, prettier/prettier */
import * as _babel_types from '@babel/types';
+type BABEL_8_BREAKING = false;
+type IF_BABEL_7<V> = false extends BABEL_8_BREAKING ? V : never;
+
type Plugin =
| "asyncDoExpressions"
- | "asyncGenerators"
- | "bigInt"
- | "classPrivateMethods"
- | "classPrivateProperties"
- | "classProperties"
- | "classStaticBlock" // Enabled by default
+ | IF_BABEL_7<"asyncGenerators">
+ | IF_BABEL_7<"bigInt">
+ | IF_BABEL_7<"classPrivateMethods">
+ | IF_BABEL_7<"classPrivateProperties">
+ | IF_BABEL_7<"classProperties">
+ | IF_BABEL_7<"classStaticBlock">
| "decimal"
| "decorators-legacy"
| "deferredImportEvaluation"
| "decoratorAutoAccessors"
| "destructuringPrivate"
| "doExpressions"
- | "dynamicImport"
+ | IF_BABEL_7<"dynamicImport">
| "explicitResourceManagement"
| "exportDefaultFrom"
- | "exportNamespaceFrom" // deprecated
+ | IF_BABEL_7<"exportNamespaceFrom">
| "flow"
| "flowComments"
| "functionBind"
| "functionSent"
| "importMeta"
| "jsx"
- | "logicalAssignment"
+ | IF_BABEL_7<"logicalAssignment">
| "importAssertions" // deprecated
| "importAttributes"
| "importReflection"
| "moduleBlocks"
- | "moduleStringNames"
- | "nullishCoalescingOperator"
- | "numericSeparator"
- | "objectRestSpread"
- | "optionalCatchBinding"
- | "optionalChaining"
+ | IF_BABEL_7<"moduleStringNames">
+ | IF_BABEL_7<"nullishCoalescingOperator">
+ | IF_BABEL_7<"numericSeparator">
+ | IF_BABEL_7<"objectRestSpread">
+ | IF_BABEL_7<"optionalCatchBinding">
+ | IF_BABEL_7<"optionalChaining">
| "partialApplication"
| "placeholders"
- | "privateIn" // Enabled by default
- | "regexpUnicodeSets" // Enabled by default
+ | IF_BABEL_7<"privateIn">
+ | IF_BABEL_7<"regexpUnicodeSets">
| "sourcePhaseImports"
| "throwExpressions"
- | "topLevelAwait"
+ | IF_BABEL_7<"topLevelAwait">
| "v8intrinsic"
| ParserPluginWithOptions[0];
@@ -51,8 +54,7 @@ type ParserPluginWithOptions =
| ["decorators", DecoratorsPluginOptions]
| ["estree", { classFeatures?: boolean }]
| ["importAttributes", { deprecatedAssertSyntax: boolean }]
- // @deprecated
- | ["moduleAttributes", { version: "may-2020" }]
+ | IF_BABEL_7<["moduleAttributes", { version: "may-2020" }]>
| ["optionalChainingAssign", { version: "2023-07" }]
| ["pipelineOperator", PipelineOperatorPluginOptions]
| ["recordAndTuple", RecordAndTuplePluginOptions]