@histoire/vendors 1.0.0-alpha.1 → 1.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/b-floating-vue.js +1 -1
- package/dist/client/b-iconify.js +142 -255
- package/dist/client/b-pinia.js +3 -3
- package/dist/client/b-scroll.js +1 -1
- package/dist/client/b-vue-use.js +1200 -764
- package/dist/client/b-vue.js +1 -1
- package/dist/client/node_modules/@babel/parser/package.json +2 -2
- package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +127 -164
- package/dist/client/node_modules/@babel/types/lib/index-legacy.d.ts +16 -6
- package/dist/client/node_modules/@babel/types/lib/index.d.ts +1168 -1157
- package/dist/client/node_modules/@babel/types/package.json +12 -12
- package/dist/client/node_modules/@iconify/vue/dist/iconify.d.ts +59 -6
- package/dist/client/node_modules/@iconify/vue/dist/offline.d.ts +9 -2
- package/dist/client/node_modules/@iconify/vue/package.json +14 -14
- package/dist/client/node_modules/@vueuse/core/index.d.ts +486 -236
- package/dist/client/node_modules/@vueuse/core/package.json +18 -6
- package/dist/client/node_modules/@vueuse/metadata/package.json +11 -4
- package/dist/client/node_modules/@vueuse/shared/index.d.ts +50 -16
- package/dist/client/node_modules/@vueuse/shared/package.json +15 -3
- package/dist/client/node_modules/pinia/dist/pinia.d.ts +1 -1
- package/dist/client/node_modules/pinia/package.json +1 -1
- package/dist/client/node_modules/postcss/lib/at-rule.d.ts +9 -9
- package/dist/client/node_modules/postcss/lib/comment.d.ts +7 -7
- package/dist/client/node_modules/postcss/lib/container.d.ts +45 -48
- package/dist/client/node_modules/postcss/lib/declaration.d.ts +9 -9
- package/dist/client/node_modules/postcss/lib/input.d.ts +15 -17
- package/dist/client/node_modules/postcss/lib/lazy-result.d.ts +40 -40
- package/dist/client/node_modules/postcss/lib/no-work-result.d.ts +5 -5
- package/dist/client/node_modules/postcss/lib/node.d.ts +8 -8
- package/dist/client/node_modules/postcss/lib/result.d.ts +10 -10
- package/dist/client/node_modules/postcss/lib/rule.d.ts +8 -8
- package/dist/client/node_modules/postcss/package.json +1 -1
- package/dist/client/vue.runtime.esm-bundler.js +1 -1
- package/package.json +1 -1
package/dist/client/b-vue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { ao as BaseTransition, ap as BaseTransitionPropsValidators, aq as Comment, ar as DeprecationTypes, bz as EffectScope, as as ErrorCodes, at as ErrorTypeStrings, F as Fragment, au as KeepAlive, bA as ReactiveEffect, av as Static, aw as Suspense, ax as Teleport, ay as Text, bB as TrackOpTypes, a5 as Transition, a0 as TransitionGroup, bC as TriggerOpTypes, a6 as VueElement, az as assertNumber, aA as callWithAsyncErrorHandling, aB as callWithErrorHandling, bM as camelize, bN as capitalize, aC as cloneVNode, aD as compatUtils, a4 as compile, L as computed, v as createApp, f as createBlock, l as createCommentVNode, c as createElementBlock, h as createElementVNode, aE as createHydrationRenderer, aF as createPropsRestProxy, aG as createRenderer, a7 as createSSRApp, aH as createSlots, aI as createStaticVNode, aJ as createTextVNode, s as createVNode, X as customRef, aK as defineAsyncComponent, d as defineComponent, a8 as defineCustomElement, aL as defineEmits, aM as defineExpose, aN as defineModel, aO as defineOptions, aP as defineProps, a9 as defineSSRCustomElement, aQ as defineSlots, aR as devtools, bD as effect, E as effectScope, O as getCurrentInstance, I as getCurrentScope, bE as getCurrentWatcher, aS as getTransitionRawChildren, g as guardReactiveProps, x as h, aT as handleError, y as hasInjectionContext, aa as hydrate, aU as hydrateOnIdle, aV as hydrateOnInteraction, aW as hydrateOnMediaQuery, aX as hydrateOnVisible, aY as initCustomFormatter, ab as initDirectivesForSSR, z as inject, aZ as isMemoSame, bF as isProxy, H as isReactive, a2 as isReadonly, G as isRef, a_ as isRuntimeOnly, bG as isShallow, a$ as isVNode, D as markRaw, b0 as mergeDefaults, b1 as mergeModels, m as mergeProps, b as nextTick, n as normalizeClass, a as normalizeProps, k as normalizeStyle, R as onActivated, Z as onBeforeMount, _ as onBeforeUnmount, a3 as onBeforeUpdate, Q as onDeactivated, b2 as onErrorCaptured, $ as onMounted, b3 as onRenderTracked, b4 as onRenderTriggered, J as onScopeDispose, b5 as onServerPrefetch, P as onUnmounted, a1 as onUpdated, bH as onWatcherCleanup, o as openBlock, e as popScopeId, T as provide, bI as proxyRefs, p as pushScopeId, b6 as queuePostFlushCb, M as reactive, W as readonly, u as ref, b7 as registerRuntimeCompiler, ac as render, b8 as renderList, r as renderSlot, i as resolveComponent, b9 as resolveDirective, ba as resolveDynamicComponent, bb as resolveFilter, bc as resolveTransitionHooks, bd as setBlockTracking, be as setDevtoolsHook, bf as setTransitionHooks, V as shallowReactive, bJ as shallowReadonly, U as shallowRef, bg as ssrContextKey, bh as ssrUtils, bK as stop, t as toDisplayString, bO as toHandlerKey, bi as toHandlers, A as toRaw, N as toRef, K as toRefs, Y as toValue, bj as transformVNodeArgs, bL as triggerRef, C as unref, bk as useAttrs, ad as useCssModule, ae as useCssVars, af as useHost, bl as useId, bm as useModel, bn as useSSRContext, ag as useShadowRoot, bo as useSlots, bp as useTemplateRef, bq as useTransitionState, ah as vModelCheckbox, ai as vModelDynamic, aj as vModelRadio, ak as vModelSelect, al as vModelText, am as vShow, br as version, bs as warn, B as watch, S as watchEffect, bt as watchPostEffect, bu as watchSyncEffect, bv as withAsyncContext, q as withCtx, bw as withDefaults, bx as withDirectives, j as withKeys, by as withMemo, an as withModifiers, w as withScopeId } from './vue.runtime.esm-bundler.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babel/parser",
|
|
3
|
-
"version": "7.26.
|
|
3
|
+
"version": "7.26.9",
|
|
4
4
|
"description": "A JavaScript parser",
|
|
5
5
|
"author": "The Babel Team (https://babel.dev/team)",
|
|
6
6
|
"homepage": "https://babel.dev/docs/en/next/babel-parser",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"# dependencies": "This package doesn't actually have runtime dependencies. @babel/types is only needed for type definitions.",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@babel/types": "^7.26.
|
|
38
|
+
"@babel/types": "^7.26.9"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@babel/code-frame": "^7.26.2",
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
// This file is auto-generated! Do not modify it directly.
|
|
2
|
+
// Run `yarn gulp bundle-dts` to re-generate it.
|
|
2
3
|
/* eslint-disable @typescript-eslint/consistent-type-imports, @typescript-eslint/no-redundant-type-constituents */
|
|
3
|
-
import
|
|
4
|
+
import { File, Expression } from '@babel/types';
|
|
4
5
|
|
|
5
6
|
type BABEL_8_BREAKING = false;
|
|
6
7
|
type IF_BABEL_7<V> = false extends BABEL_8_BREAKING ? V : never;
|
|
7
8
|
|
|
8
|
-
type Plugin =
|
|
9
|
+
type Plugin$1 =
|
|
9
10
|
| "asyncDoExpressions"
|
|
10
11
|
| IF_BABEL_7<"asyncGenerators">
|
|
11
12
|
| IF_BABEL_7<"bigInt">
|
|
@@ -62,7 +63,7 @@ type ParserPluginWithOptions =
|
|
|
62
63
|
| ["flow", FlowPluginOptions]
|
|
63
64
|
| ["typescript", TypeScriptPluginOptions];
|
|
64
65
|
|
|
65
|
-
type PluginConfig = Plugin | ParserPluginWithOptions;
|
|
66
|
+
type PluginConfig = Plugin$1 | ParserPluginWithOptions;
|
|
66
67
|
|
|
67
68
|
interface DecoratorsPluginOptions {
|
|
68
69
|
decoratorsBeforeExport?: boolean;
|
|
@@ -94,174 +95,136 @@ interface TypeScriptPluginOptions {
|
|
|
94
95
|
disallowAmbiguousJSXLike?: boolean;
|
|
95
96
|
}
|
|
96
97
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
98
|
+
type Plugin = PluginConfig;
|
|
99
|
+
|
|
100
|
+
interface Options {
|
|
101
|
+
/**
|
|
102
|
+
* By default, import and export declarations can only appear at a program's top level.
|
|
103
|
+
* Setting this option to true allows them anywhere where a statement is allowed.
|
|
104
|
+
*/
|
|
105
|
+
allowImportExportEverywhere?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* By default, await use is not allowed outside of an async function.
|
|
108
|
+
* Set this to true to accept such code.
|
|
109
|
+
*/
|
|
110
|
+
allowAwaitOutsideFunction?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* By default, a return statement at the top level raises an error.
|
|
113
|
+
* Set this to true to accept such code.
|
|
114
|
+
*/
|
|
115
|
+
allowReturnOutsideFunction?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* By default, new.target use is not allowed outside of a function or class.
|
|
118
|
+
* Set this to true to accept such code.
|
|
119
|
+
*/
|
|
120
|
+
allowNewTargetOutsideFunction?: boolean;
|
|
121
|
+
allowSuperOutsideMethod?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* By default, exported identifiers must refer to a declared variable.
|
|
124
|
+
* Set this to true to allow export statements to reference undeclared variables.
|
|
125
|
+
*/
|
|
126
|
+
allowUndeclaredExports?: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* By default, Babel parser JavaScript code according to Annex B syntax.
|
|
129
|
+
* Set this to `false` to disable such behavior.
|
|
130
|
+
*/
|
|
131
|
+
annexB?: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* By default, Babel attaches comments to adjacent AST nodes.
|
|
134
|
+
* When this option is set to false, comments are not attached.
|
|
135
|
+
* It can provide up to 30% performance improvement when the input code has many comments.
|
|
136
|
+
* @babel/eslint-parser will set it for you.
|
|
137
|
+
* It is not recommended to use attachComment: false with Babel transform,
|
|
138
|
+
* as doing so removes all the comments in output code, and renders annotations such as
|
|
139
|
+
* /* istanbul ignore next *\/ nonfunctional.
|
|
140
|
+
*/
|
|
141
|
+
attachComment?: boolean;
|
|
142
|
+
/**
|
|
143
|
+
* By default, Babel always throws an error when it finds some invalid code.
|
|
144
|
+
* When this option is set to true, it will store the parsing error and
|
|
145
|
+
* try to continue parsing the invalid input file.
|
|
146
|
+
*/
|
|
147
|
+
errorRecovery?: boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Indicate the mode the code should be parsed in.
|
|
150
|
+
* Can be one of "script", "module", or "unambiguous". Defaults to "script".
|
|
151
|
+
* "unambiguous" will make @babel/parser attempt to guess, based on the presence
|
|
152
|
+
* of ES6 import or export statements.
|
|
153
|
+
* Files with ES6 imports and exports are considered "module" and are otherwise "script".
|
|
154
|
+
*/
|
|
155
|
+
sourceType?: "script" | "module" | "unambiguous";
|
|
156
|
+
/**
|
|
157
|
+
* Correlate output AST nodes with their source filename.
|
|
158
|
+
* Useful when generating code and source maps from the ASTs of multiple input files.
|
|
159
|
+
*/
|
|
160
|
+
sourceFilename?: string;
|
|
161
|
+
/**
|
|
162
|
+
* By default, all source indexes start from 0.
|
|
163
|
+
* You can provide a start index to alternatively start with.
|
|
164
|
+
* Useful for integration with other source tools.
|
|
165
|
+
*/
|
|
166
|
+
startIndex?: number;
|
|
167
|
+
/**
|
|
168
|
+
* By default, the first line of code parsed is treated as line 1.
|
|
169
|
+
* You can provide a line number to alternatively start with.
|
|
170
|
+
* Useful for integration with other source tools.
|
|
171
|
+
*/
|
|
172
|
+
startLine?: number;
|
|
173
|
+
/**
|
|
174
|
+
* By default, the parsed code is treated as if it starts from line 1, column 0.
|
|
175
|
+
* You can provide a column number to alternatively start with.
|
|
176
|
+
* Useful for integration with other source tools.
|
|
177
|
+
*/
|
|
178
|
+
startColumn?: number;
|
|
179
|
+
/**
|
|
180
|
+
* Array containing the plugins that you want to enable.
|
|
181
|
+
*/
|
|
182
|
+
plugins?: Plugin[];
|
|
183
|
+
/**
|
|
184
|
+
* Should the parser work in strict mode.
|
|
185
|
+
* Defaults to true if sourceType === 'module'. Otherwise, false.
|
|
186
|
+
*/
|
|
187
|
+
strictMode?: boolean;
|
|
188
|
+
/**
|
|
189
|
+
* Adds a ranges property to each node: [node.start, node.end]
|
|
190
|
+
*/
|
|
191
|
+
ranges?: boolean;
|
|
192
|
+
/**
|
|
193
|
+
* Adds all parsed tokens to a tokens property on the File node.
|
|
194
|
+
*/
|
|
195
|
+
tokens?: boolean;
|
|
196
|
+
/**
|
|
197
|
+
* By default, the parser adds information about parentheses by setting
|
|
198
|
+
* `extra.parenthesized` to `true` as needed.
|
|
199
|
+
* When this option is `true` the parser creates `ParenthesizedExpression`
|
|
200
|
+
* AST nodes instead of using the `extra` property.
|
|
201
|
+
*/
|
|
202
|
+
createParenthesizedExpressions?: boolean;
|
|
203
|
+
/**
|
|
204
|
+
* The default is false in Babel 7 and true in Babel 8
|
|
205
|
+
* Set this to true to parse it as an `ImportExpression` node.
|
|
206
|
+
* Otherwise `import(foo)` is parsed as `CallExpression(Import, [Identifier(foo)])`.
|
|
207
|
+
*/
|
|
208
|
+
createImportExpressions?: boolean;
|
|
209
|
+
}
|
|
103
210
|
|
|
211
|
+
type ParserOptions = Partial<Options>;
|
|
212
|
+
interface ParseError {
|
|
213
|
+
code: string;
|
|
214
|
+
reasonCode: string;
|
|
215
|
+
}
|
|
216
|
+
type ParseResult<Result extends File | Expression = File> = Result & {
|
|
217
|
+
errors: null | ParseError[];
|
|
218
|
+
};
|
|
104
219
|
/**
|
|
105
220
|
* Parse the provided code as an entire ECMAScript program.
|
|
106
221
|
*/
|
|
107
|
-
declare function parse(
|
|
108
|
-
|
|
109
|
-
options?: ParserOptions
|
|
110
|
-
): ParseResult<_babel_types.File>;
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Parse the provided code as a single expression.
|
|
114
|
-
*/
|
|
115
|
-
declare function parseExpression(
|
|
116
|
-
input: string,
|
|
117
|
-
options?: ParserOptions
|
|
118
|
-
): ParseResult<_babel_types.Expression>;
|
|
119
|
-
|
|
120
|
-
interface ParserOptions {
|
|
121
|
-
/**
|
|
122
|
-
* By default, import and export declarations can only appear at a program's top level.
|
|
123
|
-
* Setting this option to true allows them anywhere where a statement is allowed.
|
|
124
|
-
*/
|
|
125
|
-
allowImportExportEverywhere?: boolean;
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* By default, await use is not allowed outside of an async function.
|
|
129
|
-
* Set this to true to accept such code.
|
|
130
|
-
*/
|
|
131
|
-
allowAwaitOutsideFunction?: boolean;
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* By default, a return statement at the top level raises an error.
|
|
135
|
-
* Set this to true to accept such code.
|
|
136
|
-
*/
|
|
137
|
-
allowReturnOutsideFunction?: boolean;
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* By default, new.target use is not allowed outside of a function or class.
|
|
141
|
-
* Set this to true to accept such code.
|
|
142
|
-
*/
|
|
143
|
-
allowNewTargetOutsideFunction?: boolean;
|
|
144
|
-
|
|
145
|
-
allowSuperOutsideMethod?: boolean;
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* By default, exported identifiers must refer to a declared variable.
|
|
149
|
-
* Set this to true to allow export statements to reference undeclared variables.
|
|
150
|
-
*/
|
|
151
|
-
allowUndeclaredExports?: boolean;
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* By default, Babel parser JavaScript code according to Annex B syntax.
|
|
155
|
-
* Set this to `false` to disable such behavior.
|
|
156
|
-
*/
|
|
157
|
-
annexB?: boolean;
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* By default, Babel attaches comments to adjacent AST nodes.
|
|
161
|
-
* When this option is set to false, comments are not attached.
|
|
162
|
-
* It can provide up to 30% performance improvement when the input code has many comments.
|
|
163
|
-
* @babel/eslint-parser will set it for you.
|
|
164
|
-
* It is not recommended to use attachComment: false with Babel transform,
|
|
165
|
-
* as doing so removes all the comments in output code, and renders annotations such as
|
|
166
|
-
* /* istanbul ignore next *\/ nonfunctional.
|
|
167
|
-
*/
|
|
168
|
-
attachComment?: boolean;
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* By default, Babel always throws an error when it finds some invalid code.
|
|
172
|
-
* When this option is set to true, it will store the parsing error and
|
|
173
|
-
* try to continue parsing the invalid input file.
|
|
174
|
-
*/
|
|
175
|
-
errorRecovery?: boolean;
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* Indicate the mode the code should be parsed in.
|
|
179
|
-
* Can be one of "script", "module", or "unambiguous". Defaults to "script".
|
|
180
|
-
* "unambiguous" will make @babel/parser attempt to guess, based on the presence
|
|
181
|
-
* of ES6 import or export statements.
|
|
182
|
-
* Files with ES6 imports and exports are considered "module" and are otherwise "script".
|
|
183
|
-
*/
|
|
184
|
-
sourceType?: "script" | "module" | "unambiguous";
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* Correlate output AST nodes with their source filename.
|
|
188
|
-
* Useful when generating code and source maps from the ASTs of multiple input files.
|
|
189
|
-
*/
|
|
190
|
-
sourceFilename?: string;
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* By default, all source indexes start from 0.
|
|
194
|
-
* You can provide a start index to alternatively start with.
|
|
195
|
-
* Useful for integration with other source tools.
|
|
196
|
-
*/
|
|
197
|
-
startIndex?: number;
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* By default, the first line of code parsed is treated as line 1.
|
|
201
|
-
* You can provide a line number to alternatively start with.
|
|
202
|
-
* Useful for integration with other source tools.
|
|
203
|
-
*/
|
|
204
|
-
startLine?: number;
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* By default, the parsed code is treated as if it starts from line 1, column 0.
|
|
208
|
-
* You can provide a column number to alternatively start with.
|
|
209
|
-
* Useful for integration with other source tools.
|
|
210
|
-
*/
|
|
211
|
-
startColumn?: number;
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* Array containing the plugins that you want to enable.
|
|
215
|
-
*/
|
|
216
|
-
plugins?: ParserPlugin[];
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* Should the parser work in strict mode.
|
|
220
|
-
* Defaults to true if sourceType === 'module'. Otherwise, false.
|
|
221
|
-
*/
|
|
222
|
-
strictMode?: boolean;
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* Adds a ranges property to each node: [node.start, node.end]
|
|
226
|
-
*/
|
|
227
|
-
ranges?: boolean;
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* Adds all parsed tokens to a tokens property on the File node.
|
|
231
|
-
*/
|
|
232
|
-
tokens?: boolean;
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* By default, the parser adds information about parentheses by setting
|
|
236
|
-
* `extra.parenthesized` to `true` as needed.
|
|
237
|
-
* When this option is `true` the parser creates `ParenthesizedExpression`
|
|
238
|
-
* AST nodes instead of using the `extra` property.
|
|
239
|
-
*/
|
|
240
|
-
createParenthesizedExpressions?: boolean;
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* The default is false in Babel 7 and true in Babel 8
|
|
244
|
-
* Set this to true to parse it as an `ImportExpression` node.
|
|
245
|
-
* Otherwise `import(foo)` is parsed as `CallExpression(Import, [Identifier(foo)])`.
|
|
246
|
-
*/
|
|
247
|
-
createImportExpressions?: boolean;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
type ParserPlugin = PluginConfig;
|
|
251
|
-
|
|
222
|
+
declare function parse(input: string, options?: ParserOptions): ParseResult<File>;
|
|
223
|
+
declare function parseExpression(input: string, options?: ParserOptions): ParseResult<Expression>;
|
|
252
224
|
|
|
253
225
|
declare const tokTypes: {
|
|
254
226
|
// todo(flow->ts) real token type
|
|
255
227
|
[name: string]: any;
|
|
256
228
|
};
|
|
257
229
|
|
|
258
|
-
|
|
259
|
-
code: string;
|
|
260
|
-
reasonCode: string;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
type ParseResult<Result> = Result & {
|
|
264
|
-
errors: ParseError[];
|
|
265
|
-
};
|
|
266
|
-
|
|
267
|
-
export { DecoratorsPluginOptions, FlowPluginOptions, ParseError, ParseResult, ParserOptions, ParserPlugin, ParserPluginWithOptions, PipelineOperatorPluginOptions, RecordAndTuplePluginOptions, TypeScriptPluginOptions, parse, parseExpression, tokTypes };
|
|
230
|
+
export { DecoratorsPluginOptions, FlowPluginOptions, ParseError, ParseResult, ParserOptions, PluginConfig as ParserPlugin, ParserPluginWithOptions, PipelineOperatorPluginOptions, RecordAndTuplePluginOptions, TypeScriptPluginOptions, parse, parseExpression, tokTypes };
|
|
@@ -42,7 +42,7 @@ interface BaseNode {
|
|
|
42
42
|
extra?: Record<string, unknown>;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
export type Node = Accessor | AnyTypeAnnotation | ArgumentPlaceholder | ArrayExpression | ArrayPattern | ArrayTypeAnnotation | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BigIntLiteral | Binary | BinaryExpression | BindExpression | Block | BlockParent | BlockStatement | BooleanLiteral | BooleanLiteralTypeAnnotation | BooleanTypeAnnotation | BreakStatement | CallExpression | CatchClause | Class | ClassAccessorProperty | ClassBody | ClassDeclaration | ClassExpression | ClassImplements | ClassMethod | ClassPrivateMethod | ClassPrivateProperty | ClassProperty | CompletionStatement | Conditional | ConditionalExpression | ContinueStatement | DebuggerStatement | DecimalLiteral | Declaration | DeclareClass | DeclareExportAllDeclaration | DeclareExportDeclaration | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareOpaqueType | DeclareTypeAlias | DeclareVariable | DeclaredPredicate | Decorator | Directive | DirectiveLiteral | DoExpression | DoWhileStatement | EmptyStatement | EmptyTypeAnnotation | EnumBody | EnumBooleanBody | EnumBooleanMember | EnumDeclaration | EnumDefaultedMember | EnumMember | EnumNumberBody | EnumNumberMember | EnumStringBody | EnumStringMember | EnumSymbolBody | ExistsTypeAnnotation | ExportAllDeclaration | ExportDeclaration | ExportDefaultDeclaration | ExportDefaultSpecifier | ExportNamedDeclaration | ExportNamespaceSpecifier | ExportSpecifier | Expression | ExpressionStatement | ExpressionWrapper | File | Flow | FlowBaseAnnotation | FlowDeclaration | FlowPredicate | FlowType | For | ForInStatement | ForOfStatement | ForStatement | ForXStatement | Function | FunctionDeclaration | FunctionExpression | FunctionParent | FunctionTypeAnnotation | FunctionTypeParam | GenericTypeAnnotation | Identifier | IfStatement | Immutable | Import | ImportAttribute | ImportDeclaration | ImportDefaultSpecifier | ImportExpression | ImportNamespaceSpecifier | ImportOrExportDeclaration | ImportSpecifier | IndexedAccessType | InferredPredicate | InterfaceDeclaration | InterfaceExtends | InterfaceTypeAnnotation | InterpreterDirective | IntersectionTypeAnnotation | JSX | JSXAttribute | JSXClosingElement | JSXClosingFragment | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXFragment | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | JSXText | LVal | LabeledStatement | Literal | LogicalExpression | Loop | MemberExpression | MetaProperty | Method | Miscellaneous | MixedTypeAnnotation | ModuleDeclaration | ModuleExpression | ModuleSpecifier | NewExpression | Noop | NullLiteral | NullLiteralTypeAnnotation | NullableTypeAnnotation | NumberLiteral | NumberLiteralTypeAnnotation | NumberTypeAnnotation | NumericLiteral | ObjectExpression | ObjectMember | ObjectMethod | ObjectPattern | ObjectProperty | ObjectTypeAnnotation | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeInternalSlot | ObjectTypeProperty | ObjectTypeSpreadProperty | OpaqueType | OptionalCallExpression | OptionalIndexedAccessType | OptionalMemberExpression | ParenthesizedExpression | Pattern | PatternLike | PipelineBareFunction | PipelinePrimaryTopicReference | PipelineTopicExpression | Placeholder | Private | PrivateName | Program | Property | Pureish | QualifiedTypeIdentifier | RecordExpression | RegExpLiteral | RegexLiteral | RestElement | RestProperty | ReturnStatement | Scopable | SequenceExpression | SpreadElement | SpreadProperty | Standardized | Statement | StaticBlock | StringLiteral | StringLiteralTypeAnnotation | StringTypeAnnotation | Super | SwitchCase | SwitchStatement | SymbolTypeAnnotation | TSAnyKeyword | TSArrayType | TSAsExpression | TSBaseType | TSBigIntKeyword | TSBooleanKeyword | TSCallSignatureDeclaration | TSConditionalType | TSConstructSignatureDeclaration | TSConstructorType | TSDeclareFunction | TSDeclareMethod | TSEntityName | TSEnumBody | TSEnumDeclaration | TSEnumMember | TSExportAssignment | TSExpressionWithTypeArguments | TSExternalModuleReference | TSFunctionType | TSImportEqualsDeclaration | TSImportType | TSIndexSignature | TSIndexedAccessType | TSInferType | TSInstantiationExpression | TSInterfaceBody | TSInterfaceDeclaration | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSMethodSignature | TSModuleBlock | TSModuleDeclaration | TSNamedTupleMember | TSNamespaceExportDeclaration | TSNeverKeyword | TSNonNullExpression | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSParameterProperty | TSParenthesizedType | TSPropertySignature | TSQualifiedName | TSRestType | TSSatisfiesExpression | TSStringKeyword | TSSymbolKeyword | TSThisType | TSTupleType | TSType | TSTypeAliasDeclaration | TSTypeAnnotation | TSTypeAssertion | TSTypeElement | TSTypeLiteral | TSTypeOperator | TSTypeParameter | TSTypeParameterDeclaration | TSTypeParameterInstantiation | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword | TaggedTemplateExpression | TemplateElement | TemplateLiteral | Terminatorless | ThisExpression | ThisTypeAnnotation | ThrowStatement | TopicReference | TryStatement | TupleExpression | TupleTypeAnnotation | TypeAlias | TypeAnnotation | TypeCastExpression | TypeParameter | TypeParameterDeclaration | TypeParameterInstantiation | TypeScript | TypeofTypeAnnotation | UnaryExpression | UnaryLike | UnionTypeAnnotation | UpdateExpression | UserWhitespacable | V8IntrinsicIdentifier | VariableDeclaration | VariableDeclarator | Variance | VoidTypeAnnotation | While | WhileStatement | WithStatement | YieldExpression;
|
|
45
|
+
export type Node = Accessor | AnyTypeAnnotation | ArgumentPlaceholder | ArrayExpression | ArrayPattern | ArrayTypeAnnotation | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BigIntLiteral | Binary | BinaryExpression | BindExpression | Block | BlockParent | BlockStatement | BooleanLiteral | BooleanLiteralTypeAnnotation | BooleanTypeAnnotation | BreakStatement | CallExpression | CatchClause | Class | ClassAccessorProperty | ClassBody | ClassDeclaration | ClassExpression | ClassImplements | ClassMethod | ClassPrivateMethod | ClassPrivateProperty | ClassProperty | CompletionStatement | Conditional | ConditionalExpression | ContinueStatement | DebuggerStatement | DecimalLiteral | Declaration | DeclareClass | DeclareExportAllDeclaration | DeclareExportDeclaration | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareOpaqueType | DeclareTypeAlias | DeclareVariable | DeclaredPredicate | Decorator | Directive | DirectiveLiteral | DoExpression | DoWhileStatement | EmptyStatement | EmptyTypeAnnotation | EnumBody | EnumBooleanBody | EnumBooleanMember | EnumDeclaration | EnumDefaultedMember | EnumMember | EnumNumberBody | EnumNumberMember | EnumStringBody | EnumStringMember | EnumSymbolBody | ExistsTypeAnnotation | ExportAllDeclaration | ExportDeclaration | ExportDefaultDeclaration | ExportDefaultSpecifier | ExportNamedDeclaration | ExportNamespaceSpecifier | ExportSpecifier | Expression | ExpressionStatement | ExpressionWrapper | File | Flow | FlowBaseAnnotation | FlowDeclaration | FlowPredicate | FlowType | For | ForInStatement | ForOfStatement | ForStatement | ForXStatement | Function | FunctionDeclaration | FunctionExpression | FunctionParent | FunctionTypeAnnotation | FunctionTypeParam | GenericTypeAnnotation | Identifier | IfStatement | Immutable | Import | ImportAttribute | ImportDeclaration | ImportDefaultSpecifier | ImportExpression | ImportNamespaceSpecifier | ImportOrExportDeclaration | ImportSpecifier | IndexedAccessType | InferredPredicate | InterfaceDeclaration | InterfaceExtends | InterfaceTypeAnnotation | InterpreterDirective | IntersectionTypeAnnotation | JSX | JSXAttribute | JSXClosingElement | JSXClosingFragment | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXFragment | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | JSXText | LVal | LabeledStatement | Literal | LogicalExpression | Loop | MemberExpression | MetaProperty | Method | Miscellaneous | MixedTypeAnnotation | ModuleDeclaration | ModuleExpression | ModuleSpecifier | NewExpression | Noop | NullLiteral | NullLiteralTypeAnnotation | NullableTypeAnnotation | NumberLiteral | NumberLiteralTypeAnnotation | NumberTypeAnnotation | NumericLiteral | ObjectExpression | ObjectMember | ObjectMethod | ObjectPattern | ObjectProperty | ObjectTypeAnnotation | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeInternalSlot | ObjectTypeProperty | ObjectTypeSpreadProperty | OpaqueType | OptionalCallExpression | OptionalIndexedAccessType | OptionalMemberExpression | ParenthesizedExpression | Pattern | PatternLike | PipelineBareFunction | PipelinePrimaryTopicReference | PipelineTopicExpression | Placeholder | Private | PrivateName | Program | Property | Pureish | QualifiedTypeIdentifier | RecordExpression | RegExpLiteral | RegexLiteral | RestElement | RestProperty | ReturnStatement | Scopable | SequenceExpression | SpreadElement | SpreadProperty | Standardized | Statement | StaticBlock | StringLiteral | StringLiteralTypeAnnotation | StringTypeAnnotation | Super | SwitchCase | SwitchStatement | SymbolTypeAnnotation | TSAnyKeyword | TSArrayType | TSAsExpression | TSBaseType | TSBigIntKeyword | TSBooleanKeyword | TSCallSignatureDeclaration | TSConditionalType | TSConstructSignatureDeclaration | TSConstructorType | TSDeclareFunction | TSDeclareMethod | TSEntityName | TSEnumBody | TSEnumDeclaration | TSEnumMember | TSExportAssignment | TSExpressionWithTypeArguments | TSExternalModuleReference | TSFunctionType | TSImportEqualsDeclaration | TSImportType | TSIndexSignature | TSIndexedAccessType | TSInferType | TSInstantiationExpression | TSInterfaceBody | TSInterfaceDeclaration | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSMethodSignature | TSModuleBlock | TSModuleDeclaration | TSNamedTupleMember | TSNamespaceExportDeclaration | TSNeverKeyword | TSNonNullExpression | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSParameterProperty | TSParenthesizedType | TSPropertySignature | TSQualifiedName | TSRestType | TSSatisfiesExpression | TSStringKeyword | TSSymbolKeyword | TSTemplateLiteralType | TSThisType | TSTupleType | TSType | TSTypeAliasDeclaration | TSTypeAnnotation | TSTypeAssertion | TSTypeElement | TSTypeLiteral | TSTypeOperator | TSTypeParameter | TSTypeParameterDeclaration | TSTypeParameterInstantiation | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword | TaggedTemplateExpression | TemplateElement | TemplateLiteral | Terminatorless | ThisExpression | ThisTypeAnnotation | ThrowStatement | TopicReference | TryStatement | TupleExpression | TupleTypeAnnotation | TypeAlias | TypeAnnotation | TypeCastExpression | TypeParameter | TypeParameterDeclaration | TypeParameterInstantiation | TypeScript | TypeofTypeAnnotation | UnaryExpression | UnaryLike | UnionTypeAnnotation | UpdateExpression | UserWhitespacable | V8IntrinsicIdentifier | VariableDeclaration | VariableDeclarator | Variance | VoidTypeAnnotation | While | WhileStatement | WithStatement | YieldExpression;
|
|
46
46
|
|
|
47
47
|
export interface ArrayExpression extends BaseNode {
|
|
48
48
|
type: "ArrayExpression";
|
|
@@ -660,6 +660,7 @@ export interface ClassPrivateProperty extends BaseNode {
|
|
|
660
660
|
decorators: Array<Decorator> | null;
|
|
661
661
|
static: boolean;
|
|
662
662
|
definite: boolean | null;
|
|
663
|
+
optional: boolean | null;
|
|
663
664
|
readonly: boolean | null;
|
|
664
665
|
typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
|
665
666
|
variance: Variance | null;
|
|
@@ -1326,7 +1327,7 @@ export interface TSPropertySignature extends BaseNode {
|
|
|
1326
1327
|
key: Expression;
|
|
1327
1328
|
typeAnnotation: TSTypeAnnotation | null;
|
|
1328
1329
|
computed: boolean;
|
|
1329
|
-
kind: "get" | "set";
|
|
1330
|
+
kind: "get" | "set" | null;
|
|
1330
1331
|
optional: boolean | null;
|
|
1331
1332
|
readonly: boolean | null;
|
|
1332
1333
|
}
|
|
@@ -1521,6 +1522,12 @@ export interface TSMappedType extends BaseNode {
|
|
|
1521
1522
|
readonly: true | false | "+" | "-" | null;
|
|
1522
1523
|
}
|
|
1523
1524
|
|
|
1525
|
+
export interface TSTemplateLiteralType extends BaseNode {
|
|
1526
|
+
type: "TSTemplateLiteralType";
|
|
1527
|
+
quasis: Array<TemplateElement>;
|
|
1528
|
+
types: Array<TSType>;
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1524
1531
|
export interface TSLiteralType extends BaseNode {
|
|
1525
1532
|
type: "TSLiteralType";
|
|
1526
1533
|
literal: NumericLiteral | StringLiteral | BooleanLiteral | BigIntLiteral | TemplateLiteral | UnaryExpression;
|
|
@@ -1712,7 +1719,7 @@ export type ForXStatement = ForInStatement | ForOfStatement;
|
|
|
1712
1719
|
export type Function = FunctionDeclaration | FunctionExpression | ObjectMethod | ArrowFunctionExpression | ClassMethod | ClassPrivateMethod;
|
|
1713
1720
|
export type FunctionParent = FunctionDeclaration | FunctionExpression | ObjectMethod | ArrowFunctionExpression | ClassMethod | ClassPrivateMethod | StaticBlock | TSModuleBlock;
|
|
1714
1721
|
export type Pureish = FunctionDeclaration | FunctionExpression | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | ArrowFunctionExpression | BigIntLiteral | DecimalLiteral;
|
|
1715
|
-
export type Declaration = FunctionDeclaration | VariableDeclaration | ClassDeclaration | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | InterfaceDeclaration | OpaqueType | TypeAlias | EnumDeclaration | TSDeclareFunction | TSInterfaceDeclaration | TSTypeAliasDeclaration | TSEnumDeclaration | TSModuleDeclaration;
|
|
1722
|
+
export type Declaration = FunctionDeclaration | VariableDeclaration | ClassDeclaration | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | InterfaceDeclaration | OpaqueType | TypeAlias | EnumDeclaration | TSDeclareFunction | TSInterfaceDeclaration | TSTypeAliasDeclaration | TSEnumDeclaration | TSModuleDeclaration | TSImportEqualsDeclaration;
|
|
1716
1723
|
export type PatternLike = Identifier | RestElement | AssignmentPattern | ArrayPattern | ObjectPattern | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSNonNullExpression;
|
|
1717
1724
|
export type LVal = Identifier | MemberExpression | RestElement | AssignmentPattern | ArrayPattern | ObjectPattern | TSParameterProperty | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSNonNullExpression;
|
|
1718
1725
|
export type TSEntityName = Identifier | TSQualifiedName;
|
|
@@ -1739,10 +1746,10 @@ export type EnumBody = EnumBooleanBody | EnumNumberBody | EnumStringBody | EnumS
|
|
|
1739
1746
|
export type EnumMember = EnumBooleanMember | EnumNumberMember | EnumStringMember | EnumDefaultedMember;
|
|
1740
1747
|
export type JSX = JSXAttribute | JSXClosingElement | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXSpreadChild | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXSpreadAttribute | JSXText | JSXFragment | JSXOpeningFragment | JSXClosingFragment;
|
|
1741
1748
|
export type Miscellaneous = Noop | Placeholder | V8IntrinsicIdentifier;
|
|
1742
|
-
export type TypeScript = TSParameterProperty | TSDeclareFunction | TSDeclareMethod | TSQualifiedName | TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSPropertySignature | TSMethodSignature | TSIndexSignature | TSAnyKeyword | TSBooleanKeyword | TSBigIntKeyword | TSIntrinsicKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSThisType | TSFunctionType | TSConstructorType | TSTypeReference | TSTypePredicate | TSTypeQuery | TSTypeLiteral | TSArrayType | TSTupleType | TSOptionalType | TSRestType | TSNamedTupleMember | TSUnionType | TSIntersectionType | TSConditionalType | TSInferType | TSParenthesizedType | TSTypeOperator | TSIndexedAccessType | TSMappedType | TSLiteralType | TSExpressionWithTypeArguments | TSInterfaceDeclaration | TSInterfaceBody | TSTypeAliasDeclaration | TSInstantiationExpression | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSEnumBody | TSEnumDeclaration | TSEnumMember | TSModuleDeclaration | TSModuleBlock | TSImportType | TSImportEqualsDeclaration | TSExternalModuleReference | TSNonNullExpression | TSExportAssignment | TSNamespaceExportDeclaration | TSTypeAnnotation | TSTypeParameterInstantiation | TSTypeParameterDeclaration | TSTypeParameter;
|
|
1749
|
+
export type TypeScript = TSParameterProperty | TSDeclareFunction | TSDeclareMethod | TSQualifiedName | TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSPropertySignature | TSMethodSignature | TSIndexSignature | TSAnyKeyword | TSBooleanKeyword | TSBigIntKeyword | TSIntrinsicKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSThisType | TSFunctionType | TSConstructorType | TSTypeReference | TSTypePredicate | TSTypeQuery | TSTypeLiteral | TSArrayType | TSTupleType | TSOptionalType | TSRestType | TSNamedTupleMember | TSUnionType | TSIntersectionType | TSConditionalType | TSInferType | TSParenthesizedType | TSTypeOperator | TSIndexedAccessType | TSMappedType | TSTemplateLiteralType | TSLiteralType | TSExpressionWithTypeArguments | TSInterfaceDeclaration | TSInterfaceBody | TSTypeAliasDeclaration | TSInstantiationExpression | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSEnumBody | TSEnumDeclaration | TSEnumMember | TSModuleDeclaration | TSModuleBlock | TSImportType | TSImportEqualsDeclaration | TSExternalModuleReference | TSNonNullExpression | TSExportAssignment | TSNamespaceExportDeclaration | TSTypeAnnotation | TSTypeParameterInstantiation | TSTypeParameterDeclaration | TSTypeParameter;
|
|
1743
1750
|
export type TSTypeElement = TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSPropertySignature | TSMethodSignature | TSIndexSignature;
|
|
1744
|
-
export type TSType = TSAnyKeyword | TSBooleanKeyword | TSBigIntKeyword | TSIntrinsicKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSThisType | TSFunctionType | TSConstructorType | TSTypeReference | TSTypePredicate | TSTypeQuery | TSTypeLiteral | TSArrayType | TSTupleType | TSOptionalType | TSRestType | TSUnionType | TSIntersectionType | TSConditionalType | TSInferType | TSParenthesizedType | TSTypeOperator | TSIndexedAccessType | TSMappedType | TSLiteralType | TSExpressionWithTypeArguments | TSImportType;
|
|
1745
|
-
export type TSBaseType = TSAnyKeyword | TSBooleanKeyword | TSBigIntKeyword | TSIntrinsicKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSThisType | TSLiteralType;
|
|
1751
|
+
export type TSType = TSAnyKeyword | TSBooleanKeyword | TSBigIntKeyword | TSIntrinsicKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSThisType | TSFunctionType | TSConstructorType | TSTypeReference | TSTypePredicate | TSTypeQuery | TSTypeLiteral | TSArrayType | TSTupleType | TSOptionalType | TSRestType | TSUnionType | TSIntersectionType | TSConditionalType | TSInferType | TSParenthesizedType | TSTypeOperator | TSIndexedAccessType | TSMappedType | TSTemplateLiteralType | TSLiteralType | TSExpressionWithTypeArguments | TSImportType;
|
|
1752
|
+
export type TSBaseType = TSAnyKeyword | TSBooleanKeyword | TSBigIntKeyword | TSIntrinsicKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSThisType | TSTemplateLiteralType | TSLiteralType;
|
|
1746
1753
|
export type ModuleDeclaration = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration;
|
|
1747
1754
|
|
|
1748
1755
|
export interface Aliases {
|
|
@@ -2027,6 +2034,7 @@ export function tsParenthesizedType(typeAnnotation: TSType): TSParenthesizedType
|
|
|
2027
2034
|
export function tsTypeOperator(typeAnnotation: TSType): TSTypeOperator;
|
|
2028
2035
|
export function tsIndexedAccessType(objectType: TSType, indexType: TSType): TSIndexedAccessType;
|
|
2029
2036
|
export function tsMappedType(typeParameter: TSTypeParameter, typeAnnotation?: TSType | null, nameType?: TSType | null): TSMappedType;
|
|
2037
|
+
export function tsTemplateLiteralType(quasis: Array<TemplateElement>, types: Array<TSType>): TSTemplateLiteralType;
|
|
2030
2038
|
export function tsLiteralType(literal: NumericLiteral | StringLiteral | BooleanLiteral | BigIntLiteral | TemplateLiteral | UnaryExpression): TSLiteralType;
|
|
2031
2039
|
export function tsExpressionWithTypeArguments(expression: TSEntityName, typeParameters?: TSTypeParameterInstantiation | null): TSExpressionWithTypeArguments;
|
|
2032
2040
|
export function tsInterfaceDeclaration(id: Identifier, typeParameters: TSTypeParameterDeclaration | null | undefined, _extends: Array<TSExpressionWithTypeArguments> | null | undefined, body: TSInterfaceBody): TSInterfaceDeclaration;
|
|
@@ -2565,6 +2573,8 @@ export function isTSStringKeyword(node: object | null | undefined, opts?: object
|
|
|
2565
2573
|
export function assertTSStringKeyword(node: object | null | undefined, opts?: object | null): void;
|
|
2566
2574
|
export function isTSSymbolKeyword(node: object | null | undefined, opts?: object | null): node is TSSymbolKeyword;
|
|
2567
2575
|
export function assertTSSymbolKeyword(node: object | null | undefined, opts?: object | null): void;
|
|
2576
|
+
export function isTSTemplateLiteralType(node: object | null | undefined, opts?: object | null): node is TSTemplateLiteralType;
|
|
2577
|
+
export function assertTSTemplateLiteralType(node: object | null | undefined, opts?: object | null): void;
|
|
2568
2578
|
export function isTSThisType(node: object | null | undefined, opts?: object | null): node is TSThisType;
|
|
2569
2579
|
export function assertTSThisType(node: object | null | undefined, opts?: object | null): void;
|
|
2570
2580
|
export function isTSTupleType(node: object | null | undefined, opts?: object | null): node is TSTupleType;
|