@systemfsoftware/stryker-js 10.1.2 → 11.0.0
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/CHANGELOG.md +12 -0
- package/README.md +34 -26
- package/dist/Run.schema-B_qdjbe9.mjs +226 -0
- package/dist/{Run.schema-BsSOfQnD.d.mts → Run.schema-CUpTIyrj.d.mts} +91 -19
- package/dist/RunEnvironment.service-zgwzyXpO.d.mts +456 -0
- package/dist/config.d.mts +6 -22
- package/dist/config.mjs +2 -7
- package/dist/dist-ClUhPgb6.mjs +8020 -0
- package/dist/{dist-CjdAPjrJ.mjs → dist-DKhCurgc.mjs} +95 -1
- package/dist/events.d.mts +2 -2
- package/dist/events.mjs +2 -2
- package/dist/index-CMCCQdTd.d.mts +4087 -0
- package/dist/index.d.mts +1084 -3319
- package/dist/index.mjs +116 -3
- package/dist/main.mjs +114232 -86470
- package/dist/promises.d.mts +4 -4
- package/dist/promises.mjs +6 -10
- package/dist/{rolldown-runtime-XITHOX9H.mjs → rolldown-runtime-8H4AJuhK.mjs} +1 -2
- package/dist/run-stages.cell-CPpkn7og.mjs +8639 -0
- package/dist/stryker-config.schema-CCnDtVuW.mjs +82 -0
- package/dist/stryker-config.schema-lr7GMjpY.d.mts +35 -0
- package/package.json +33 -48
- package/dist/Run.schema-57k1klOe.mjs +0 -8785
- package/dist/compiler-BTpMWGqK.mjs +0 -48955
- package/dist/compiler-CEwQzMxZ.mjs +0 -48955
- package/dist/dist-Cpq7Esc3.mjs +0 -17404
- package/dist/dist-Dmv1WEP8.mjs +0 -5337
- package/dist/dist-DsmXFb2_.mjs +0 -17404
- package/dist/index-CogNSD0V.d.mts +0 -1214
- package/dist/merge-config-CHZWyvVQ.mjs +0 -19
- package/dist/mutation-test.cell-DS86DvC9.d.mts +0 -1757
- package/dist/output-mode-CfGHDpi5.d.mts +0 -17
- package/dist/sourcemap-codec-qFD3eFBj.mjs +0 -186
- package/dist/src-jn0C-9I0.mjs +0 -6558
|
@@ -0,0 +1,4087 @@
|
|
|
1
|
+
import { Workflow } from "@systemfsoftware/effect-cell-types";
|
|
2
|
+
import * as Option$1 from "effect/Option";
|
|
3
|
+
import "effect/Result";
|
|
4
|
+
import * as S from "effect/Schema";
|
|
5
|
+
import * as Effect$1 from "effect/Effect";
|
|
6
|
+
import "effect/Pipeable";
|
|
7
|
+
import * as Context from "effect/Context";
|
|
8
|
+
import { Schema } from "effect";
|
|
9
|
+
import * as Rpc from "effect/unstable/rpc/Rpc";
|
|
10
|
+
import * as RpcGroup from "effect/unstable/rpc/RpcGroup";
|
|
11
|
+
import * as RpcMiddleware from "effect/unstable/rpc/RpcMiddleware";
|
|
12
|
+
import * as HashMap from "effect/HashMap";
|
|
13
|
+
import { StandardSchemaV1 } from "effect/StandardSchema";
|
|
14
|
+
//#region ../ignorers/interface/dist/index.d.ts
|
|
15
|
+
declare interface AccessorProperty$1$1 extends Span$1$1 {
|
|
16
|
+
type: AccessorPropertyType$1;
|
|
17
|
+
decorators: Array<Decorator$1$1>;
|
|
18
|
+
key: PropertyKey_2$1;
|
|
19
|
+
typeAnnotation?: TSTypeAnnotation$1$1 | null;
|
|
20
|
+
value: Expression$1$1 | null;
|
|
21
|
+
computed: boolean;
|
|
22
|
+
static: boolean;
|
|
23
|
+
override?: boolean;
|
|
24
|
+
definite?: boolean;
|
|
25
|
+
accessibility?: TSAccessibility$1 | null;
|
|
26
|
+
declare?: false;
|
|
27
|
+
optional?: false;
|
|
28
|
+
readonly?: false;
|
|
29
|
+
parent?: Node$1$1;
|
|
30
|
+
}
|
|
31
|
+
declare type AccessorPropertyType$1 = "AccessorProperty" | "TSAbstractAccessorProperty";
|
|
32
|
+
declare type Argument$1$1 = SpreadElement$1$1 | Expression$1$1;
|
|
33
|
+
declare interface ArrayAssignmentTarget$1 extends Span$1$1 {
|
|
34
|
+
type: "ArrayPattern";
|
|
35
|
+
decorators?: [];
|
|
36
|
+
elements: Array<AssignmentTargetMaybeDefault$1 | AssignmentTargetRest$1 | null>;
|
|
37
|
+
optional?: false;
|
|
38
|
+
typeAnnotation?: null;
|
|
39
|
+
parent?: Node$1$1;
|
|
40
|
+
}
|
|
41
|
+
declare interface ArrayExpression$1$1 extends Span$1$1 {
|
|
42
|
+
type: "ArrayExpression";
|
|
43
|
+
elements: Array<ArrayExpressionElement$1>;
|
|
44
|
+
parent?: Node$1$1;
|
|
45
|
+
}
|
|
46
|
+
declare type ArrayExpressionElement$1 = SpreadElement$1$1 | null | Expression$1$1;
|
|
47
|
+
declare interface ArrayPattern$1$1 extends Span$1$1 {
|
|
48
|
+
type: "ArrayPattern";
|
|
49
|
+
decorators?: [];
|
|
50
|
+
elements: Array<BindingPattern$1$1 | BindingRestElement$1$1 | null>;
|
|
51
|
+
optional?: false;
|
|
52
|
+
typeAnnotation?: TSTypeAnnotation$1$1 | null;
|
|
53
|
+
parent?: Node$1$1;
|
|
54
|
+
}
|
|
55
|
+
declare interface ArrowFunctionExpression$1$1 extends Span$1$1 {
|
|
56
|
+
type: "ArrowFunctionExpression";
|
|
57
|
+
expression: boolean;
|
|
58
|
+
async: boolean;
|
|
59
|
+
typeParameters?: TSTypeParameterDeclaration$1$1 | null;
|
|
60
|
+
params: ParamPattern$1$1[];
|
|
61
|
+
returnType?: TSTypeAnnotation$1$1 | null;
|
|
62
|
+
body: FunctionBody$1 | Expression$1$1;
|
|
63
|
+
id: null;
|
|
64
|
+
generator: false;
|
|
65
|
+
parent?: Node$1$1;
|
|
66
|
+
}
|
|
67
|
+
declare interface AssignmentExpression$1$1 extends Span$1$1 {
|
|
68
|
+
type: "AssignmentExpression";
|
|
69
|
+
operator: AssignmentOperator$1;
|
|
70
|
+
left: AssignmentTarget$1;
|
|
71
|
+
right: Expression$1$1;
|
|
72
|
+
parent?: Node$1$1;
|
|
73
|
+
}
|
|
74
|
+
declare type AssignmentOperator$1 = "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "**=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "||=" | "&&=" | "??=";
|
|
75
|
+
declare interface AssignmentPattern$1$1 extends Span$1$1 {
|
|
76
|
+
type: "AssignmentPattern";
|
|
77
|
+
decorators?: [];
|
|
78
|
+
left: BindingPattern$1$1;
|
|
79
|
+
right: Expression$1$1;
|
|
80
|
+
optional?: false;
|
|
81
|
+
typeAnnotation?: null;
|
|
82
|
+
parent?: Node$1$1;
|
|
83
|
+
}
|
|
84
|
+
declare type AssignmentTarget$1 = SimpleAssignmentTarget$1$1 | AssignmentTargetPattern$1;
|
|
85
|
+
declare type AssignmentTargetMaybeDefault$1 = AssignmentTargetWithDefault$1 | AssignmentTarget$1;
|
|
86
|
+
declare type AssignmentTargetPattern$1 = ArrayAssignmentTarget$1 | ObjectAssignmentTarget$1;
|
|
87
|
+
declare type AssignmentTargetProperty$1 = AssignmentTargetPropertyIdentifier$1 | AssignmentTargetPropertyProperty$1;
|
|
88
|
+
declare interface AssignmentTargetPropertyIdentifier$1 extends Span$1$1 {
|
|
89
|
+
type: "Property";
|
|
90
|
+
kind: "init";
|
|
91
|
+
key: IdentifierReference$1$1;
|
|
92
|
+
value: IdentifierReference$1$1 | AssignmentTargetWithDefault$1;
|
|
93
|
+
method: false;
|
|
94
|
+
shorthand: true;
|
|
95
|
+
computed: false;
|
|
96
|
+
optional?: false;
|
|
97
|
+
parent?: Node$1$1;
|
|
98
|
+
}
|
|
99
|
+
declare interface AssignmentTargetPropertyProperty$1 extends Span$1$1 {
|
|
100
|
+
type: "Property";
|
|
101
|
+
kind: "init";
|
|
102
|
+
key: PropertyKey_2$1;
|
|
103
|
+
value: AssignmentTargetMaybeDefault$1;
|
|
104
|
+
method: false;
|
|
105
|
+
shorthand: false;
|
|
106
|
+
computed: boolean;
|
|
107
|
+
optional?: false;
|
|
108
|
+
parent?: Node$1$1;
|
|
109
|
+
}
|
|
110
|
+
declare interface AssignmentTargetRest$1 extends Span$1$1 {
|
|
111
|
+
type: "RestElement";
|
|
112
|
+
decorators?: [];
|
|
113
|
+
argument: AssignmentTarget$1;
|
|
114
|
+
optional?: false;
|
|
115
|
+
typeAnnotation?: null;
|
|
116
|
+
value?: null;
|
|
117
|
+
parent?: Node$1$1;
|
|
118
|
+
}
|
|
119
|
+
declare interface AssignmentTargetWithDefault$1 extends Span$1$1 {
|
|
120
|
+
type: "AssignmentPattern";
|
|
121
|
+
decorators?: [];
|
|
122
|
+
left: AssignmentTarget$1;
|
|
123
|
+
right: Expression$1$1;
|
|
124
|
+
optional?: false;
|
|
125
|
+
typeAnnotation?: null;
|
|
126
|
+
parent?: Node$1$1;
|
|
127
|
+
}
|
|
128
|
+
declare interface AwaitExpression$1 extends Span$1$1 {
|
|
129
|
+
type: "AwaitExpression";
|
|
130
|
+
argument: Expression$1$1;
|
|
131
|
+
parent?: Node$1$1;
|
|
132
|
+
}
|
|
133
|
+
declare interface BigIntLiteral$1$1 extends Span$1$1 {
|
|
134
|
+
type: "Literal";
|
|
135
|
+
value: bigint;
|
|
136
|
+
raw: string | null;
|
|
137
|
+
bigint: string;
|
|
138
|
+
parent?: Node$1$1;
|
|
139
|
+
}
|
|
140
|
+
declare interface BinaryExpression$1$1 extends Span$1$1 {
|
|
141
|
+
type: "BinaryExpression";
|
|
142
|
+
left: Expression$1$1;
|
|
143
|
+
operator: BinaryOperator$1;
|
|
144
|
+
right: Expression$1$1;
|
|
145
|
+
parent?: Node$1$1;
|
|
146
|
+
}
|
|
147
|
+
declare type BinaryOperator$1 = "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "+" | "-" | "*" | "/" | "%" | "**" | "<<" | ">>" | ">>>" | "|" | "^" | "&" | "in" | "instanceof";
|
|
148
|
+
declare interface BindingIdentifier$1$1 extends Span$1$1 {
|
|
149
|
+
type: "Identifier";
|
|
150
|
+
decorators?: [];
|
|
151
|
+
name: string;
|
|
152
|
+
optional?: false;
|
|
153
|
+
typeAnnotation?: TSTypeAnnotation$1$1 | null;
|
|
154
|
+
parent?: Node$1$1;
|
|
155
|
+
}
|
|
156
|
+
declare type BindingPattern$1$1 = BindingIdentifier$1$1 | ObjectPattern$1 | ArrayPattern$1$1 | AssignmentPattern$1$1;
|
|
157
|
+
declare interface BindingProperty$1$1 extends Span$1$1 {
|
|
158
|
+
type: "Property";
|
|
159
|
+
kind: "init";
|
|
160
|
+
key: PropertyKey_2$1;
|
|
161
|
+
value: BindingPattern$1$1;
|
|
162
|
+
method: false;
|
|
163
|
+
shorthand: boolean;
|
|
164
|
+
computed: boolean;
|
|
165
|
+
optional?: false;
|
|
166
|
+
parent?: Node$1$1;
|
|
167
|
+
}
|
|
168
|
+
declare interface BindingRestElement$1$1 extends Span$1$1 {
|
|
169
|
+
type: "RestElement";
|
|
170
|
+
decorators?: [];
|
|
171
|
+
argument: BindingPattern$1$1;
|
|
172
|
+
optional?: false;
|
|
173
|
+
typeAnnotation?: TSTypeAnnotation$1$1 | null;
|
|
174
|
+
value?: null;
|
|
175
|
+
parent?: Node$1$1;
|
|
176
|
+
}
|
|
177
|
+
declare interface BlockStatement$1$1 extends Span$1$1 {
|
|
178
|
+
type: "BlockStatement";
|
|
179
|
+
body: Array<Statement$1$1>;
|
|
180
|
+
parent?: Node$1$1;
|
|
181
|
+
}
|
|
182
|
+
declare interface BooleanLiteral$1$1 extends Span$1$1 {
|
|
183
|
+
type: "Literal";
|
|
184
|
+
value: boolean;
|
|
185
|
+
raw: string | null;
|
|
186
|
+
parent?: Node$1$1;
|
|
187
|
+
}
|
|
188
|
+
declare interface BreakStatement$1$1 extends Span$1$1 {
|
|
189
|
+
type: "BreakStatement";
|
|
190
|
+
label: LabelIdentifier$1$1 | null;
|
|
191
|
+
parent?: Node$1$1;
|
|
192
|
+
}
|
|
193
|
+
declare type Built$1<T> = T extends null | undefined ? T : T extends readonly unknown[] ? (number extends T['length'] ? Array<Built$1<T[number]>> : T) : T extends Span$1$1 ? { [K in keyof T as K extends keyof Span$1$1 ? never : K]: Child$1<T[K]>; } & Partial<Pick<T, keyof Span$1$1>> : T;
|
|
194
|
+
declare interface CallExpression$1$1 extends Span$1$1 {
|
|
195
|
+
type: "CallExpression";
|
|
196
|
+
callee: Expression$1$1;
|
|
197
|
+
typeArguments?: TSTypeParameterInstantiation$1$1 | null;
|
|
198
|
+
arguments: Array<Argument$1$1>;
|
|
199
|
+
optional: boolean;
|
|
200
|
+
parent?: Node$1$1;
|
|
201
|
+
}
|
|
202
|
+
declare interface CatchClause$1$1 extends Span$1$1 {
|
|
203
|
+
type: "CatchClause";
|
|
204
|
+
param: BindingPattern$1$1 | null;
|
|
205
|
+
body: BlockStatement$1$1;
|
|
206
|
+
parent?: Node$1$1;
|
|
207
|
+
}
|
|
208
|
+
declare type ChainElement$1 = CallExpression$1$1 | TSNonNullExpression$1$1 | MemberExpression$1$1;
|
|
209
|
+
declare interface ChainExpression$1$1 extends Span$1$1 {
|
|
210
|
+
type: "ChainExpression";
|
|
211
|
+
expression: ChainElement$1;
|
|
212
|
+
parent?: Node$1$1;
|
|
213
|
+
}
|
|
214
|
+
declare type Child$1<T> = T extends null | undefined ? T : T extends readonly unknown[] ? (number extends T['length'] ? Array<Child$1<T[number]>> : T) : T extends Span$1$1 ? Built$1<T> | T : T;
|
|
215
|
+
declare interface Class$1$1 extends Span$1$1 {
|
|
216
|
+
type: ClassType$1;
|
|
217
|
+
decorators: Array<Decorator$1$1>;
|
|
218
|
+
id: BindingIdentifier$1$1 | null;
|
|
219
|
+
typeParameters?: TSTypeParameterDeclaration$1$1 | null;
|
|
220
|
+
superClass: Expression$1$1 | null;
|
|
221
|
+
superTypeArguments?: TSTypeParameterInstantiation$1$1 | null;
|
|
222
|
+
implements?: Array<TSClassImplements$1>;
|
|
223
|
+
body: ClassBody$1$1;
|
|
224
|
+
abstract?: boolean;
|
|
225
|
+
declare?: boolean;
|
|
226
|
+
parent?: Node$1$1;
|
|
227
|
+
}
|
|
228
|
+
declare interface ClassBody$1$1 extends Span$1$1 {
|
|
229
|
+
type: "ClassBody";
|
|
230
|
+
body: Array<ClassElement$1>;
|
|
231
|
+
parent?: Node$1$1;
|
|
232
|
+
}
|
|
233
|
+
declare type ClassElement$1 = StaticBlock$1$1 | MethodDefinition$1$1 | PropertyDefinition$1$1 | AccessorProperty$1$1 | TSIndexSignature$1$1;
|
|
234
|
+
declare type ClassType$1 = "ClassDeclaration" | "ClassExpression";
|
|
235
|
+
declare interface ComputedMemberExpression$1 extends Span$1$1 {
|
|
236
|
+
type: "MemberExpression";
|
|
237
|
+
object: Expression$1$1;
|
|
238
|
+
property: Expression$1$1;
|
|
239
|
+
optional: boolean;
|
|
240
|
+
computed: true;
|
|
241
|
+
parent?: Node$1$1;
|
|
242
|
+
}
|
|
243
|
+
declare interface ConditionalExpression$1$1 extends Span$1$1 {
|
|
244
|
+
type: "ConditionalExpression";
|
|
245
|
+
test: Expression$1$1;
|
|
246
|
+
consequent: Expression$1$1;
|
|
247
|
+
alternate: Expression$1$1;
|
|
248
|
+
parent?: Node$1$1;
|
|
249
|
+
}
|
|
250
|
+
declare interface ContinueStatement$1$1 extends Span$1$1 {
|
|
251
|
+
type: "ContinueStatement";
|
|
252
|
+
label: LabelIdentifier$1$1 | null;
|
|
253
|
+
parent?: Node$1$1;
|
|
254
|
+
}
|
|
255
|
+
declare interface DebuggerStatement$1 extends Span$1$1 {
|
|
256
|
+
type: "DebuggerStatement";
|
|
257
|
+
parent?: Node$1$1;
|
|
258
|
+
}
|
|
259
|
+
declare type Declaration$1 = VariableDeclaration$1$1 | Function$1$1 | Class$1$1 | TSTypeAliasDeclaration$1$1 | TSInterfaceDeclaration$1$1 | TSEnumDeclaration$1$1 | TSModuleDeclaration$1$1 | TSGlobalDeclaration$1 | TSImportEqualsDeclaration$1$1;
|
|
260
|
+
declare interface Decorator$1$1 extends Span$1$1 {
|
|
261
|
+
type: "Decorator";
|
|
262
|
+
expression: Expression$1$1;
|
|
263
|
+
parent?: Node$1$1;
|
|
264
|
+
}
|
|
265
|
+
declare interface Directive$1 extends Span$1$1 {
|
|
266
|
+
type: "ExpressionStatement";
|
|
267
|
+
expression: StringLiteral$1$1;
|
|
268
|
+
directive: string;
|
|
269
|
+
parent?: Node$1$1;
|
|
270
|
+
}
|
|
271
|
+
declare interface DoWhileStatement$1$1 extends Span$1$1 {
|
|
272
|
+
type: "DoWhileStatement";
|
|
273
|
+
body: Statement$1$1;
|
|
274
|
+
test: Expression$1$1;
|
|
275
|
+
parent?: Node$1$1;
|
|
276
|
+
}
|
|
277
|
+
declare interface EmptyStatement$1$1 extends Span$1$1 {
|
|
278
|
+
type: "EmptyStatement";
|
|
279
|
+
parent?: Node$1$1;
|
|
280
|
+
}
|
|
281
|
+
declare interface ExportAllDeclaration$1$1 extends Span$1$1 {
|
|
282
|
+
type: "ExportAllDeclaration";
|
|
283
|
+
exported: ModuleExportName$1 | null;
|
|
284
|
+
source: StringLiteral$1$1;
|
|
285
|
+
attributes: Array<ImportAttribute$1$1>;
|
|
286
|
+
exportKind?: ImportOrExportKind$1;
|
|
287
|
+
parent?: Node$1$1;
|
|
288
|
+
}
|
|
289
|
+
declare interface ExportDefaultDeclaration$1$1 extends Span$1$1 {
|
|
290
|
+
type: "ExportDefaultDeclaration";
|
|
291
|
+
declaration: ExportDefaultDeclarationKind$1;
|
|
292
|
+
exportKind?: "value";
|
|
293
|
+
parent?: Node$1$1;
|
|
294
|
+
}
|
|
295
|
+
declare type ExportDefaultDeclarationKind$1 = Function$1$1 | Class$1$1 | TSInterfaceDeclaration$1$1 | Expression$1$1;
|
|
296
|
+
declare interface ExportNamedDeclaration$1$1 extends Span$1$1 {
|
|
297
|
+
type: "ExportNamedDeclaration";
|
|
298
|
+
declaration: Declaration$1 | null;
|
|
299
|
+
specifiers: Array<ExportSpecifier$1>;
|
|
300
|
+
source: StringLiteral$1$1 | null;
|
|
301
|
+
exportKind?: ImportOrExportKind$1;
|
|
302
|
+
attributes: Array<ImportAttribute$1$1>;
|
|
303
|
+
parent?: Node$1$1;
|
|
304
|
+
}
|
|
305
|
+
declare interface ExportSpecifier$1 extends Span$1$1 {
|
|
306
|
+
type: "ExportSpecifier";
|
|
307
|
+
local: ModuleExportName$1;
|
|
308
|
+
exported: ModuleExportName$1;
|
|
309
|
+
exportKind?: ImportOrExportKind$1;
|
|
310
|
+
parent?: Node$1$1;
|
|
311
|
+
}
|
|
312
|
+
declare type Expression$1$1 = BooleanLiteral$1$1 | NullLiteral$1$1 | NumericLiteral$1$1 | BigIntLiteral$1$1 | RegExpLiteral$1$1 | StringLiteral$1$1 | TemplateLiteral$1$1 | IdentifierReference$1$1 | Super$1$1 | ArrayExpression$1$1 | ArrowFunctionExpression$1$1 | AssignmentExpression$1$1 | AwaitExpression$1 | BinaryExpression$1$1 | CallExpression$1$1 | ChainExpression$1$1 | Class$1$1 | ConditionalExpression$1$1 | Function$1$1 | ImportExpression$1$1 | LogicalExpression$1$1 | NewExpression$1$1 | ObjectExpression$1$1 | ParenthesizedExpression$1 | SequenceExpression$1$1 | TaggedTemplateExpression$1$1 | ThisExpression$1$1 | UnaryExpression$1$1 | UpdateExpression$1$1 | YieldExpression$1$1 | PrivateInExpression$1$1 | MetaProperty$1$1 | JSXElement$1$1 | JSXFragment$1$1 | TSAsExpression$1$1 | TSSatisfiesExpression$1$1 | TSTypeAssertion$1$1 | TSNonNullExpression$1$1 | TSInstantiationExpression$1$1 | V8IntrinsicExpression$1 | MemberExpression$1$1;
|
|
313
|
+
declare interface ExpressionStatement$1$1 extends Span$1$1 {
|
|
314
|
+
type: "ExpressionStatement";
|
|
315
|
+
expression: Expression$1$1;
|
|
316
|
+
directive?: string | null;
|
|
317
|
+
parent?: Node$1$1;
|
|
318
|
+
}
|
|
319
|
+
declare interface ForInStatement$1$1 extends Span$1$1 {
|
|
320
|
+
type: "ForInStatement";
|
|
321
|
+
left: ForStatementLeft$1;
|
|
322
|
+
right: Expression$1$1;
|
|
323
|
+
body: Statement$1$1;
|
|
324
|
+
parent?: Node$1$1;
|
|
325
|
+
}
|
|
326
|
+
declare type FormalParameter$1 = {
|
|
327
|
+
decorators?: Array<Decorator$1$1>;
|
|
328
|
+
} & BindingPattern$1$1;
|
|
329
|
+
declare interface FormalParameterRest$1 extends Span$1$1 {
|
|
330
|
+
type: "RestElement";
|
|
331
|
+
argument: BindingPattern$1$1;
|
|
332
|
+
decorators?: Array<Decorator$1$1>;
|
|
333
|
+
optional?: boolean;
|
|
334
|
+
typeAnnotation?: TSTypeAnnotation$1$1 | null;
|
|
335
|
+
value?: null;
|
|
336
|
+
parent?: Node$1$1;
|
|
337
|
+
}
|
|
338
|
+
declare interface ForOfStatement$1$1 extends Span$1$1 {
|
|
339
|
+
type: "ForOfStatement";
|
|
340
|
+
await: boolean;
|
|
341
|
+
left: ForStatementLeft$1;
|
|
342
|
+
right: Expression$1$1;
|
|
343
|
+
body: Statement$1$1;
|
|
344
|
+
parent?: Node$1$1;
|
|
345
|
+
}
|
|
346
|
+
declare interface ForStatement$1$1 extends Span$1$1 {
|
|
347
|
+
type: "ForStatement";
|
|
348
|
+
init: ForStatementInit$1 | null;
|
|
349
|
+
test: Expression$1$1 | null;
|
|
350
|
+
update: Expression$1$1 | null;
|
|
351
|
+
body: Statement$1$1;
|
|
352
|
+
parent?: Node$1$1;
|
|
353
|
+
}
|
|
354
|
+
declare type ForStatementInit$1 = VariableDeclaration$1$1 | Expression$1$1;
|
|
355
|
+
declare type ForStatementLeft$1 = VariableDeclaration$1$1 | AssignmentTarget$1;
|
|
356
|
+
declare interface Function$1$1 extends Span$1$1 {
|
|
357
|
+
type: FunctionType$1;
|
|
358
|
+
id: BindingIdentifier$1$1 | null;
|
|
359
|
+
generator: boolean;
|
|
360
|
+
async: boolean;
|
|
361
|
+
declare?: boolean;
|
|
362
|
+
typeParameters?: TSTypeParameterDeclaration$1$1 | null;
|
|
363
|
+
params: ParamPattern$1$1[];
|
|
364
|
+
returnType?: TSTypeAnnotation$1$1 | null;
|
|
365
|
+
body: FunctionBody$1 | null;
|
|
366
|
+
expression: false;
|
|
367
|
+
parent?: Node$1$1;
|
|
368
|
+
}
|
|
369
|
+
declare interface FunctionBody$1 extends Span$1$1 {
|
|
370
|
+
type: "BlockStatement";
|
|
371
|
+
body: Array<Directive$1 | Statement$1$1>;
|
|
372
|
+
parent?: Node$1$1;
|
|
373
|
+
}
|
|
374
|
+
declare type FunctionType$1 = "FunctionDeclaration" | "FunctionExpression" | "TSDeclareFunction" | "TSEmptyBodyFunctionExpression";
|
|
375
|
+
declare interface Hashbang$1 extends Span$1$1 {
|
|
376
|
+
type: "Hashbang";
|
|
377
|
+
value: string;
|
|
378
|
+
parent?: Node$1$1;
|
|
379
|
+
}
|
|
380
|
+
declare interface IdentifierName$1$1 extends Span$1$1 {
|
|
381
|
+
type: "Identifier";
|
|
382
|
+
decorators?: [];
|
|
383
|
+
name: string;
|
|
384
|
+
optional?: false;
|
|
385
|
+
typeAnnotation?: null;
|
|
386
|
+
parent?: Node$1$1;
|
|
387
|
+
}
|
|
388
|
+
declare interface IdentifierReference$1$1 extends Span$1$1 {
|
|
389
|
+
type: "Identifier";
|
|
390
|
+
decorators?: [];
|
|
391
|
+
name: string;
|
|
392
|
+
optional?: false;
|
|
393
|
+
typeAnnotation?: null;
|
|
394
|
+
parent?: Node$1$1;
|
|
395
|
+
}
|
|
396
|
+
declare interface IfStatement$1$1 extends Span$1$1 {
|
|
397
|
+
type: "IfStatement";
|
|
398
|
+
test: Expression$1$1;
|
|
399
|
+
consequent: Statement$1$1;
|
|
400
|
+
alternate: Statement$1$1 | null;
|
|
401
|
+
parent?: Node$1$1;
|
|
402
|
+
}
|
|
403
|
+
declare interface Ignorer$1 {
|
|
404
|
+
readonly name: string;
|
|
405
|
+
shouldIgnore(node: Node_2$1, ancestors: readonly Node_2$1[]): string | undefined;
|
|
406
|
+
}
|
|
407
|
+
declare interface ImportAttribute$1$1 extends Span$1$1 {
|
|
408
|
+
type: "ImportAttribute";
|
|
409
|
+
key: ImportAttributeKey$1;
|
|
410
|
+
value: StringLiteral$1$1;
|
|
411
|
+
parent?: Node$1$1;
|
|
412
|
+
}
|
|
413
|
+
declare type ImportAttributeKey$1 = IdentifierName$1$1 | StringLiteral$1$1;
|
|
414
|
+
declare interface ImportDeclaration$1$1 extends Span$1$1 {
|
|
415
|
+
type: "ImportDeclaration";
|
|
416
|
+
specifiers: Array<ImportDeclarationSpecifier$1>;
|
|
417
|
+
source: StringLiteral$1$1;
|
|
418
|
+
phase: ImportPhase$1 | null;
|
|
419
|
+
attributes: Array<ImportAttribute$1$1>;
|
|
420
|
+
importKind?: ImportOrExportKind$1;
|
|
421
|
+
parent?: Node$1$1;
|
|
422
|
+
}
|
|
423
|
+
declare type ImportDeclarationSpecifier$1 = ImportSpecifier$1 | ImportDefaultSpecifier$1 | ImportNamespaceSpecifier$1;
|
|
424
|
+
declare interface ImportDefaultSpecifier$1 extends Span$1$1 {
|
|
425
|
+
type: "ImportDefaultSpecifier";
|
|
426
|
+
local: BindingIdentifier$1$1;
|
|
427
|
+
parent?: Node$1$1;
|
|
428
|
+
}
|
|
429
|
+
declare interface ImportExpression$1$1 extends Span$1$1 {
|
|
430
|
+
type: "ImportExpression";
|
|
431
|
+
source: Expression$1$1;
|
|
432
|
+
options: Expression$1$1 | null;
|
|
433
|
+
phase: ImportPhase$1 | null;
|
|
434
|
+
parent?: Node$1$1;
|
|
435
|
+
}
|
|
436
|
+
declare interface ImportNamespaceSpecifier$1 extends Span$1$1 {
|
|
437
|
+
type: "ImportNamespaceSpecifier";
|
|
438
|
+
local: BindingIdentifier$1$1;
|
|
439
|
+
parent?: Node$1$1;
|
|
440
|
+
}
|
|
441
|
+
declare type ImportOrExportKind$1 = "value" | "type";
|
|
442
|
+
declare type ImportPhase$1 = "source" | "defer";
|
|
443
|
+
declare interface ImportSpecifier$1 extends Span$1$1 {
|
|
444
|
+
type: "ImportSpecifier";
|
|
445
|
+
imported: ModuleExportName$1;
|
|
446
|
+
local: BindingIdentifier$1$1;
|
|
447
|
+
importKind?: ImportOrExportKind$1;
|
|
448
|
+
parent?: Node$1$1;
|
|
449
|
+
}
|
|
450
|
+
declare interface JSDocNonNullableType$1$1 extends Span$1$1 {
|
|
451
|
+
type: "TSJSDocNonNullableType";
|
|
452
|
+
typeAnnotation: TSType$1$1;
|
|
453
|
+
postfix: boolean;
|
|
454
|
+
parent?: Node$1$1;
|
|
455
|
+
}
|
|
456
|
+
declare interface JSDocNullableType$1$1 extends Span$1$1 {
|
|
457
|
+
type: "TSJSDocNullableType";
|
|
458
|
+
typeAnnotation: TSType$1$1;
|
|
459
|
+
postfix: boolean;
|
|
460
|
+
parent?: Node$1$1;
|
|
461
|
+
}
|
|
462
|
+
declare interface JSDocUnknownType$1 extends Span$1$1 {
|
|
463
|
+
type: "TSJSDocUnknownType";
|
|
464
|
+
parent?: Node$1$1;
|
|
465
|
+
}
|
|
466
|
+
declare interface JSXAttribute$1$1 extends Span$1$1 {
|
|
467
|
+
type: "JSXAttribute";
|
|
468
|
+
name: JSXAttributeName$1;
|
|
469
|
+
value: JSXAttributeValue$1 | null;
|
|
470
|
+
parent?: Node$1$1;
|
|
471
|
+
}
|
|
472
|
+
declare type JSXAttributeItem$1 = JSXAttribute$1$1 | JSXSpreadAttribute$1$1;
|
|
473
|
+
declare type JSXAttributeName$1 = JSXIdentifier$1$1 | JSXNamespacedName$1$1;
|
|
474
|
+
declare type JSXAttributeValue$1 = StringLiteral$1$1 | JSXExpressionContainer$1$1 | JSXElement$1$1 | JSXFragment$1$1;
|
|
475
|
+
declare type JSXChild$1 = JSXText$1$1 | JSXElement$1$1 | JSXFragment$1$1 | JSXExpressionContainer$1$1 | JSXSpreadChild$1$1;
|
|
476
|
+
declare interface JSXClosingElement$1 extends Span$1$1 {
|
|
477
|
+
type: "JSXClosingElement";
|
|
478
|
+
name: JSXElementName$1;
|
|
479
|
+
parent?: Node$1$1;
|
|
480
|
+
}
|
|
481
|
+
declare interface JSXClosingFragment$1 extends Span$1$1 {
|
|
482
|
+
type: "JSXClosingFragment";
|
|
483
|
+
parent?: Node$1$1;
|
|
484
|
+
}
|
|
485
|
+
declare interface JSXElement$1$1 extends Span$1$1 {
|
|
486
|
+
type: "JSXElement";
|
|
487
|
+
openingElement: JSXOpeningElement$1$1;
|
|
488
|
+
children: Array<JSXChild$1>;
|
|
489
|
+
closingElement: JSXClosingElement$1 | null;
|
|
490
|
+
parent?: Node$1$1;
|
|
491
|
+
}
|
|
492
|
+
declare type JSXElementName$1 = JSXIdentifier$1$1 | JSXNamespacedName$1$1 | JSXMemberExpression$1$1;
|
|
493
|
+
declare interface JSXEmptyExpression$1 extends Span$1$1 {
|
|
494
|
+
type: "JSXEmptyExpression";
|
|
495
|
+
parent?: Node$1$1;
|
|
496
|
+
}
|
|
497
|
+
declare type JSXExpression$1 = JSXEmptyExpression$1 | Expression$1$1;
|
|
498
|
+
declare interface JSXExpressionContainer$1$1 extends Span$1$1 {
|
|
499
|
+
type: "JSXExpressionContainer";
|
|
500
|
+
expression: JSXExpression$1;
|
|
501
|
+
parent?: Node$1$1;
|
|
502
|
+
}
|
|
503
|
+
declare interface JSXFragment$1$1 extends Span$1$1 {
|
|
504
|
+
type: "JSXFragment";
|
|
505
|
+
openingFragment: JSXOpeningFragment$1;
|
|
506
|
+
children: Array<JSXChild$1>;
|
|
507
|
+
closingFragment: JSXClosingFragment$1;
|
|
508
|
+
parent?: Node$1$1;
|
|
509
|
+
}
|
|
510
|
+
declare interface JSXIdentifier$1$1 extends Span$1$1 {
|
|
511
|
+
type: "JSXIdentifier";
|
|
512
|
+
name: string;
|
|
513
|
+
parent?: Node$1$1;
|
|
514
|
+
}
|
|
515
|
+
declare interface JSXMemberExpression$1$1 extends Span$1$1 {
|
|
516
|
+
type: "JSXMemberExpression";
|
|
517
|
+
object: JSXMemberExpressionObject$1;
|
|
518
|
+
property: JSXIdentifier$1$1;
|
|
519
|
+
parent?: Node$1$1;
|
|
520
|
+
}
|
|
521
|
+
declare type JSXMemberExpressionObject$1 = JSXIdentifier$1$1 | JSXMemberExpression$1$1;
|
|
522
|
+
declare interface JSXNamespacedName$1$1 extends Span$1$1 {
|
|
523
|
+
type: "JSXNamespacedName";
|
|
524
|
+
namespace: JSXIdentifier$1$1;
|
|
525
|
+
name: JSXIdentifier$1$1;
|
|
526
|
+
parent?: Node$1$1;
|
|
527
|
+
}
|
|
528
|
+
declare interface JSXOpeningElement$1$1 extends Span$1$1 {
|
|
529
|
+
type: "JSXOpeningElement";
|
|
530
|
+
name: JSXElementName$1;
|
|
531
|
+
typeArguments?: TSTypeParameterInstantiation$1$1 | null;
|
|
532
|
+
attributes: Array<JSXAttributeItem$1>;
|
|
533
|
+
selfClosing: boolean;
|
|
534
|
+
parent?: Node$1$1;
|
|
535
|
+
}
|
|
536
|
+
declare interface JSXOpeningFragment$1 extends Span$1$1 {
|
|
537
|
+
type: "JSXOpeningFragment";
|
|
538
|
+
attributes?: [];
|
|
539
|
+
selfClosing?: false;
|
|
540
|
+
parent?: Node$1$1;
|
|
541
|
+
}
|
|
542
|
+
declare interface JSXSpreadAttribute$1$1 extends Span$1$1 {
|
|
543
|
+
type: "JSXSpreadAttribute";
|
|
544
|
+
argument: Expression$1$1;
|
|
545
|
+
parent?: Node$1$1;
|
|
546
|
+
}
|
|
547
|
+
declare interface JSXSpreadChild$1$1 extends Span$1$1 {
|
|
548
|
+
type: "JSXSpreadChild";
|
|
549
|
+
expression: Expression$1$1;
|
|
550
|
+
parent?: Node$1$1;
|
|
551
|
+
}
|
|
552
|
+
declare interface JSXText$1$1 extends Span$1$1 {
|
|
553
|
+
type: "JSXText";
|
|
554
|
+
value: string;
|
|
555
|
+
raw: string | null;
|
|
556
|
+
parent?: Node$1$1;
|
|
557
|
+
}
|
|
558
|
+
declare interface LabeledStatement$1$1 extends Span$1$1 {
|
|
559
|
+
type: "LabeledStatement";
|
|
560
|
+
label: LabelIdentifier$1$1;
|
|
561
|
+
body: Statement$1$1;
|
|
562
|
+
parent?: Node$1$1;
|
|
563
|
+
}
|
|
564
|
+
declare interface LabelIdentifier$1$1 extends Span$1$1 {
|
|
565
|
+
type: "Identifier";
|
|
566
|
+
decorators?: [];
|
|
567
|
+
name: string;
|
|
568
|
+
optional?: false;
|
|
569
|
+
typeAnnotation?: null;
|
|
570
|
+
parent?: Node$1$1;
|
|
571
|
+
}
|
|
572
|
+
declare interface LogicalExpression$1$1 extends Span$1$1 {
|
|
573
|
+
type: "LogicalExpression";
|
|
574
|
+
left: Expression$1$1;
|
|
575
|
+
operator: LogicalOperator$1;
|
|
576
|
+
right: Expression$1$1;
|
|
577
|
+
parent?: Node$1$1;
|
|
578
|
+
}
|
|
579
|
+
declare type LogicalOperator$1 = "||" | "&&" | "??";
|
|
580
|
+
declare type MemberExpression$1$1 = ComputedMemberExpression$1 | StaticMemberExpression$1$1 | PrivateFieldExpression$1;
|
|
581
|
+
declare interface MetaProperty$1$1 extends Span$1$1 {
|
|
582
|
+
type: "MetaProperty";
|
|
583
|
+
meta: IdentifierName$1$1;
|
|
584
|
+
property: IdentifierName$1$1;
|
|
585
|
+
parent?: Node$1$1;
|
|
586
|
+
}
|
|
587
|
+
declare interface MethodDefinition$1$1 extends Span$1$1 {
|
|
588
|
+
type: MethodDefinitionType$1;
|
|
589
|
+
decorators: Array<Decorator$1$1>;
|
|
590
|
+
key: PropertyKey_2$1;
|
|
591
|
+
value: Function$1$1;
|
|
592
|
+
kind: MethodDefinitionKind$1;
|
|
593
|
+
computed: boolean;
|
|
594
|
+
static: boolean;
|
|
595
|
+
override?: boolean;
|
|
596
|
+
optional?: boolean;
|
|
597
|
+
accessibility?: TSAccessibility$1 | null;
|
|
598
|
+
parent?: Node$1$1;
|
|
599
|
+
}
|
|
600
|
+
declare type MethodDefinitionKind$1 = "constructor" | "method" | "get" | "set";
|
|
601
|
+
declare type MethodDefinitionType$1 = "MethodDefinition" | "TSAbstractMethodDefinition";
|
|
602
|
+
declare type ModuleDeclaration$1 = ImportDeclaration$1$1 | ExportAllDeclaration$1$1 | ExportDefaultDeclaration$1$1 | ExportNamedDeclaration$1$1 | TSExportAssignment$1$1 | TSNamespaceExportDeclaration$1$1;
|
|
603
|
+
declare type ModuleExportName$1 = IdentifierName$1$1 | IdentifierReference$1$1 | StringLiteral$1$1;
|
|
604
|
+
declare type ModuleKind$1 = "script" | "module" | "commonjs";
|
|
605
|
+
declare interface NewExpression$1$1 extends Span$1$1 {
|
|
606
|
+
type: "NewExpression";
|
|
607
|
+
callee: Expression$1$1;
|
|
608
|
+
typeArguments?: TSTypeParameterInstantiation$1$1 | null;
|
|
609
|
+
arguments: Array<Argument$1$1>;
|
|
610
|
+
parent?: Node$1$1;
|
|
611
|
+
}
|
|
612
|
+
declare type Node$1$1 = Program$1$1 | IdentifierName$1$1 | IdentifierReference$1$1 | BindingIdentifier$1$1 | LabelIdentifier$1$1 | ThisExpression$1$1 | ArrayExpression$1$1 | ObjectExpression$1$1 | ObjectProperty$1$1 | TemplateLiteral$1$1 | TaggedTemplateExpression$1$1 | TemplateElement$1$1 | ComputedMemberExpression$1 | StaticMemberExpression$1$1 | PrivateFieldExpression$1 | CallExpression$1$1 | NewExpression$1$1 | MetaProperty$1$1 | SpreadElement$1$1 | UpdateExpression$1$1 | UnaryExpression$1$1 | BinaryExpression$1$1 | PrivateInExpression$1$1 | LogicalExpression$1$1 | ConditionalExpression$1$1 | AssignmentExpression$1$1 | ArrayAssignmentTarget$1 | ObjectAssignmentTarget$1 | AssignmentTargetRest$1 | AssignmentTargetWithDefault$1 | AssignmentTargetPropertyIdentifier$1 | AssignmentTargetPropertyProperty$1 | SequenceExpression$1$1 | Super$1$1 | AwaitExpression$1 | ChainExpression$1$1 | ParenthesizedExpression$1 | Directive$1 | Hashbang$1 | BlockStatement$1$1 | VariableDeclaration$1$1 | VariableDeclarator$1$1 | EmptyStatement$1$1 | ExpressionStatement$1$1 | IfStatement$1$1 | DoWhileStatement$1$1 | WhileStatement$1$1 | ForStatement$1$1 | ForInStatement$1$1 | ForOfStatement$1$1 | ContinueStatement$1$1 | BreakStatement$1$1 | ReturnStatement$1$1 | WithStatement$1$1 | SwitchStatement$1$1 | SwitchCase$1$1 | LabeledStatement$1$1 | ThrowStatement$1$1 | TryStatement$1$1 | CatchClause$1$1 | DebuggerStatement$1 | AssignmentPattern$1$1 | ObjectPattern$1 | BindingProperty$1$1 | ArrayPattern$1$1 | BindingRestElement$1$1 | Function$1$1 | FunctionBody$1 | ArrowFunctionExpression$1$1 | YieldExpression$1$1 | Class$1$1 | ClassBody$1$1 | MethodDefinition$1$1 | PropertyDefinition$1$1 | PrivateIdentifier$1$1 | StaticBlock$1$1 | AccessorProperty$1$1 | ImportExpression$1$1 | ImportDeclaration$1$1 | ImportSpecifier$1 | ImportDefaultSpecifier$1 | ImportNamespaceSpecifier$1 | ImportAttribute$1$1 | ExportNamedDeclaration$1$1 | ExportDefaultDeclaration$1$1 | ExportAllDeclaration$1$1 | ExportSpecifier$1 | V8IntrinsicExpression$1 | BooleanLiteral$1$1 | NullLiteral$1$1 | NumericLiteral$1$1 | StringLiteral$1$1 | BigIntLiteral$1$1 | RegExpLiteral$1$1 | JSXElement$1$1 | JSXOpeningElement$1$1 | JSXClosingElement$1 | JSXFragment$1$1 | JSXOpeningFragment$1 | JSXClosingFragment$1 | JSXNamespacedName$1$1 | JSXMemberExpression$1$1 | JSXExpressionContainer$1$1 | JSXEmptyExpression$1 | JSXAttribute$1$1 | JSXSpreadAttribute$1$1 | JSXIdentifier$1$1 | JSXSpreadChild$1$1 | JSXText$1$1 | TSThisParameter$1 | TSEnumDeclaration$1$1 | TSEnumBody$1 | TSEnumMember$1 | TSTypeAnnotation$1$1 | TSLiteralType$1$1 | TSConditionalType$1$1 | TSUnionType$1$1 | TSIntersectionType$1$1 | TSParenthesizedType$1$1 | TSTypeOperator$1$1 | TSArrayType$1$1 | TSIndexedAccessType$1$1 | TSTupleType$1$1 | TSNamedTupleMember$1$1 | TSOptionalType$1$1 | TSRestType$1$1 | TSAnyKeyword$1 | TSStringKeyword$1 | TSBooleanKeyword$1 | TSNumberKeyword$1 | TSNeverKeyword$1 | TSIntrinsicKeyword$1 | TSUnknownKeyword$1 | TSNullKeyword$1 | TSUndefinedKeyword$1 | TSVoidKeyword$1 | TSSymbolKeyword$1 | TSThisType$1 | TSObjectKeyword$1 | TSBigIntKeyword$1 | TSTypeReference$1$1 | TSQualifiedName$1$1 | TSTypeParameterInstantiation$1$1 | TSTypeParameter$1 | TSTypeParameterDeclaration$1$1 | TSTypeAliasDeclaration$1$1 | TSClassImplements$1 | TSInterfaceDeclaration$1$1 | TSInterfaceBody$1$1 | TSPropertySignature$1$1 | TSIndexSignature$1$1 | TSCallSignatureDeclaration$1$1 | TSMethodSignature$1$1 | TSConstructSignatureDeclaration$1$1 | TSIndexSignatureName$1 | TSInterfaceHeritage$1 | TSTypePredicate$1$1 | TSModuleDeclaration$1$1 | TSGlobalDeclaration$1 | TSModuleBlock$1$1 | TSTypeLiteral$1 | TSInferType$1$1 | TSTypeQuery$1$1 | TSImportType$1$1 | TSImportTypeQualifiedName$1 | TSFunctionType$1$1 | TSConstructorType$1$1 | TSMappedType$1$1 | TSTemplateLiteralType$1$1 | TSAsExpression$1$1 | TSSatisfiesExpression$1$1 | TSTypeAssertion$1$1 | TSImportEqualsDeclaration$1$1 | TSExternalModuleReference$1 | TSNonNullExpression$1$1 | Decorator$1$1 | TSExportAssignment$1$1 | TSNamespaceExportDeclaration$1$1 | TSInstantiationExpression$1$1 | JSDocNullableType$1$1 | JSDocNonNullableType$1$1 | JSDocUnknownType$1 | ParamPattern$1$1;
|
|
613
|
+
declare type Node_2$1 = Simplify$1<Built$1<Node$1$1>> | Node$1$1;
|
|
614
|
+
declare interface NullLiteral$1$1 extends Span$1$1 {
|
|
615
|
+
type: "Literal";
|
|
616
|
+
value: null;
|
|
617
|
+
raw: "null" | null;
|
|
618
|
+
parent?: Node$1$1;
|
|
619
|
+
}
|
|
620
|
+
declare interface NumericLiteral$1$1 extends Span$1$1 {
|
|
621
|
+
type: "Literal";
|
|
622
|
+
value: number;
|
|
623
|
+
raw: string | null;
|
|
624
|
+
parent?: Node$1$1;
|
|
625
|
+
}
|
|
626
|
+
declare interface ObjectAssignmentTarget$1 extends Span$1$1 {
|
|
627
|
+
type: "ObjectPattern";
|
|
628
|
+
decorators?: [];
|
|
629
|
+
properties: Array<AssignmentTargetProperty$1 | AssignmentTargetRest$1>;
|
|
630
|
+
optional?: false;
|
|
631
|
+
typeAnnotation?: null;
|
|
632
|
+
parent?: Node$1$1;
|
|
633
|
+
}
|
|
634
|
+
declare interface ObjectExpression$1$1 extends Span$1$1 {
|
|
635
|
+
type: "ObjectExpression";
|
|
636
|
+
properties: Array<ObjectPropertyKind$1>;
|
|
637
|
+
parent?: Node$1$1;
|
|
638
|
+
}
|
|
639
|
+
declare interface ObjectPattern$1 extends Span$1$1 {
|
|
640
|
+
type: "ObjectPattern";
|
|
641
|
+
decorators?: [];
|
|
642
|
+
properties: Array<BindingProperty$1$1 | BindingRestElement$1$1>;
|
|
643
|
+
optional?: false;
|
|
644
|
+
typeAnnotation?: TSTypeAnnotation$1$1 | null;
|
|
645
|
+
parent?: Node$1$1;
|
|
646
|
+
}
|
|
647
|
+
declare interface ObjectProperty$1$1 extends Span$1$1 {
|
|
648
|
+
type: "Property";
|
|
649
|
+
kind: PropertyKind$1;
|
|
650
|
+
key: PropertyKey_2$1;
|
|
651
|
+
value: Expression$1$1;
|
|
652
|
+
method: boolean;
|
|
653
|
+
shorthand: boolean;
|
|
654
|
+
computed: boolean;
|
|
655
|
+
optional?: false;
|
|
656
|
+
parent?: Node$1$1;
|
|
657
|
+
}
|
|
658
|
+
declare type ObjectPropertyKind$1 = ObjectProperty$1$1 | SpreadElement$1$1;
|
|
659
|
+
declare type ParamPattern$1$1 = FormalParameter$1 | TSParameterProperty$1 | FormalParameterRest$1;
|
|
660
|
+
declare interface ParenthesizedExpression$1 extends Span$1$1 {
|
|
661
|
+
type: "ParenthesizedExpression";
|
|
662
|
+
expression: Expression$1$1;
|
|
663
|
+
parent?: Node$1$1;
|
|
664
|
+
}
|
|
665
|
+
declare interface PrivateFieldExpression$1 extends Span$1$1 {
|
|
666
|
+
type: "MemberExpression";
|
|
667
|
+
object: Expression$1$1;
|
|
668
|
+
property: PrivateIdentifier$1$1;
|
|
669
|
+
optional: boolean;
|
|
670
|
+
computed: false;
|
|
671
|
+
parent?: Node$1$1;
|
|
672
|
+
}
|
|
673
|
+
declare interface PrivateIdentifier$1$1 extends Span$1$1 {
|
|
674
|
+
type: "PrivateIdentifier";
|
|
675
|
+
name: string;
|
|
676
|
+
parent?: Node$1$1;
|
|
677
|
+
}
|
|
678
|
+
declare interface PrivateInExpression$1$1 extends Span$1$1 {
|
|
679
|
+
type: "BinaryExpression";
|
|
680
|
+
left: PrivateIdentifier$1$1;
|
|
681
|
+
operator: "in";
|
|
682
|
+
right: Expression$1$1;
|
|
683
|
+
parent?: Node$1$1;
|
|
684
|
+
}
|
|
685
|
+
declare interface Program$1$1 extends Span$1$1 {
|
|
686
|
+
type: "Program";
|
|
687
|
+
body: Array<Directive$1 | Statement$1$1>;
|
|
688
|
+
sourceType: ModuleKind$1;
|
|
689
|
+
hashbang: Hashbang$1 | null;
|
|
690
|
+
parent?: null;
|
|
691
|
+
}
|
|
692
|
+
declare type Program$2 = Simplify$1<Built$1<Program$1$1>>;
|
|
693
|
+
declare interface PropertyDefinition$1$1 extends Span$1$1 {
|
|
694
|
+
type: PropertyDefinitionType$1;
|
|
695
|
+
decorators: Array<Decorator$1$1>;
|
|
696
|
+
key: PropertyKey_2$1;
|
|
697
|
+
typeAnnotation?: TSTypeAnnotation$1$1 | null;
|
|
698
|
+
value: Expression$1$1 | null;
|
|
699
|
+
computed: boolean;
|
|
700
|
+
static: boolean;
|
|
701
|
+
declare?: boolean;
|
|
702
|
+
override?: boolean;
|
|
703
|
+
optional?: boolean;
|
|
704
|
+
definite?: boolean;
|
|
705
|
+
readonly?: boolean;
|
|
706
|
+
accessibility?: TSAccessibility$1 | null;
|
|
707
|
+
parent?: Node$1$1;
|
|
708
|
+
}
|
|
709
|
+
declare type PropertyDefinitionType$1 = "PropertyDefinition" | "TSAbstractPropertyDefinition";
|
|
710
|
+
declare type PropertyKey_2$1 = IdentifierName$1$1 | PrivateIdentifier$1$1 | Expression$1$1;
|
|
711
|
+
declare type PropertyKind$1 = "init" | "get" | "set";
|
|
712
|
+
declare interface RegExpLiteral$1$1 extends Span$1$1 {
|
|
713
|
+
type: "Literal";
|
|
714
|
+
value: RegExp | null;
|
|
715
|
+
raw: string | null;
|
|
716
|
+
regex: {
|
|
717
|
+
pattern: string;
|
|
718
|
+
flags: string;
|
|
719
|
+
};
|
|
720
|
+
parent?: Node$1$1;
|
|
721
|
+
}
|
|
722
|
+
declare interface ReturnStatement$1$1 extends Span$1$1 {
|
|
723
|
+
type: "ReturnStatement";
|
|
724
|
+
argument: Expression$1$1 | null;
|
|
725
|
+
parent?: Node$1$1;
|
|
726
|
+
}
|
|
727
|
+
declare interface SequenceExpression$1$1 extends Span$1$1 {
|
|
728
|
+
type: "SequenceExpression";
|
|
729
|
+
expressions: Array<Expression$1$1>;
|
|
730
|
+
parent?: Node$1$1;
|
|
731
|
+
}
|
|
732
|
+
declare type SimpleAssignmentTarget$1$1 = IdentifierReference$1$1 | TSAsExpression$1$1 | TSSatisfiesExpression$1$1 | TSNonNullExpression$1$1 | TSTypeAssertion$1$1 | MemberExpression$1$1;
|
|
733
|
+
declare type Simplify$1<T> = { [K in keyof T]: T[K]; } & {};
|
|
734
|
+
declare interface Span$1$1 {
|
|
735
|
+
start: number;
|
|
736
|
+
end: number;
|
|
737
|
+
range?: [number, number];
|
|
738
|
+
}
|
|
739
|
+
declare interface SpreadElement$1$1 extends Span$1$1 {
|
|
740
|
+
type: "SpreadElement";
|
|
741
|
+
argument: Expression$1$1;
|
|
742
|
+
parent?: Node$1$1;
|
|
743
|
+
}
|
|
744
|
+
declare type Statement$1$1 = BlockStatement$1$1 | BreakStatement$1$1 | ContinueStatement$1$1 | DebuggerStatement$1 | DoWhileStatement$1$1 | EmptyStatement$1$1 | ExpressionStatement$1$1 | ForInStatement$1$1 | ForOfStatement$1$1 | ForStatement$1$1 | IfStatement$1$1 | LabeledStatement$1$1 | ReturnStatement$1$1 | SwitchStatement$1$1 | ThrowStatement$1$1 | TryStatement$1$1 | WhileStatement$1$1 | WithStatement$1$1 | Declaration$1 | ModuleDeclaration$1;
|
|
745
|
+
declare type Statement = Simplify$1<Built$1<Statement$1$1>> | Statement$1$1;
|
|
746
|
+
declare interface StaticBlock$1$1 extends Span$1$1 {
|
|
747
|
+
type: "StaticBlock";
|
|
748
|
+
body: Array<Statement$1$1>;
|
|
749
|
+
parent?: Node$1$1;
|
|
750
|
+
}
|
|
751
|
+
declare interface StaticMemberExpression$1$1 extends Span$1$1 {
|
|
752
|
+
type: "MemberExpression";
|
|
753
|
+
object: Expression$1$1;
|
|
754
|
+
property: IdentifierName$1$1;
|
|
755
|
+
optional: boolean;
|
|
756
|
+
computed: false;
|
|
757
|
+
parent?: Node$1$1;
|
|
758
|
+
}
|
|
759
|
+
declare interface StringLiteral$1$1 extends Span$1$1 {
|
|
760
|
+
type: "Literal";
|
|
761
|
+
value: string;
|
|
762
|
+
raw: string | null;
|
|
763
|
+
parent?: Node$1$1;
|
|
764
|
+
}
|
|
765
|
+
declare interface Super$1$1 extends Span$1$1 {
|
|
766
|
+
type: "Super";
|
|
767
|
+
parent?: Node$1$1;
|
|
768
|
+
}
|
|
769
|
+
declare interface SwitchCase$1$1 extends Span$1$1 {
|
|
770
|
+
type: "SwitchCase";
|
|
771
|
+
test: Expression$1$1 | null;
|
|
772
|
+
consequent: Array<Statement$1$1>;
|
|
773
|
+
parent?: Node$1$1;
|
|
774
|
+
}
|
|
775
|
+
declare interface SwitchStatement$1$1 extends Span$1$1 {
|
|
776
|
+
type: "SwitchStatement";
|
|
777
|
+
discriminant: Expression$1$1;
|
|
778
|
+
cases: Array<SwitchCase$1$1>;
|
|
779
|
+
parent?: Node$1$1;
|
|
780
|
+
}
|
|
781
|
+
declare interface TaggedTemplateExpression$1$1 extends Span$1$1 {
|
|
782
|
+
type: "TaggedTemplateExpression";
|
|
783
|
+
tag: Expression$1$1;
|
|
784
|
+
typeArguments?: TSTypeParameterInstantiation$1$1 | null;
|
|
785
|
+
quasi: TemplateLiteral$1$1;
|
|
786
|
+
parent?: Node$1$1;
|
|
787
|
+
}
|
|
788
|
+
declare interface TemplateElement$1$1 extends Span$1$1 {
|
|
789
|
+
type: "TemplateElement";
|
|
790
|
+
value: TemplateElementValue$1;
|
|
791
|
+
tail: boolean;
|
|
792
|
+
parent?: Node$1$1;
|
|
793
|
+
}
|
|
794
|
+
declare interface TemplateElementValue$1 {
|
|
795
|
+
raw: string;
|
|
796
|
+
cooked: string | null;
|
|
797
|
+
}
|
|
798
|
+
declare interface TemplateLiteral$1$1 extends Span$1$1 {
|
|
799
|
+
type: "TemplateLiteral";
|
|
800
|
+
quasis: Array<TemplateElement$1$1>;
|
|
801
|
+
expressions: Array<Expression$1$1>;
|
|
802
|
+
parent?: Node$1$1;
|
|
803
|
+
}
|
|
804
|
+
declare interface ThisExpression$1$1 extends Span$1$1 {
|
|
805
|
+
type: "ThisExpression";
|
|
806
|
+
parent?: Node$1$1;
|
|
807
|
+
}
|
|
808
|
+
declare interface ThrowStatement$1$1 extends Span$1$1 {
|
|
809
|
+
type: "ThrowStatement";
|
|
810
|
+
argument: Expression$1$1;
|
|
811
|
+
parent?: Node$1$1;
|
|
812
|
+
}
|
|
813
|
+
declare interface TryStatement$1$1 extends Span$1$1 {
|
|
814
|
+
type: "TryStatement";
|
|
815
|
+
block: BlockStatement$1$1;
|
|
816
|
+
handler: CatchClause$1$1 | null;
|
|
817
|
+
finalizer: BlockStatement$1$1 | null;
|
|
818
|
+
parent?: Node$1$1;
|
|
819
|
+
}
|
|
820
|
+
declare type TSAccessibility$1 = "private" | "protected" | "public";
|
|
821
|
+
declare interface TSAnyKeyword$1 extends Span$1$1 {
|
|
822
|
+
type: "TSAnyKeyword";
|
|
823
|
+
parent?: Node$1$1;
|
|
824
|
+
}
|
|
825
|
+
declare interface TSArrayType$1$1 extends Span$1$1 {
|
|
826
|
+
type: "TSArrayType";
|
|
827
|
+
elementType: TSType$1$1;
|
|
828
|
+
parent?: Node$1$1;
|
|
829
|
+
}
|
|
830
|
+
declare interface TSAsExpression$1$1 extends Span$1$1 {
|
|
831
|
+
type: "TSAsExpression";
|
|
832
|
+
expression: Expression$1$1;
|
|
833
|
+
typeAnnotation: TSType$1$1;
|
|
834
|
+
parent?: Node$1$1;
|
|
835
|
+
}
|
|
836
|
+
declare interface TSBigIntKeyword$1 extends Span$1$1 {
|
|
837
|
+
type: "TSBigIntKeyword";
|
|
838
|
+
parent?: Node$1$1;
|
|
839
|
+
}
|
|
840
|
+
declare interface TSBooleanKeyword$1 extends Span$1$1 {
|
|
841
|
+
type: "TSBooleanKeyword";
|
|
842
|
+
parent?: Node$1$1;
|
|
843
|
+
}
|
|
844
|
+
declare interface TSCallSignatureDeclaration$1$1 extends Span$1$1 {
|
|
845
|
+
type: "TSCallSignatureDeclaration";
|
|
846
|
+
typeParameters: TSTypeParameterDeclaration$1$1 | null;
|
|
847
|
+
params: ParamPattern$1$1[];
|
|
848
|
+
returnType: TSTypeAnnotation$1$1 | null;
|
|
849
|
+
parent?: Node$1$1;
|
|
850
|
+
}
|
|
851
|
+
declare interface TSClassImplements$1 extends Span$1$1 {
|
|
852
|
+
type: "TSClassImplements";
|
|
853
|
+
expression: IdentifierReference$1$1 | ThisExpression$1$1 | MemberExpression$1$1;
|
|
854
|
+
typeArguments: TSTypeParameterInstantiation$1$1 | null;
|
|
855
|
+
parent?: Node$1$1;
|
|
856
|
+
}
|
|
857
|
+
declare interface TSConditionalType$1$1 extends Span$1$1 {
|
|
858
|
+
type: "TSConditionalType";
|
|
859
|
+
checkType: TSType$1$1;
|
|
860
|
+
extendsType: TSType$1$1;
|
|
861
|
+
trueType: TSType$1$1;
|
|
862
|
+
falseType: TSType$1$1;
|
|
863
|
+
parent?: Node$1$1;
|
|
864
|
+
}
|
|
865
|
+
declare interface TSConstructorType$1$1 extends Span$1$1 {
|
|
866
|
+
type: "TSConstructorType";
|
|
867
|
+
abstract: boolean;
|
|
868
|
+
typeParameters: TSTypeParameterDeclaration$1$1 | null;
|
|
869
|
+
params: ParamPattern$1$1[];
|
|
870
|
+
returnType: TSTypeAnnotation$1$1;
|
|
871
|
+
parent?: Node$1$1;
|
|
872
|
+
}
|
|
873
|
+
declare interface TSConstructSignatureDeclaration$1$1 extends Span$1$1 {
|
|
874
|
+
type: "TSConstructSignatureDeclaration";
|
|
875
|
+
typeParameters: TSTypeParameterDeclaration$1$1 | null;
|
|
876
|
+
params: ParamPattern$1$1[];
|
|
877
|
+
returnType: TSTypeAnnotation$1$1 | null;
|
|
878
|
+
parent?: Node$1$1;
|
|
879
|
+
}
|
|
880
|
+
declare interface TSEnumBody$1 extends Span$1$1 {
|
|
881
|
+
type: "TSEnumBody";
|
|
882
|
+
members: Array<TSEnumMember$1>;
|
|
883
|
+
parent?: Node$1$1;
|
|
884
|
+
}
|
|
885
|
+
declare interface TSEnumDeclaration$1$1 extends Span$1$1 {
|
|
886
|
+
type: "TSEnumDeclaration";
|
|
887
|
+
id: BindingIdentifier$1$1;
|
|
888
|
+
body: TSEnumBody$1;
|
|
889
|
+
const: boolean;
|
|
890
|
+
declare: boolean;
|
|
891
|
+
parent?: Node$1$1;
|
|
892
|
+
}
|
|
893
|
+
declare interface TSEnumMember$1 extends Span$1$1 {
|
|
894
|
+
type: "TSEnumMember";
|
|
895
|
+
id: TSEnumMemberName$1;
|
|
896
|
+
initializer: Expression$1$1 | null;
|
|
897
|
+
computed: boolean;
|
|
898
|
+
parent?: Node$1$1;
|
|
899
|
+
}
|
|
900
|
+
declare type TSEnumMemberName$1 = IdentifierName$1$1 | StringLiteral$1$1 | TemplateLiteral$1$1;
|
|
901
|
+
declare interface TSExportAssignment$1$1 extends Span$1$1 {
|
|
902
|
+
type: "TSExportAssignment";
|
|
903
|
+
expression: Expression$1$1;
|
|
904
|
+
parent?: Node$1$1;
|
|
905
|
+
}
|
|
906
|
+
declare interface TSExternalModuleReference$1 extends Span$1$1 {
|
|
907
|
+
type: "TSExternalModuleReference";
|
|
908
|
+
expression: StringLiteral$1$1;
|
|
909
|
+
parent?: Node$1$1;
|
|
910
|
+
}
|
|
911
|
+
declare interface TSFunctionType$1$1 extends Span$1$1 {
|
|
912
|
+
type: "TSFunctionType";
|
|
913
|
+
typeParameters: TSTypeParameterDeclaration$1$1 | null;
|
|
914
|
+
params: ParamPattern$1$1[];
|
|
915
|
+
returnType: TSTypeAnnotation$1$1;
|
|
916
|
+
parent?: Node$1$1;
|
|
917
|
+
}
|
|
918
|
+
declare interface TSGlobalDeclaration$1 extends Span$1$1 {
|
|
919
|
+
type: "TSModuleDeclaration";
|
|
920
|
+
id: IdentifierName$1$1;
|
|
921
|
+
body: TSModuleBlock$1$1;
|
|
922
|
+
kind: "global";
|
|
923
|
+
declare: boolean;
|
|
924
|
+
global: true;
|
|
925
|
+
parent?: Node$1$1;
|
|
926
|
+
}
|
|
927
|
+
declare interface TSImportEqualsDeclaration$1$1 extends Span$1$1 {
|
|
928
|
+
type: "TSImportEqualsDeclaration";
|
|
929
|
+
id: BindingIdentifier$1$1;
|
|
930
|
+
moduleReference: TSModuleReference$1;
|
|
931
|
+
importKind: ImportOrExportKind$1;
|
|
932
|
+
parent?: Node$1$1;
|
|
933
|
+
}
|
|
934
|
+
declare interface TSImportType$1$1 extends Span$1$1 {
|
|
935
|
+
type: "TSImportType";
|
|
936
|
+
source: StringLiteral$1$1;
|
|
937
|
+
options: ObjectExpression$1$1 | null;
|
|
938
|
+
qualifier: TSImportTypeQualifier$1 | null;
|
|
939
|
+
typeArguments: TSTypeParameterInstantiation$1$1 | null;
|
|
940
|
+
parent?: Node$1$1;
|
|
941
|
+
}
|
|
942
|
+
declare interface TSImportTypeQualifiedName$1 extends Span$1$1 {
|
|
943
|
+
type: "TSQualifiedName";
|
|
944
|
+
left: TSImportTypeQualifier$1;
|
|
945
|
+
right: IdentifierName$1$1;
|
|
946
|
+
parent?: Node$1$1;
|
|
947
|
+
}
|
|
948
|
+
declare type TSImportTypeQualifier$1 = IdentifierName$1$1 | TSImportTypeQualifiedName$1;
|
|
949
|
+
declare interface TSIndexedAccessType$1$1 extends Span$1$1 {
|
|
950
|
+
type: "TSIndexedAccessType";
|
|
951
|
+
objectType: TSType$1$1;
|
|
952
|
+
indexType: TSType$1$1;
|
|
953
|
+
parent?: Node$1$1;
|
|
954
|
+
}
|
|
955
|
+
declare interface TSIndexSignature$1$1 extends Span$1$1 {
|
|
956
|
+
type: "TSIndexSignature";
|
|
957
|
+
parameters: Array<TSIndexSignatureName$1>;
|
|
958
|
+
typeAnnotation: TSTypeAnnotation$1$1;
|
|
959
|
+
readonly: boolean;
|
|
960
|
+
static: boolean;
|
|
961
|
+
accessibility: null;
|
|
962
|
+
parent?: Node$1$1;
|
|
963
|
+
}
|
|
964
|
+
declare interface TSIndexSignatureName$1 extends Span$1$1 {
|
|
965
|
+
type: "Identifier";
|
|
966
|
+
decorators: [];
|
|
967
|
+
name: string;
|
|
968
|
+
optional: false;
|
|
969
|
+
typeAnnotation: TSTypeAnnotation$1$1;
|
|
970
|
+
parent?: Node$1$1;
|
|
971
|
+
}
|
|
972
|
+
declare interface TSInferType$1$1 extends Span$1$1 {
|
|
973
|
+
type: "TSInferType";
|
|
974
|
+
typeParameter: TSTypeParameter$1;
|
|
975
|
+
parent?: Node$1$1;
|
|
976
|
+
}
|
|
977
|
+
declare interface TSInstantiationExpression$1$1 extends Span$1$1 {
|
|
978
|
+
type: "TSInstantiationExpression";
|
|
979
|
+
expression: Expression$1$1;
|
|
980
|
+
typeArguments: TSTypeParameterInstantiation$1$1;
|
|
981
|
+
parent?: Node$1$1;
|
|
982
|
+
}
|
|
983
|
+
declare interface TSInterfaceBody$1$1 extends Span$1$1 {
|
|
984
|
+
type: "TSInterfaceBody";
|
|
985
|
+
body: Array<TSSignature$1>;
|
|
986
|
+
parent?: Node$1$1;
|
|
987
|
+
}
|
|
988
|
+
declare interface TSInterfaceDeclaration$1$1 extends Span$1$1 {
|
|
989
|
+
type: "TSInterfaceDeclaration";
|
|
990
|
+
id: BindingIdentifier$1$1;
|
|
991
|
+
typeParameters: TSTypeParameterDeclaration$1$1 | null;
|
|
992
|
+
extends: Array<TSInterfaceHeritage$1>;
|
|
993
|
+
body: TSInterfaceBody$1$1;
|
|
994
|
+
declare: boolean;
|
|
995
|
+
parent?: Node$1$1;
|
|
996
|
+
}
|
|
997
|
+
declare interface TSInterfaceHeritage$1 extends Span$1$1 {
|
|
998
|
+
type: "TSInterfaceHeritage";
|
|
999
|
+
expression: Expression$1$1;
|
|
1000
|
+
typeArguments: TSTypeParameterInstantiation$1$1 | null;
|
|
1001
|
+
parent?: Node$1$1;
|
|
1002
|
+
}
|
|
1003
|
+
declare interface TSIntersectionType$1$1 extends Span$1$1 {
|
|
1004
|
+
type: "TSIntersectionType";
|
|
1005
|
+
types: Array<TSType$1$1>;
|
|
1006
|
+
parent?: Node$1$1;
|
|
1007
|
+
}
|
|
1008
|
+
declare interface TSIntrinsicKeyword$1 extends Span$1$1 {
|
|
1009
|
+
type: "TSIntrinsicKeyword";
|
|
1010
|
+
parent?: Node$1$1;
|
|
1011
|
+
}
|
|
1012
|
+
declare type TSLiteral$1 = BooleanLiteral$1$1 | NumericLiteral$1$1 | BigIntLiteral$1$1 | StringLiteral$1$1 | TemplateLiteral$1$1 | UnaryExpression$1$1;
|
|
1013
|
+
declare interface TSLiteralType$1$1 extends Span$1$1 {
|
|
1014
|
+
type: "TSLiteralType";
|
|
1015
|
+
literal: TSLiteral$1;
|
|
1016
|
+
parent?: Node$1$1;
|
|
1017
|
+
}
|
|
1018
|
+
declare interface TSMappedType$1$1 extends Span$1$1 {
|
|
1019
|
+
type: "TSMappedType";
|
|
1020
|
+
key: BindingIdentifier$1$1;
|
|
1021
|
+
constraint: TSType$1$1;
|
|
1022
|
+
nameType: TSType$1$1 | null;
|
|
1023
|
+
typeAnnotation: TSType$1$1 | null;
|
|
1024
|
+
optional: TSMappedTypeModifierOperator$1 | false;
|
|
1025
|
+
readonly: TSMappedTypeModifierOperator$1 | null;
|
|
1026
|
+
parent?: Node$1$1;
|
|
1027
|
+
}
|
|
1028
|
+
declare type TSMappedTypeModifierOperator$1 = true | "+" | "-";
|
|
1029
|
+
declare interface TSMethodSignature$1$1 extends Span$1$1 {
|
|
1030
|
+
type: "TSMethodSignature";
|
|
1031
|
+
key: PropertyKey_2$1;
|
|
1032
|
+
computed: boolean;
|
|
1033
|
+
optional: boolean;
|
|
1034
|
+
kind: TSMethodSignatureKind$1;
|
|
1035
|
+
typeParameters: TSTypeParameterDeclaration$1$1 | null;
|
|
1036
|
+
params: ParamPattern$1$1[];
|
|
1037
|
+
returnType: TSTypeAnnotation$1$1 | null;
|
|
1038
|
+
accessibility: null;
|
|
1039
|
+
readonly: false;
|
|
1040
|
+
static: false;
|
|
1041
|
+
parent?: Node$1$1;
|
|
1042
|
+
}
|
|
1043
|
+
declare type TSMethodSignatureKind$1 = "method" | "get" | "set";
|
|
1044
|
+
declare interface TSModuleBlock$1$1 extends Span$1$1 {
|
|
1045
|
+
type: "TSModuleBlock";
|
|
1046
|
+
body: Array<Directive$1 | Statement$1$1>;
|
|
1047
|
+
parent?: Node$1$1;
|
|
1048
|
+
}
|
|
1049
|
+
declare interface TSModuleDeclaration$1$1 extends Span$1$1 {
|
|
1050
|
+
type: "TSModuleDeclaration";
|
|
1051
|
+
id: BindingIdentifier$1$1 | StringLiteral$1$1 | TSQualifiedName$1$1;
|
|
1052
|
+
body: TSModuleBlock$1$1 | null;
|
|
1053
|
+
kind: TSModuleDeclarationKind$1;
|
|
1054
|
+
declare: boolean;
|
|
1055
|
+
global: false;
|
|
1056
|
+
parent?: Node$1$1;
|
|
1057
|
+
}
|
|
1058
|
+
declare type TSModuleDeclarationKind$1 = "module" | "namespace";
|
|
1059
|
+
declare type TSModuleReference$1 = TSExternalModuleReference$1 | IdentifierReference$1$1 | TSQualifiedName$1$1;
|
|
1060
|
+
declare interface TSNamedTupleMember$1$1 extends Span$1$1 {
|
|
1061
|
+
type: "TSNamedTupleMember";
|
|
1062
|
+
label: IdentifierName$1$1;
|
|
1063
|
+
elementType: TSTupleElement$1;
|
|
1064
|
+
optional: boolean;
|
|
1065
|
+
parent?: Node$1$1;
|
|
1066
|
+
}
|
|
1067
|
+
declare interface TSNamespaceExportDeclaration$1$1 extends Span$1$1 {
|
|
1068
|
+
type: "TSNamespaceExportDeclaration";
|
|
1069
|
+
id: IdentifierName$1$1;
|
|
1070
|
+
parent?: Node$1$1;
|
|
1071
|
+
}
|
|
1072
|
+
declare interface TSNeverKeyword$1 extends Span$1$1 {
|
|
1073
|
+
type: "TSNeverKeyword";
|
|
1074
|
+
parent?: Node$1$1;
|
|
1075
|
+
}
|
|
1076
|
+
declare interface TSNonNullExpression$1$1 extends Span$1$1 {
|
|
1077
|
+
type: "TSNonNullExpression";
|
|
1078
|
+
expression: Expression$1$1;
|
|
1079
|
+
parent?: Node$1$1;
|
|
1080
|
+
}
|
|
1081
|
+
declare interface TSNullKeyword$1 extends Span$1$1 {
|
|
1082
|
+
type: "TSNullKeyword";
|
|
1083
|
+
parent?: Node$1$1;
|
|
1084
|
+
}
|
|
1085
|
+
declare interface TSNumberKeyword$1 extends Span$1$1 {
|
|
1086
|
+
type: "TSNumberKeyword";
|
|
1087
|
+
parent?: Node$1$1;
|
|
1088
|
+
}
|
|
1089
|
+
declare interface TSObjectKeyword$1 extends Span$1$1 {
|
|
1090
|
+
type: "TSObjectKeyword";
|
|
1091
|
+
parent?: Node$1$1;
|
|
1092
|
+
}
|
|
1093
|
+
declare interface TSOptionalType$1$1 extends Span$1$1 {
|
|
1094
|
+
type: "TSOptionalType";
|
|
1095
|
+
typeAnnotation: TSType$1$1;
|
|
1096
|
+
parent?: Node$1$1;
|
|
1097
|
+
}
|
|
1098
|
+
declare interface TSParameterProperty$1 extends Span$1$1 {
|
|
1099
|
+
type: "TSParameterProperty";
|
|
1100
|
+
accessibility: TSAccessibility$1 | null;
|
|
1101
|
+
decorators: Array<Decorator$1$1>;
|
|
1102
|
+
override: boolean;
|
|
1103
|
+
parameter: FormalParameter$1;
|
|
1104
|
+
readonly: boolean;
|
|
1105
|
+
static: boolean;
|
|
1106
|
+
parent?: Node$1$1;
|
|
1107
|
+
}
|
|
1108
|
+
declare interface TSParenthesizedType$1$1 extends Span$1$1 {
|
|
1109
|
+
type: "TSParenthesizedType";
|
|
1110
|
+
typeAnnotation: TSType$1$1;
|
|
1111
|
+
parent?: Node$1$1;
|
|
1112
|
+
}
|
|
1113
|
+
declare interface TSPropertySignature$1$1 extends Span$1$1 {
|
|
1114
|
+
type: "TSPropertySignature";
|
|
1115
|
+
computed: boolean;
|
|
1116
|
+
optional: boolean;
|
|
1117
|
+
readonly: boolean;
|
|
1118
|
+
key: PropertyKey_2$1;
|
|
1119
|
+
typeAnnotation: TSTypeAnnotation$1$1 | null;
|
|
1120
|
+
accessibility: null;
|
|
1121
|
+
static: false;
|
|
1122
|
+
parent?: Node$1$1;
|
|
1123
|
+
}
|
|
1124
|
+
declare interface TSQualifiedName$1$1 extends Span$1$1 {
|
|
1125
|
+
type: "TSQualifiedName";
|
|
1126
|
+
left: TSTypeName$1;
|
|
1127
|
+
right: IdentifierName$1$1;
|
|
1128
|
+
parent?: Node$1$1;
|
|
1129
|
+
}
|
|
1130
|
+
declare interface TSRestType$1$1 extends Span$1$1 {
|
|
1131
|
+
type: "TSRestType";
|
|
1132
|
+
typeAnnotation: TSType$1$1;
|
|
1133
|
+
parent?: Node$1$1;
|
|
1134
|
+
}
|
|
1135
|
+
declare interface TSSatisfiesExpression$1$1 extends Span$1$1 {
|
|
1136
|
+
type: "TSSatisfiesExpression";
|
|
1137
|
+
expression: Expression$1$1;
|
|
1138
|
+
typeAnnotation: TSType$1$1;
|
|
1139
|
+
parent?: Node$1$1;
|
|
1140
|
+
}
|
|
1141
|
+
declare type TSSignature$1 = TSIndexSignature$1$1 | TSPropertySignature$1$1 | TSCallSignatureDeclaration$1$1 | TSConstructSignatureDeclaration$1$1 | TSMethodSignature$1$1;
|
|
1142
|
+
declare interface TSStringKeyword$1 extends Span$1$1 {
|
|
1143
|
+
type: "TSStringKeyword";
|
|
1144
|
+
parent?: Node$1$1;
|
|
1145
|
+
}
|
|
1146
|
+
declare interface TSSymbolKeyword$1 extends Span$1$1 {
|
|
1147
|
+
type: "TSSymbolKeyword";
|
|
1148
|
+
parent?: Node$1$1;
|
|
1149
|
+
}
|
|
1150
|
+
declare interface TSTemplateLiteralType$1$1 extends Span$1$1 {
|
|
1151
|
+
type: "TSTemplateLiteralType";
|
|
1152
|
+
quasis: Array<TemplateElement$1$1>;
|
|
1153
|
+
types: Array<TSType$1$1>;
|
|
1154
|
+
parent?: Node$1$1;
|
|
1155
|
+
}
|
|
1156
|
+
declare interface TSThisParameter$1 extends Span$1$1 {
|
|
1157
|
+
type: "Identifier";
|
|
1158
|
+
decorators: [];
|
|
1159
|
+
name: "this";
|
|
1160
|
+
optional: false;
|
|
1161
|
+
typeAnnotation: TSTypeAnnotation$1$1 | null;
|
|
1162
|
+
parent?: Node$1$1;
|
|
1163
|
+
}
|
|
1164
|
+
declare interface TSThisType$1 extends Span$1$1 {
|
|
1165
|
+
type: "TSThisType";
|
|
1166
|
+
parent?: Node$1$1;
|
|
1167
|
+
}
|
|
1168
|
+
declare type TSTupleElement$1 = TSOptionalType$1$1 | TSRestType$1$1 | TSType$1$1;
|
|
1169
|
+
declare interface TSTupleType$1$1 extends Span$1$1 {
|
|
1170
|
+
type: "TSTupleType";
|
|
1171
|
+
elementTypes: Array<TSTupleElement$1>;
|
|
1172
|
+
parent?: Node$1$1;
|
|
1173
|
+
}
|
|
1174
|
+
declare type TSType$1$1 = TSAnyKeyword$1 | TSBigIntKeyword$1 | TSBooleanKeyword$1 | TSIntrinsicKeyword$1 | TSNeverKeyword$1 | TSNullKeyword$1 | TSNumberKeyword$1 | TSObjectKeyword$1 | TSStringKeyword$1 | TSSymbolKeyword$1 | TSUndefinedKeyword$1 | TSUnknownKeyword$1 | TSVoidKeyword$1 | TSArrayType$1$1 | TSConditionalType$1$1 | TSConstructorType$1$1 | TSFunctionType$1$1 | TSImportType$1$1 | TSIndexedAccessType$1$1 | TSInferType$1$1 | TSIntersectionType$1$1 | TSLiteralType$1$1 | TSMappedType$1$1 | TSNamedTupleMember$1$1 | TSTemplateLiteralType$1$1 | TSThisType$1 | TSTupleType$1$1 | TSTypeLiteral$1 | TSTypeOperator$1$1 | TSTypePredicate$1$1 | TSTypeQuery$1$1 | TSTypeReference$1$1 | TSUnionType$1$1 | TSParenthesizedType$1$1 | JSDocNullableType$1$1 | JSDocNonNullableType$1$1 | JSDocUnknownType$1;
|
|
1175
|
+
declare interface TSTypeAliasDeclaration$1$1 extends Span$1$1 {
|
|
1176
|
+
type: "TSTypeAliasDeclaration";
|
|
1177
|
+
id: BindingIdentifier$1$1;
|
|
1178
|
+
typeParameters: TSTypeParameterDeclaration$1$1 | null;
|
|
1179
|
+
typeAnnotation: TSType$1$1;
|
|
1180
|
+
declare: boolean;
|
|
1181
|
+
parent?: Node$1$1;
|
|
1182
|
+
}
|
|
1183
|
+
declare interface TSTypeAnnotation$1$1 extends Span$1$1 {
|
|
1184
|
+
type: "TSTypeAnnotation";
|
|
1185
|
+
typeAnnotation: TSType$1$1;
|
|
1186
|
+
parent?: Node$1$1;
|
|
1187
|
+
}
|
|
1188
|
+
declare interface TSTypeAssertion$1$1 extends Span$1$1 {
|
|
1189
|
+
type: "TSTypeAssertion";
|
|
1190
|
+
typeAnnotation: TSType$1$1;
|
|
1191
|
+
expression: Expression$1$1;
|
|
1192
|
+
parent?: Node$1$1;
|
|
1193
|
+
}
|
|
1194
|
+
declare interface TSTypeLiteral$1 extends Span$1$1 {
|
|
1195
|
+
type: "TSTypeLiteral";
|
|
1196
|
+
members: Array<TSSignature$1>;
|
|
1197
|
+
parent?: Node$1$1;
|
|
1198
|
+
}
|
|
1199
|
+
declare type TSTypeName$1 = IdentifierReference$1$1 | TSQualifiedName$1$1 | ThisExpression$1$1;
|
|
1200
|
+
declare interface TSTypeOperator$1$1 extends Span$1$1 {
|
|
1201
|
+
type: "TSTypeOperator";
|
|
1202
|
+
operator: TSTypeOperatorOperator$1;
|
|
1203
|
+
typeAnnotation: TSType$1$1;
|
|
1204
|
+
parent?: Node$1$1;
|
|
1205
|
+
}
|
|
1206
|
+
declare type TSTypeOperatorOperator$1 = "keyof" | "unique" | "readonly";
|
|
1207
|
+
declare interface TSTypeParameter$1 extends Span$1$1 {
|
|
1208
|
+
type: "TSTypeParameter";
|
|
1209
|
+
name: BindingIdentifier$1$1;
|
|
1210
|
+
constraint: TSType$1$1 | null;
|
|
1211
|
+
default: TSType$1$1 | null;
|
|
1212
|
+
in: boolean;
|
|
1213
|
+
out: boolean;
|
|
1214
|
+
const: boolean;
|
|
1215
|
+
parent?: Node$1$1;
|
|
1216
|
+
}
|
|
1217
|
+
declare interface TSTypeParameterDeclaration$1$1 extends Span$1$1 {
|
|
1218
|
+
type: "TSTypeParameterDeclaration";
|
|
1219
|
+
params: Array<TSTypeParameter$1>;
|
|
1220
|
+
parent?: Node$1$1;
|
|
1221
|
+
}
|
|
1222
|
+
declare interface TSTypeParameterInstantiation$1$1 extends Span$1$1 {
|
|
1223
|
+
type: "TSTypeParameterInstantiation";
|
|
1224
|
+
params: Array<TSType$1$1>;
|
|
1225
|
+
parent?: Node$1$1;
|
|
1226
|
+
}
|
|
1227
|
+
declare interface TSTypePredicate$1$1 extends Span$1$1 {
|
|
1228
|
+
type: "TSTypePredicate";
|
|
1229
|
+
parameterName: TSTypePredicateName$1;
|
|
1230
|
+
asserts: boolean;
|
|
1231
|
+
typeAnnotation: TSTypeAnnotation$1$1 | null;
|
|
1232
|
+
parent?: Node$1$1;
|
|
1233
|
+
}
|
|
1234
|
+
declare type TSTypePredicateName$1 = IdentifierName$1$1 | TSThisType$1;
|
|
1235
|
+
declare interface TSTypeQuery$1$1 extends Span$1$1 {
|
|
1236
|
+
type: "TSTypeQuery";
|
|
1237
|
+
exprName: TSTypeQueryExprName$1;
|
|
1238
|
+
typeArguments: TSTypeParameterInstantiation$1$1 | null;
|
|
1239
|
+
parent?: Node$1$1;
|
|
1240
|
+
}
|
|
1241
|
+
declare type TSTypeQueryExprName$1 = TSImportType$1$1 | TSTypeName$1;
|
|
1242
|
+
declare interface TSTypeReference$1$1 extends Span$1$1 {
|
|
1243
|
+
type: "TSTypeReference";
|
|
1244
|
+
typeName: TSTypeName$1;
|
|
1245
|
+
typeArguments: TSTypeParameterInstantiation$1$1 | null;
|
|
1246
|
+
parent?: Node$1$1;
|
|
1247
|
+
}
|
|
1248
|
+
declare interface TSUndefinedKeyword$1 extends Span$1$1 {
|
|
1249
|
+
type: "TSUndefinedKeyword";
|
|
1250
|
+
parent?: Node$1$1;
|
|
1251
|
+
}
|
|
1252
|
+
declare interface TSUnionType$1$1 extends Span$1$1 {
|
|
1253
|
+
type: "TSUnionType";
|
|
1254
|
+
types: Array<TSType$1$1>;
|
|
1255
|
+
parent?: Node$1$1;
|
|
1256
|
+
}
|
|
1257
|
+
declare interface TSUnknownKeyword$1 extends Span$1$1 {
|
|
1258
|
+
type: "TSUnknownKeyword";
|
|
1259
|
+
parent?: Node$1$1;
|
|
1260
|
+
}
|
|
1261
|
+
declare interface TSVoidKeyword$1 extends Span$1$1 {
|
|
1262
|
+
type: "TSVoidKeyword";
|
|
1263
|
+
parent?: Node$1$1;
|
|
1264
|
+
}
|
|
1265
|
+
declare interface UnaryExpression$1$1 extends Span$1$1 {
|
|
1266
|
+
type: "UnaryExpression";
|
|
1267
|
+
operator: UnaryOperator$1;
|
|
1268
|
+
argument: Expression$1$1;
|
|
1269
|
+
prefix: true;
|
|
1270
|
+
parent?: Node$1$1;
|
|
1271
|
+
}
|
|
1272
|
+
declare type UnaryOperator$1 = "+" | "-" | "!" | "~" | "typeof" | "void" | "delete";
|
|
1273
|
+
declare interface UpdateExpression$1$1 extends Span$1$1 {
|
|
1274
|
+
type: "UpdateExpression";
|
|
1275
|
+
operator: UpdateOperator$1;
|
|
1276
|
+
prefix: boolean;
|
|
1277
|
+
argument: SimpleAssignmentTarget$1$1;
|
|
1278
|
+
parent?: Node$1$1;
|
|
1279
|
+
}
|
|
1280
|
+
declare type UpdateOperator$1 = "++" | "--";
|
|
1281
|
+
declare interface V8IntrinsicExpression$1 extends Span$1$1 {
|
|
1282
|
+
type: "V8IntrinsicExpression";
|
|
1283
|
+
name: IdentifierName$1$1;
|
|
1284
|
+
arguments: Array<Argument$1$1>;
|
|
1285
|
+
parent?: Node$1$1;
|
|
1286
|
+
}
|
|
1287
|
+
declare interface VariableDeclaration$1$1 extends Span$1$1 {
|
|
1288
|
+
type: "VariableDeclaration";
|
|
1289
|
+
kind: VariableDeclarationKind$1;
|
|
1290
|
+
declarations: Array<VariableDeclarator$1$1>;
|
|
1291
|
+
declare?: boolean;
|
|
1292
|
+
parent?: Node$1$1;
|
|
1293
|
+
}
|
|
1294
|
+
declare type VariableDeclarationKind$1 = "var" | "let" | "const" | "using" | "await using";
|
|
1295
|
+
declare interface VariableDeclarator$1$1 extends Span$1$1 {
|
|
1296
|
+
type: "VariableDeclarator";
|
|
1297
|
+
id: BindingPattern$1$1;
|
|
1298
|
+
init: Expression$1$1 | null;
|
|
1299
|
+
definite?: boolean;
|
|
1300
|
+
parent?: Node$1$1;
|
|
1301
|
+
}
|
|
1302
|
+
declare interface WhileStatement$1$1 extends Span$1$1 {
|
|
1303
|
+
type: "WhileStatement";
|
|
1304
|
+
test: Expression$1$1;
|
|
1305
|
+
body: Statement$1$1;
|
|
1306
|
+
parent?: Node$1$1;
|
|
1307
|
+
}
|
|
1308
|
+
declare interface WithStatement$1$1 extends Span$1$1 {
|
|
1309
|
+
type: "WithStatement";
|
|
1310
|
+
object: Expression$1$1;
|
|
1311
|
+
body: Statement$1$1;
|
|
1312
|
+
parent?: Node$1$1;
|
|
1313
|
+
}
|
|
1314
|
+
declare interface YieldExpression$1$1 extends Span$1$1 {
|
|
1315
|
+
type: "YieldExpression";
|
|
1316
|
+
delegate: boolean;
|
|
1317
|
+
argument: Expression$1$1 | null;
|
|
1318
|
+
parent?: Node$1$1;
|
|
1319
|
+
}
|
|
1320
|
+
//#endregion
|
|
1321
|
+
//#region ../frameworks/interface/dist/index.d.ts
|
|
1322
|
+
declare interface EmbeddedDocument {
|
|
1323
|
+
readonly formatId: FormatId;
|
|
1324
|
+
readonly rawContent: string;
|
|
1325
|
+
readonly regions: readonly ScriptRegion[];
|
|
1326
|
+
}
|
|
1327
|
+
declare type FormatId = string;
|
|
1328
|
+
declare interface Framework {
|
|
1329
|
+
readonly kind: 'Framework';
|
|
1330
|
+
readonly name: string;
|
|
1331
|
+
readonly claim: FrameworkClaim;
|
|
1332
|
+
readonly parse: (rawContent: string, context: FrameworkContext) => FrameworkParseResult<EmbeddedDocument>;
|
|
1333
|
+
readonly transform: (document: EmbeddedDocument, context: FrameworkContext) => EmbeddedDocument;
|
|
1334
|
+
readonly print: (document: EmbeddedDocument, context: FrameworkContext) => string;
|
|
1335
|
+
readonly disableTypeChecks: (rawContent: string) => FrameworkParseResult<string>;
|
|
1336
|
+
}
|
|
1337
|
+
declare interface FrameworkClaim {
|
|
1338
|
+
readonly formatId: FormatId;
|
|
1339
|
+
readonly extensions: readonly string[];
|
|
1340
|
+
readonly language: string;
|
|
1341
|
+
readonly ownerVersion: string;
|
|
1342
|
+
readonly contractVersion: FrameworkContractVersion;
|
|
1343
|
+
}
|
|
1344
|
+
declare interface FrameworkContext {
|
|
1345
|
+
readonly parseScript: (source: string, scriptFormat: ScriptFormat$1) => Program$2;
|
|
1346
|
+
readonly printScript: (script: Program$2) => string;
|
|
1347
|
+
readonly instrumentationHeader: () => readonly Statement[];
|
|
1348
|
+
}
|
|
1349
|
+
declare type FrameworkContractVersion = '1';
|
|
1350
|
+
declare type FrameworkParseResult<A> = {
|
|
1351
|
+
readonly kind: 'Parsed';
|
|
1352
|
+
readonly value: A;
|
|
1353
|
+
} | {
|
|
1354
|
+
readonly kind: 'ParseFailed';
|
|
1355
|
+
readonly message: string;
|
|
1356
|
+
};
|
|
1357
|
+
declare type ScriptFormat$1 = 'js' | 'ts' | 'tsx';
|
|
1358
|
+
declare interface ScriptRegion {
|
|
1359
|
+
readonly start: number;
|
|
1360
|
+
readonly end: number;
|
|
1361
|
+
readonly isExpression: boolean;
|
|
1362
|
+
readonly scriptAst: Program$2;
|
|
1363
|
+
}
|
|
1364
|
+
//#endregion
|
|
1365
|
+
//#region ../stryker-js-instrumenter/dist/index.d.mts
|
|
1366
|
+
//#endregion
|
|
1367
|
+
//#region ../ignorers/interface/dist/index.d.ts
|
|
1368
|
+
declare interface AccessorProperty$1 extends Span$1 {
|
|
1369
|
+
type: AccessorPropertyType;
|
|
1370
|
+
decorators: Array<Decorator$1>;
|
|
1371
|
+
key: PropertyKey_2;
|
|
1372
|
+
typeAnnotation?: TSTypeAnnotation$1 | null;
|
|
1373
|
+
value: Expression$1 | null;
|
|
1374
|
+
computed: boolean;
|
|
1375
|
+
static: boolean;
|
|
1376
|
+
override?: boolean;
|
|
1377
|
+
definite?: boolean;
|
|
1378
|
+
accessibility?: TSAccessibility | null;
|
|
1379
|
+
declare?: false;
|
|
1380
|
+
optional?: false;
|
|
1381
|
+
readonly?: false;
|
|
1382
|
+
parent?: Node$1;
|
|
1383
|
+
}
|
|
1384
|
+
declare type AccessorPropertyType = "AccessorProperty" | "TSAbstractAccessorProperty";
|
|
1385
|
+
declare type Argument$1 = SpreadElement$1 | Expression$1;
|
|
1386
|
+
declare interface ArrayAssignmentTarget extends Span$1 {
|
|
1387
|
+
type: "ArrayPattern";
|
|
1388
|
+
decorators?: [];
|
|
1389
|
+
elements: Array<AssignmentTargetMaybeDefault | AssignmentTargetRest | null>;
|
|
1390
|
+
optional?: false;
|
|
1391
|
+
typeAnnotation?: null;
|
|
1392
|
+
parent?: Node$1;
|
|
1393
|
+
}
|
|
1394
|
+
declare interface ArrayExpression$1 extends Span$1 {
|
|
1395
|
+
type: "ArrayExpression";
|
|
1396
|
+
elements: Array<ArrayExpressionElement>;
|
|
1397
|
+
parent?: Node$1;
|
|
1398
|
+
}
|
|
1399
|
+
declare type ArrayExpressionElement = SpreadElement$1 | null | Expression$1;
|
|
1400
|
+
declare interface ArrayPattern$1 extends Span$1 {
|
|
1401
|
+
type: "ArrayPattern";
|
|
1402
|
+
decorators?: [];
|
|
1403
|
+
elements: Array<BindingPattern$1 | BindingRestElement$1 | null>;
|
|
1404
|
+
optional?: false;
|
|
1405
|
+
typeAnnotation?: TSTypeAnnotation$1 | null;
|
|
1406
|
+
parent?: Node$1;
|
|
1407
|
+
}
|
|
1408
|
+
declare interface ArrowFunctionExpression$1 extends Span$1 {
|
|
1409
|
+
type: "ArrowFunctionExpression";
|
|
1410
|
+
expression: boolean;
|
|
1411
|
+
async: boolean;
|
|
1412
|
+
typeParameters?: TSTypeParameterDeclaration$1 | null;
|
|
1413
|
+
params: ParamPattern$1[];
|
|
1414
|
+
returnType?: TSTypeAnnotation$1 | null;
|
|
1415
|
+
body: FunctionBody | Expression$1;
|
|
1416
|
+
id: null;
|
|
1417
|
+
generator: false;
|
|
1418
|
+
parent?: Node$1;
|
|
1419
|
+
}
|
|
1420
|
+
declare interface AssignmentExpression$1 extends Span$1 {
|
|
1421
|
+
type: "AssignmentExpression";
|
|
1422
|
+
operator: AssignmentOperator;
|
|
1423
|
+
left: AssignmentTarget;
|
|
1424
|
+
right: Expression$1;
|
|
1425
|
+
parent?: Node$1;
|
|
1426
|
+
}
|
|
1427
|
+
declare type AssignmentOperator = "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "**=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "||=" | "&&=" | "??=";
|
|
1428
|
+
declare interface AssignmentPattern$1 extends Span$1 {
|
|
1429
|
+
type: "AssignmentPattern";
|
|
1430
|
+
decorators?: [];
|
|
1431
|
+
left: BindingPattern$1;
|
|
1432
|
+
right: Expression$1;
|
|
1433
|
+
optional?: false;
|
|
1434
|
+
typeAnnotation?: null;
|
|
1435
|
+
parent?: Node$1;
|
|
1436
|
+
}
|
|
1437
|
+
declare type AssignmentTarget = SimpleAssignmentTarget$1 | AssignmentTargetPattern;
|
|
1438
|
+
declare type AssignmentTargetMaybeDefault = AssignmentTargetWithDefault | AssignmentTarget;
|
|
1439
|
+
declare type AssignmentTargetPattern = ArrayAssignmentTarget | ObjectAssignmentTarget;
|
|
1440
|
+
declare type AssignmentTargetProperty = AssignmentTargetPropertyIdentifier | AssignmentTargetPropertyProperty;
|
|
1441
|
+
declare interface AssignmentTargetPropertyIdentifier extends Span$1 {
|
|
1442
|
+
type: "Property";
|
|
1443
|
+
kind: "init";
|
|
1444
|
+
key: IdentifierReference$1;
|
|
1445
|
+
value: IdentifierReference$1 | AssignmentTargetWithDefault;
|
|
1446
|
+
method: false;
|
|
1447
|
+
shorthand: true;
|
|
1448
|
+
computed: false;
|
|
1449
|
+
optional?: false;
|
|
1450
|
+
parent?: Node$1;
|
|
1451
|
+
}
|
|
1452
|
+
declare interface AssignmentTargetPropertyProperty extends Span$1 {
|
|
1453
|
+
type: "Property";
|
|
1454
|
+
kind: "init";
|
|
1455
|
+
key: PropertyKey_2;
|
|
1456
|
+
value: AssignmentTargetMaybeDefault;
|
|
1457
|
+
method: false;
|
|
1458
|
+
shorthand: false;
|
|
1459
|
+
computed: boolean;
|
|
1460
|
+
optional?: false;
|
|
1461
|
+
parent?: Node$1;
|
|
1462
|
+
}
|
|
1463
|
+
declare interface AssignmentTargetRest extends Span$1 {
|
|
1464
|
+
type: "RestElement";
|
|
1465
|
+
decorators?: [];
|
|
1466
|
+
argument: AssignmentTarget;
|
|
1467
|
+
optional?: false;
|
|
1468
|
+
typeAnnotation?: null;
|
|
1469
|
+
value?: null;
|
|
1470
|
+
parent?: Node$1;
|
|
1471
|
+
}
|
|
1472
|
+
declare interface AssignmentTargetWithDefault extends Span$1 {
|
|
1473
|
+
type: "AssignmentPattern";
|
|
1474
|
+
decorators?: [];
|
|
1475
|
+
left: AssignmentTarget;
|
|
1476
|
+
right: Expression$1;
|
|
1477
|
+
optional?: false;
|
|
1478
|
+
typeAnnotation?: null;
|
|
1479
|
+
parent?: Node$1;
|
|
1480
|
+
}
|
|
1481
|
+
declare interface AwaitExpression extends Span$1 {
|
|
1482
|
+
type: "AwaitExpression";
|
|
1483
|
+
argument: Expression$1;
|
|
1484
|
+
parent?: Node$1;
|
|
1485
|
+
}
|
|
1486
|
+
declare interface BigIntLiteral$1 extends Span$1 {
|
|
1487
|
+
type: "Literal";
|
|
1488
|
+
value: bigint;
|
|
1489
|
+
raw: string | null;
|
|
1490
|
+
bigint: string;
|
|
1491
|
+
parent?: Node$1;
|
|
1492
|
+
}
|
|
1493
|
+
declare interface BinaryExpression$1 extends Span$1 {
|
|
1494
|
+
type: "BinaryExpression";
|
|
1495
|
+
left: Expression$1;
|
|
1496
|
+
operator: BinaryOperator;
|
|
1497
|
+
right: Expression$1;
|
|
1498
|
+
parent?: Node$1;
|
|
1499
|
+
}
|
|
1500
|
+
declare type BinaryOperator = "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "+" | "-" | "*" | "/" | "%" | "**" | "<<" | ">>" | ">>>" | "|" | "^" | "&" | "in" | "instanceof";
|
|
1501
|
+
declare interface BindingIdentifier$1 extends Span$1 {
|
|
1502
|
+
type: "Identifier";
|
|
1503
|
+
decorators?: [];
|
|
1504
|
+
name: string;
|
|
1505
|
+
optional?: false;
|
|
1506
|
+
typeAnnotation?: TSTypeAnnotation$1 | null;
|
|
1507
|
+
parent?: Node$1;
|
|
1508
|
+
}
|
|
1509
|
+
declare type BindingPattern$1 = BindingIdentifier$1 | ObjectPattern | ArrayPattern$1 | AssignmentPattern$1;
|
|
1510
|
+
declare interface BindingProperty$1 extends Span$1 {
|
|
1511
|
+
type: "Property";
|
|
1512
|
+
kind: "init";
|
|
1513
|
+
key: PropertyKey_2;
|
|
1514
|
+
value: BindingPattern$1;
|
|
1515
|
+
method: false;
|
|
1516
|
+
shorthand: boolean;
|
|
1517
|
+
computed: boolean;
|
|
1518
|
+
optional?: false;
|
|
1519
|
+
parent?: Node$1;
|
|
1520
|
+
}
|
|
1521
|
+
declare interface BindingRestElement$1 extends Span$1 {
|
|
1522
|
+
type: "RestElement";
|
|
1523
|
+
decorators?: [];
|
|
1524
|
+
argument: BindingPattern$1;
|
|
1525
|
+
optional?: false;
|
|
1526
|
+
typeAnnotation?: TSTypeAnnotation$1 | null;
|
|
1527
|
+
value?: null;
|
|
1528
|
+
parent?: Node$1;
|
|
1529
|
+
}
|
|
1530
|
+
declare interface BlockStatement$1 extends Span$1 {
|
|
1531
|
+
type: "BlockStatement";
|
|
1532
|
+
body: Array<Statement$1>;
|
|
1533
|
+
parent?: Node$1;
|
|
1534
|
+
}
|
|
1535
|
+
declare interface BooleanLiteral$1 extends Span$1 {
|
|
1536
|
+
type: "Literal";
|
|
1537
|
+
value: boolean;
|
|
1538
|
+
raw: string | null;
|
|
1539
|
+
parent?: Node$1;
|
|
1540
|
+
}
|
|
1541
|
+
declare interface BreakStatement$1 extends Span$1 {
|
|
1542
|
+
type: "BreakStatement";
|
|
1543
|
+
label: LabelIdentifier$1 | null;
|
|
1544
|
+
parent?: Node$1;
|
|
1545
|
+
}
|
|
1546
|
+
declare type Built<T> = T extends null | undefined ? T : T extends readonly unknown[] ? (number extends T['length'] ? Array<Built<T[number]>> : T) : T extends Span$1 ? { [K in keyof T as K extends keyof Span$1 ? never : K]: Child<T[K]>; } & Partial<Pick<T, keyof Span$1>> : T;
|
|
1547
|
+
declare interface CallExpression$1 extends Span$1 {
|
|
1548
|
+
type: "CallExpression";
|
|
1549
|
+
callee: Expression$1;
|
|
1550
|
+
typeArguments?: TSTypeParameterInstantiation$1 | null;
|
|
1551
|
+
arguments: Array<Argument$1>;
|
|
1552
|
+
optional: boolean;
|
|
1553
|
+
parent?: Node$1;
|
|
1554
|
+
}
|
|
1555
|
+
declare interface CatchClause$1 extends Span$1 {
|
|
1556
|
+
type: "CatchClause";
|
|
1557
|
+
param: BindingPattern$1 | null;
|
|
1558
|
+
body: BlockStatement$1;
|
|
1559
|
+
parent?: Node$1;
|
|
1560
|
+
}
|
|
1561
|
+
declare type ChainElement = CallExpression$1 | TSNonNullExpression$1 | MemberExpression$1;
|
|
1562
|
+
declare interface ChainExpression$1 extends Span$1 {
|
|
1563
|
+
type: "ChainExpression";
|
|
1564
|
+
expression: ChainElement;
|
|
1565
|
+
parent?: Node$1;
|
|
1566
|
+
}
|
|
1567
|
+
declare type Child<T> = T extends null | undefined ? T : T extends readonly unknown[] ? (number extends T['length'] ? Array<Child<T[number]>> : T) : T extends Span$1 ? Built<T> | T : T;
|
|
1568
|
+
declare interface Class$1 extends Span$1 {
|
|
1569
|
+
type: ClassType;
|
|
1570
|
+
decorators: Array<Decorator$1>;
|
|
1571
|
+
id: BindingIdentifier$1 | null;
|
|
1572
|
+
typeParameters?: TSTypeParameterDeclaration$1 | null;
|
|
1573
|
+
superClass: Expression$1 | null;
|
|
1574
|
+
superTypeArguments?: TSTypeParameterInstantiation$1 | null;
|
|
1575
|
+
implements?: Array<TSClassImplements>;
|
|
1576
|
+
body: ClassBody$1;
|
|
1577
|
+
abstract?: boolean;
|
|
1578
|
+
declare?: boolean;
|
|
1579
|
+
parent?: Node$1;
|
|
1580
|
+
}
|
|
1581
|
+
declare interface ClassBody$1 extends Span$1 {
|
|
1582
|
+
type: "ClassBody";
|
|
1583
|
+
body: Array<ClassElement>;
|
|
1584
|
+
parent?: Node$1;
|
|
1585
|
+
}
|
|
1586
|
+
declare type ClassElement = StaticBlock$1 | MethodDefinition$1 | PropertyDefinition$1 | AccessorProperty$1 | TSIndexSignature$1;
|
|
1587
|
+
declare type ClassType = "ClassDeclaration" | "ClassExpression";
|
|
1588
|
+
declare interface ComputedMemberExpression extends Span$1 {
|
|
1589
|
+
type: "MemberExpression";
|
|
1590
|
+
object: Expression$1;
|
|
1591
|
+
property: Expression$1;
|
|
1592
|
+
optional: boolean;
|
|
1593
|
+
computed: true;
|
|
1594
|
+
parent?: Node$1;
|
|
1595
|
+
}
|
|
1596
|
+
declare interface ConditionalExpression$1 extends Span$1 {
|
|
1597
|
+
type: "ConditionalExpression";
|
|
1598
|
+
test: Expression$1;
|
|
1599
|
+
consequent: Expression$1;
|
|
1600
|
+
alternate: Expression$1;
|
|
1601
|
+
parent?: Node$1;
|
|
1602
|
+
}
|
|
1603
|
+
declare interface ContinueStatement$1 extends Span$1 {
|
|
1604
|
+
type: "ContinueStatement";
|
|
1605
|
+
label: LabelIdentifier$1 | null;
|
|
1606
|
+
parent?: Node$1;
|
|
1607
|
+
}
|
|
1608
|
+
declare interface DebuggerStatement extends Span$1 {
|
|
1609
|
+
type: "DebuggerStatement";
|
|
1610
|
+
parent?: Node$1;
|
|
1611
|
+
}
|
|
1612
|
+
declare type Declaration = VariableDeclaration$1 | Function$1 | Class$1 | TSTypeAliasDeclaration$1 | TSInterfaceDeclaration$1 | TSEnumDeclaration$1 | TSModuleDeclaration$1 | TSGlobalDeclaration | TSImportEqualsDeclaration$1;
|
|
1613
|
+
declare interface Decorator$1 extends Span$1 {
|
|
1614
|
+
type: "Decorator";
|
|
1615
|
+
expression: Expression$1;
|
|
1616
|
+
parent?: Node$1;
|
|
1617
|
+
}
|
|
1618
|
+
declare interface Directive extends Span$1 {
|
|
1619
|
+
type: "ExpressionStatement";
|
|
1620
|
+
expression: StringLiteral$1;
|
|
1621
|
+
directive: string;
|
|
1622
|
+
parent?: Node$1;
|
|
1623
|
+
}
|
|
1624
|
+
declare interface DoWhileStatement$1 extends Span$1 {
|
|
1625
|
+
type: "DoWhileStatement";
|
|
1626
|
+
body: Statement$1;
|
|
1627
|
+
test: Expression$1;
|
|
1628
|
+
parent?: Node$1;
|
|
1629
|
+
}
|
|
1630
|
+
declare interface EmptyStatement$1 extends Span$1 {
|
|
1631
|
+
type: "EmptyStatement";
|
|
1632
|
+
parent?: Node$1;
|
|
1633
|
+
}
|
|
1634
|
+
declare interface ExportAllDeclaration$1 extends Span$1 {
|
|
1635
|
+
type: "ExportAllDeclaration";
|
|
1636
|
+
exported: ModuleExportName | null;
|
|
1637
|
+
source: StringLiteral$1;
|
|
1638
|
+
attributes: Array<ImportAttribute$1>;
|
|
1639
|
+
exportKind?: ImportOrExportKind;
|
|
1640
|
+
parent?: Node$1;
|
|
1641
|
+
}
|
|
1642
|
+
declare interface ExportDefaultDeclaration$1 extends Span$1 {
|
|
1643
|
+
type: "ExportDefaultDeclaration";
|
|
1644
|
+
declaration: ExportDefaultDeclarationKind;
|
|
1645
|
+
exportKind?: "value";
|
|
1646
|
+
parent?: Node$1;
|
|
1647
|
+
}
|
|
1648
|
+
declare type ExportDefaultDeclarationKind = Function$1 | Class$1 | TSInterfaceDeclaration$1 | Expression$1;
|
|
1649
|
+
declare interface ExportNamedDeclaration$1 extends Span$1 {
|
|
1650
|
+
type: "ExportNamedDeclaration";
|
|
1651
|
+
declaration: Declaration | null;
|
|
1652
|
+
specifiers: Array<ExportSpecifier>;
|
|
1653
|
+
source: StringLiteral$1 | null;
|
|
1654
|
+
exportKind?: ImportOrExportKind;
|
|
1655
|
+
attributes: Array<ImportAttribute$1>;
|
|
1656
|
+
parent?: Node$1;
|
|
1657
|
+
}
|
|
1658
|
+
declare interface ExportSpecifier extends Span$1 {
|
|
1659
|
+
type: "ExportSpecifier";
|
|
1660
|
+
local: ModuleExportName;
|
|
1661
|
+
exported: ModuleExportName;
|
|
1662
|
+
exportKind?: ImportOrExportKind;
|
|
1663
|
+
parent?: Node$1;
|
|
1664
|
+
}
|
|
1665
|
+
declare type Expression$1 = BooleanLiteral$1 | NullLiteral$1 | NumericLiteral$1 | BigIntLiteral$1 | RegExpLiteral$1 | StringLiteral$1 | TemplateLiteral$1 | IdentifierReference$1 | Super$1 | ArrayExpression$1 | ArrowFunctionExpression$1 | AssignmentExpression$1 | AwaitExpression | BinaryExpression$1 | CallExpression$1 | ChainExpression$1 | Class$1 | ConditionalExpression$1 | Function$1 | ImportExpression$1 | LogicalExpression$1 | NewExpression$1 | ObjectExpression$1 | ParenthesizedExpression | SequenceExpression$1 | TaggedTemplateExpression$1 | ThisExpression$1 | UnaryExpression$1 | UpdateExpression$1 | YieldExpression$1 | PrivateInExpression$1 | MetaProperty$1 | JSXElement$1 | JSXFragment$1 | TSAsExpression$1 | TSSatisfiesExpression$1 | TSTypeAssertion$1 | TSNonNullExpression$1 | TSInstantiationExpression$1 | V8IntrinsicExpression | MemberExpression$1;
|
|
1666
|
+
declare interface ExpressionStatement$1 extends Span$1 {
|
|
1667
|
+
type: "ExpressionStatement";
|
|
1668
|
+
expression: Expression$1;
|
|
1669
|
+
directive?: string | null;
|
|
1670
|
+
parent?: Node$1;
|
|
1671
|
+
}
|
|
1672
|
+
declare interface ForInStatement$1 extends Span$1 {
|
|
1673
|
+
type: "ForInStatement";
|
|
1674
|
+
left: ForStatementLeft;
|
|
1675
|
+
right: Expression$1;
|
|
1676
|
+
body: Statement$1;
|
|
1677
|
+
parent?: Node$1;
|
|
1678
|
+
}
|
|
1679
|
+
declare type FormalParameter = {
|
|
1680
|
+
decorators?: Array<Decorator$1>;
|
|
1681
|
+
} & BindingPattern$1;
|
|
1682
|
+
declare interface FormalParameterRest extends Span$1 {
|
|
1683
|
+
type: "RestElement";
|
|
1684
|
+
argument: BindingPattern$1;
|
|
1685
|
+
decorators?: Array<Decorator$1>;
|
|
1686
|
+
optional?: boolean;
|
|
1687
|
+
typeAnnotation?: TSTypeAnnotation$1 | null;
|
|
1688
|
+
value?: null;
|
|
1689
|
+
parent?: Node$1;
|
|
1690
|
+
}
|
|
1691
|
+
declare interface ForOfStatement$1 extends Span$1 {
|
|
1692
|
+
type: "ForOfStatement";
|
|
1693
|
+
await: boolean;
|
|
1694
|
+
left: ForStatementLeft;
|
|
1695
|
+
right: Expression$1;
|
|
1696
|
+
body: Statement$1;
|
|
1697
|
+
parent?: Node$1;
|
|
1698
|
+
}
|
|
1699
|
+
declare interface ForStatement$1 extends Span$1 {
|
|
1700
|
+
type: "ForStatement";
|
|
1701
|
+
init: ForStatementInit | null;
|
|
1702
|
+
test: Expression$1 | null;
|
|
1703
|
+
update: Expression$1 | null;
|
|
1704
|
+
body: Statement$1;
|
|
1705
|
+
parent?: Node$1;
|
|
1706
|
+
}
|
|
1707
|
+
declare type ForStatementInit = VariableDeclaration$1 | Expression$1;
|
|
1708
|
+
declare type ForStatementLeft = VariableDeclaration$1 | AssignmentTarget;
|
|
1709
|
+
declare interface Function$1 extends Span$1 {
|
|
1710
|
+
type: FunctionType;
|
|
1711
|
+
id: BindingIdentifier$1 | null;
|
|
1712
|
+
generator: boolean;
|
|
1713
|
+
async: boolean;
|
|
1714
|
+
declare?: boolean;
|
|
1715
|
+
typeParameters?: TSTypeParameterDeclaration$1 | null;
|
|
1716
|
+
params: ParamPattern$1[];
|
|
1717
|
+
returnType?: TSTypeAnnotation$1 | null;
|
|
1718
|
+
body: FunctionBody | null;
|
|
1719
|
+
expression: false;
|
|
1720
|
+
parent?: Node$1;
|
|
1721
|
+
}
|
|
1722
|
+
declare interface FunctionBody extends Span$1 {
|
|
1723
|
+
type: "BlockStatement";
|
|
1724
|
+
body: Array<Directive | Statement$1>;
|
|
1725
|
+
parent?: Node$1;
|
|
1726
|
+
}
|
|
1727
|
+
declare type FunctionType = "FunctionDeclaration" | "FunctionExpression" | "TSDeclareFunction" | "TSEmptyBodyFunctionExpression";
|
|
1728
|
+
declare interface Hashbang extends Span$1 {
|
|
1729
|
+
type: "Hashbang";
|
|
1730
|
+
value: string;
|
|
1731
|
+
parent?: Node$1;
|
|
1732
|
+
}
|
|
1733
|
+
declare interface IdentifierName$1 extends Span$1 {
|
|
1734
|
+
type: "Identifier";
|
|
1735
|
+
decorators?: [];
|
|
1736
|
+
name: string;
|
|
1737
|
+
optional?: false;
|
|
1738
|
+
typeAnnotation?: null;
|
|
1739
|
+
parent?: Node$1;
|
|
1740
|
+
}
|
|
1741
|
+
declare interface IdentifierReference$1 extends Span$1 {
|
|
1742
|
+
type: "Identifier";
|
|
1743
|
+
decorators?: [];
|
|
1744
|
+
name: string;
|
|
1745
|
+
optional?: false;
|
|
1746
|
+
typeAnnotation?: null;
|
|
1747
|
+
parent?: Node$1;
|
|
1748
|
+
}
|
|
1749
|
+
declare interface IfStatement$1 extends Span$1 {
|
|
1750
|
+
type: "IfStatement";
|
|
1751
|
+
test: Expression$1;
|
|
1752
|
+
consequent: Statement$1;
|
|
1753
|
+
alternate: Statement$1 | null;
|
|
1754
|
+
parent?: Node$1;
|
|
1755
|
+
}
|
|
1756
|
+
declare interface Ignorer {
|
|
1757
|
+
readonly name: string;
|
|
1758
|
+
shouldIgnore(node: Node_2, ancestors: readonly Node_2[]): string | undefined;
|
|
1759
|
+
}
|
|
1760
|
+
declare interface ImportAttribute$1 extends Span$1 {
|
|
1761
|
+
type: "ImportAttribute";
|
|
1762
|
+
key: ImportAttributeKey;
|
|
1763
|
+
value: StringLiteral$1;
|
|
1764
|
+
parent?: Node$1;
|
|
1765
|
+
}
|
|
1766
|
+
declare type ImportAttributeKey = IdentifierName$1 | StringLiteral$1;
|
|
1767
|
+
declare interface ImportDeclaration$1 extends Span$1 {
|
|
1768
|
+
type: "ImportDeclaration";
|
|
1769
|
+
specifiers: Array<ImportDeclarationSpecifier>;
|
|
1770
|
+
source: StringLiteral$1;
|
|
1771
|
+
phase: ImportPhase | null;
|
|
1772
|
+
attributes: Array<ImportAttribute$1>;
|
|
1773
|
+
importKind?: ImportOrExportKind;
|
|
1774
|
+
parent?: Node$1;
|
|
1775
|
+
}
|
|
1776
|
+
declare type ImportDeclarationSpecifier = ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier;
|
|
1777
|
+
declare interface ImportDefaultSpecifier extends Span$1 {
|
|
1778
|
+
type: "ImportDefaultSpecifier";
|
|
1779
|
+
local: BindingIdentifier$1;
|
|
1780
|
+
parent?: Node$1;
|
|
1781
|
+
}
|
|
1782
|
+
declare interface ImportExpression$1 extends Span$1 {
|
|
1783
|
+
type: "ImportExpression";
|
|
1784
|
+
source: Expression$1;
|
|
1785
|
+
options: Expression$1 | null;
|
|
1786
|
+
phase: ImportPhase | null;
|
|
1787
|
+
parent?: Node$1;
|
|
1788
|
+
}
|
|
1789
|
+
declare interface ImportNamespaceSpecifier extends Span$1 {
|
|
1790
|
+
type: "ImportNamespaceSpecifier";
|
|
1791
|
+
local: BindingIdentifier$1;
|
|
1792
|
+
parent?: Node$1;
|
|
1793
|
+
}
|
|
1794
|
+
declare type ImportOrExportKind = "value" | "type";
|
|
1795
|
+
declare type ImportPhase = "source" | "defer";
|
|
1796
|
+
declare interface ImportSpecifier extends Span$1 {
|
|
1797
|
+
type: "ImportSpecifier";
|
|
1798
|
+
imported: ModuleExportName;
|
|
1799
|
+
local: BindingIdentifier$1;
|
|
1800
|
+
importKind?: ImportOrExportKind;
|
|
1801
|
+
parent?: Node$1;
|
|
1802
|
+
}
|
|
1803
|
+
declare interface JSDocNonNullableType$1 extends Span$1 {
|
|
1804
|
+
type: "TSJSDocNonNullableType";
|
|
1805
|
+
typeAnnotation: TSType$1;
|
|
1806
|
+
postfix: boolean;
|
|
1807
|
+
parent?: Node$1;
|
|
1808
|
+
}
|
|
1809
|
+
declare interface JSDocNullableType$1 extends Span$1 {
|
|
1810
|
+
type: "TSJSDocNullableType";
|
|
1811
|
+
typeAnnotation: TSType$1;
|
|
1812
|
+
postfix: boolean;
|
|
1813
|
+
parent?: Node$1;
|
|
1814
|
+
}
|
|
1815
|
+
declare interface JSDocUnknownType extends Span$1 {
|
|
1816
|
+
type: "TSJSDocUnknownType";
|
|
1817
|
+
parent?: Node$1;
|
|
1818
|
+
}
|
|
1819
|
+
declare interface JSXAttribute$1 extends Span$1 {
|
|
1820
|
+
type: "JSXAttribute";
|
|
1821
|
+
name: JSXAttributeName;
|
|
1822
|
+
value: JSXAttributeValue | null;
|
|
1823
|
+
parent?: Node$1;
|
|
1824
|
+
}
|
|
1825
|
+
declare type JSXAttributeItem = JSXAttribute$1 | JSXSpreadAttribute$1;
|
|
1826
|
+
declare type JSXAttributeName = JSXIdentifier$1 | JSXNamespacedName$1;
|
|
1827
|
+
declare type JSXAttributeValue = StringLiteral$1 | JSXExpressionContainer$1 | JSXElement$1 | JSXFragment$1;
|
|
1828
|
+
declare type JSXChild = JSXText$1 | JSXElement$1 | JSXFragment$1 | JSXExpressionContainer$1 | JSXSpreadChild$1;
|
|
1829
|
+
declare interface JSXClosingElement extends Span$1 {
|
|
1830
|
+
type: "JSXClosingElement";
|
|
1831
|
+
name: JSXElementName;
|
|
1832
|
+
parent?: Node$1;
|
|
1833
|
+
}
|
|
1834
|
+
declare interface JSXClosingFragment extends Span$1 {
|
|
1835
|
+
type: "JSXClosingFragment";
|
|
1836
|
+
parent?: Node$1;
|
|
1837
|
+
}
|
|
1838
|
+
declare interface JSXElement$1 extends Span$1 {
|
|
1839
|
+
type: "JSXElement";
|
|
1840
|
+
openingElement: JSXOpeningElement$1;
|
|
1841
|
+
children: Array<JSXChild>;
|
|
1842
|
+
closingElement: JSXClosingElement | null;
|
|
1843
|
+
parent?: Node$1;
|
|
1844
|
+
}
|
|
1845
|
+
declare type JSXElementName = JSXIdentifier$1 | JSXNamespacedName$1 | JSXMemberExpression$1;
|
|
1846
|
+
declare interface JSXEmptyExpression extends Span$1 {
|
|
1847
|
+
type: "JSXEmptyExpression";
|
|
1848
|
+
parent?: Node$1;
|
|
1849
|
+
}
|
|
1850
|
+
declare type JSXExpression = JSXEmptyExpression | Expression$1;
|
|
1851
|
+
declare interface JSXExpressionContainer$1 extends Span$1 {
|
|
1852
|
+
type: "JSXExpressionContainer";
|
|
1853
|
+
expression: JSXExpression;
|
|
1854
|
+
parent?: Node$1;
|
|
1855
|
+
}
|
|
1856
|
+
declare interface JSXFragment$1 extends Span$1 {
|
|
1857
|
+
type: "JSXFragment";
|
|
1858
|
+
openingFragment: JSXOpeningFragment;
|
|
1859
|
+
children: Array<JSXChild>;
|
|
1860
|
+
closingFragment: JSXClosingFragment;
|
|
1861
|
+
parent?: Node$1;
|
|
1862
|
+
}
|
|
1863
|
+
declare interface JSXIdentifier$1 extends Span$1 {
|
|
1864
|
+
type: "JSXIdentifier";
|
|
1865
|
+
name: string;
|
|
1866
|
+
parent?: Node$1;
|
|
1867
|
+
}
|
|
1868
|
+
declare interface JSXMemberExpression$1 extends Span$1 {
|
|
1869
|
+
type: "JSXMemberExpression";
|
|
1870
|
+
object: JSXMemberExpressionObject;
|
|
1871
|
+
property: JSXIdentifier$1;
|
|
1872
|
+
parent?: Node$1;
|
|
1873
|
+
}
|
|
1874
|
+
declare type JSXMemberExpressionObject = JSXIdentifier$1 | JSXMemberExpression$1;
|
|
1875
|
+
declare interface JSXNamespacedName$1 extends Span$1 {
|
|
1876
|
+
type: "JSXNamespacedName";
|
|
1877
|
+
namespace: JSXIdentifier$1;
|
|
1878
|
+
name: JSXIdentifier$1;
|
|
1879
|
+
parent?: Node$1;
|
|
1880
|
+
}
|
|
1881
|
+
declare interface JSXOpeningElement$1 extends Span$1 {
|
|
1882
|
+
type: "JSXOpeningElement";
|
|
1883
|
+
name: JSXElementName;
|
|
1884
|
+
typeArguments?: TSTypeParameterInstantiation$1 | null;
|
|
1885
|
+
attributes: Array<JSXAttributeItem>;
|
|
1886
|
+
selfClosing: boolean;
|
|
1887
|
+
parent?: Node$1;
|
|
1888
|
+
}
|
|
1889
|
+
declare interface JSXOpeningFragment extends Span$1 {
|
|
1890
|
+
type: "JSXOpeningFragment";
|
|
1891
|
+
attributes?: [];
|
|
1892
|
+
selfClosing?: false;
|
|
1893
|
+
parent?: Node$1;
|
|
1894
|
+
}
|
|
1895
|
+
declare interface JSXSpreadAttribute$1 extends Span$1 {
|
|
1896
|
+
type: "JSXSpreadAttribute";
|
|
1897
|
+
argument: Expression$1;
|
|
1898
|
+
parent?: Node$1;
|
|
1899
|
+
}
|
|
1900
|
+
declare interface JSXSpreadChild$1 extends Span$1 {
|
|
1901
|
+
type: "JSXSpreadChild";
|
|
1902
|
+
expression: Expression$1;
|
|
1903
|
+
parent?: Node$1;
|
|
1904
|
+
}
|
|
1905
|
+
declare interface JSXText$1 extends Span$1 {
|
|
1906
|
+
type: "JSXText";
|
|
1907
|
+
value: string;
|
|
1908
|
+
raw: string | null;
|
|
1909
|
+
parent?: Node$1;
|
|
1910
|
+
}
|
|
1911
|
+
declare interface LabeledStatement$1 extends Span$1 {
|
|
1912
|
+
type: "LabeledStatement";
|
|
1913
|
+
label: LabelIdentifier$1;
|
|
1914
|
+
body: Statement$1;
|
|
1915
|
+
parent?: Node$1;
|
|
1916
|
+
}
|
|
1917
|
+
declare interface LabelIdentifier$1 extends Span$1 {
|
|
1918
|
+
type: "Identifier";
|
|
1919
|
+
decorators?: [];
|
|
1920
|
+
name: string;
|
|
1921
|
+
optional?: false;
|
|
1922
|
+
typeAnnotation?: null;
|
|
1923
|
+
parent?: Node$1;
|
|
1924
|
+
}
|
|
1925
|
+
declare interface LogicalExpression$1 extends Span$1 {
|
|
1926
|
+
type: "LogicalExpression";
|
|
1927
|
+
left: Expression$1;
|
|
1928
|
+
operator: LogicalOperator;
|
|
1929
|
+
right: Expression$1;
|
|
1930
|
+
parent?: Node$1;
|
|
1931
|
+
}
|
|
1932
|
+
declare type LogicalOperator = "||" | "&&" | "??";
|
|
1933
|
+
declare type MemberExpression$1 = ComputedMemberExpression | StaticMemberExpression$1 | PrivateFieldExpression;
|
|
1934
|
+
declare interface MetaProperty$1 extends Span$1 {
|
|
1935
|
+
type: "MetaProperty";
|
|
1936
|
+
meta: IdentifierName$1;
|
|
1937
|
+
property: IdentifierName$1;
|
|
1938
|
+
parent?: Node$1;
|
|
1939
|
+
}
|
|
1940
|
+
declare interface MethodDefinition$1 extends Span$1 {
|
|
1941
|
+
type: MethodDefinitionType;
|
|
1942
|
+
decorators: Array<Decorator$1>;
|
|
1943
|
+
key: PropertyKey_2;
|
|
1944
|
+
value: Function$1;
|
|
1945
|
+
kind: MethodDefinitionKind;
|
|
1946
|
+
computed: boolean;
|
|
1947
|
+
static: boolean;
|
|
1948
|
+
override?: boolean;
|
|
1949
|
+
optional?: boolean;
|
|
1950
|
+
accessibility?: TSAccessibility | null;
|
|
1951
|
+
parent?: Node$1;
|
|
1952
|
+
}
|
|
1953
|
+
declare type MethodDefinitionKind = "constructor" | "method" | "get" | "set";
|
|
1954
|
+
declare type MethodDefinitionType = "MethodDefinition" | "TSAbstractMethodDefinition";
|
|
1955
|
+
declare type ModuleDeclaration = ImportDeclaration$1 | ExportAllDeclaration$1 | ExportDefaultDeclaration$1 | ExportNamedDeclaration$1 | TSExportAssignment$1 | TSNamespaceExportDeclaration$1;
|
|
1956
|
+
declare type ModuleExportName = IdentifierName$1 | IdentifierReference$1 | StringLiteral$1;
|
|
1957
|
+
declare type ModuleKind = "script" | "module" | "commonjs";
|
|
1958
|
+
declare interface NewExpression$1 extends Span$1 {
|
|
1959
|
+
type: "NewExpression";
|
|
1960
|
+
callee: Expression$1;
|
|
1961
|
+
typeArguments?: TSTypeParameterInstantiation$1 | null;
|
|
1962
|
+
arguments: Array<Argument$1>;
|
|
1963
|
+
parent?: Node$1;
|
|
1964
|
+
}
|
|
1965
|
+
declare type Node$1 = Program$1 | IdentifierName$1 | IdentifierReference$1 | BindingIdentifier$1 | LabelIdentifier$1 | ThisExpression$1 | ArrayExpression$1 | ObjectExpression$1 | ObjectProperty$1 | TemplateLiteral$1 | TaggedTemplateExpression$1 | TemplateElement$1 | ComputedMemberExpression | StaticMemberExpression$1 | PrivateFieldExpression | CallExpression$1 | NewExpression$1 | MetaProperty$1 | SpreadElement$1 | UpdateExpression$1 | UnaryExpression$1 | BinaryExpression$1 | PrivateInExpression$1 | LogicalExpression$1 | ConditionalExpression$1 | AssignmentExpression$1 | ArrayAssignmentTarget | ObjectAssignmentTarget | AssignmentTargetRest | AssignmentTargetWithDefault | AssignmentTargetPropertyIdentifier | AssignmentTargetPropertyProperty | SequenceExpression$1 | Super$1 | AwaitExpression | ChainExpression$1 | ParenthesizedExpression | Directive | Hashbang | BlockStatement$1 | VariableDeclaration$1 | VariableDeclarator$1 | EmptyStatement$1 | ExpressionStatement$1 | IfStatement$1 | DoWhileStatement$1 | WhileStatement$1 | ForStatement$1 | ForInStatement$1 | ForOfStatement$1 | ContinueStatement$1 | BreakStatement$1 | ReturnStatement$1 | WithStatement$1 | SwitchStatement$1 | SwitchCase$1 | LabeledStatement$1 | ThrowStatement$1 | TryStatement$1 | CatchClause$1 | DebuggerStatement | AssignmentPattern$1 | ObjectPattern | BindingProperty$1 | ArrayPattern$1 | BindingRestElement$1 | Function$1 | FunctionBody | ArrowFunctionExpression$1 | YieldExpression$1 | Class$1 | ClassBody$1 | MethodDefinition$1 | PropertyDefinition$1 | PrivateIdentifier$1 | StaticBlock$1 | AccessorProperty$1 | ImportExpression$1 | ImportDeclaration$1 | ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportAttribute$1 | ExportNamedDeclaration$1 | ExportDefaultDeclaration$1 | ExportAllDeclaration$1 | ExportSpecifier | V8IntrinsicExpression | BooleanLiteral$1 | NullLiteral$1 | NumericLiteral$1 | StringLiteral$1 | BigIntLiteral$1 | RegExpLiteral$1 | JSXElement$1 | JSXOpeningElement$1 | JSXClosingElement | JSXFragment$1 | JSXOpeningFragment | JSXClosingFragment | JSXNamespacedName$1 | JSXMemberExpression$1 | JSXExpressionContainer$1 | JSXEmptyExpression | JSXAttribute$1 | JSXSpreadAttribute$1 | JSXIdentifier$1 | JSXSpreadChild$1 | JSXText$1 | TSThisParameter | TSEnumDeclaration$1 | TSEnumBody | TSEnumMember | TSTypeAnnotation$1 | TSLiteralType$1 | TSConditionalType$1 | TSUnionType$1 | TSIntersectionType$1 | TSParenthesizedType$1 | TSTypeOperator$1 | TSArrayType$1 | TSIndexedAccessType$1 | TSTupleType$1 | TSNamedTupleMember$1 | TSOptionalType$1 | TSRestType$1 | TSAnyKeyword | TSStringKeyword | TSBooleanKeyword | TSNumberKeyword | TSNeverKeyword | TSIntrinsicKeyword | TSUnknownKeyword | TSNullKeyword | TSUndefinedKeyword | TSVoidKeyword | TSSymbolKeyword | TSThisType | TSObjectKeyword | TSBigIntKeyword | TSTypeReference$1 | TSQualifiedName$1 | TSTypeParameterInstantiation$1 | TSTypeParameter | TSTypeParameterDeclaration$1 | TSTypeAliasDeclaration$1 | TSClassImplements | TSInterfaceDeclaration$1 | TSInterfaceBody$1 | TSPropertySignature$1 | TSIndexSignature$1 | TSCallSignatureDeclaration$1 | TSMethodSignature$1 | TSConstructSignatureDeclaration$1 | TSIndexSignatureName | TSInterfaceHeritage | TSTypePredicate$1 | TSModuleDeclaration$1 | TSGlobalDeclaration | TSModuleBlock$1 | TSTypeLiteral | TSInferType$1 | TSTypeQuery$1 | TSImportType$1 | TSImportTypeQualifiedName | TSFunctionType$1 | TSConstructorType$1 | TSMappedType$1 | TSTemplateLiteralType$1 | TSAsExpression$1 | TSSatisfiesExpression$1 | TSTypeAssertion$1 | TSImportEqualsDeclaration$1 | TSExternalModuleReference | TSNonNullExpression$1 | Decorator$1 | TSExportAssignment$1 | TSNamespaceExportDeclaration$1 | TSInstantiationExpression$1 | JSDocNullableType$1 | JSDocNonNullableType$1 | JSDocUnknownType | ParamPattern$1;
|
|
1966
|
+
declare type Node_2 = Simplify<Built<Node$1>> | Node$1;
|
|
1967
|
+
declare interface NullLiteral$1 extends Span$1 {
|
|
1968
|
+
type: "Literal";
|
|
1969
|
+
value: null;
|
|
1970
|
+
raw: "null" | null;
|
|
1971
|
+
parent?: Node$1;
|
|
1972
|
+
}
|
|
1973
|
+
declare interface NumericLiteral$1 extends Span$1 {
|
|
1974
|
+
type: "Literal";
|
|
1975
|
+
value: number;
|
|
1976
|
+
raw: string | null;
|
|
1977
|
+
parent?: Node$1;
|
|
1978
|
+
}
|
|
1979
|
+
declare interface ObjectAssignmentTarget extends Span$1 {
|
|
1980
|
+
type: "ObjectPattern";
|
|
1981
|
+
decorators?: [];
|
|
1982
|
+
properties: Array<AssignmentTargetProperty | AssignmentTargetRest>;
|
|
1983
|
+
optional?: false;
|
|
1984
|
+
typeAnnotation?: null;
|
|
1985
|
+
parent?: Node$1;
|
|
1986
|
+
}
|
|
1987
|
+
declare interface ObjectExpression$1 extends Span$1 {
|
|
1988
|
+
type: "ObjectExpression";
|
|
1989
|
+
properties: Array<ObjectPropertyKind>;
|
|
1990
|
+
parent?: Node$1;
|
|
1991
|
+
}
|
|
1992
|
+
declare interface ObjectPattern extends Span$1 {
|
|
1993
|
+
type: "ObjectPattern";
|
|
1994
|
+
decorators?: [];
|
|
1995
|
+
properties: Array<BindingProperty$1 | BindingRestElement$1>;
|
|
1996
|
+
optional?: false;
|
|
1997
|
+
typeAnnotation?: TSTypeAnnotation$1 | null;
|
|
1998
|
+
parent?: Node$1;
|
|
1999
|
+
}
|
|
2000
|
+
declare interface ObjectProperty$1 extends Span$1 {
|
|
2001
|
+
type: "Property";
|
|
2002
|
+
kind: PropertyKind;
|
|
2003
|
+
key: PropertyKey_2;
|
|
2004
|
+
value: Expression$1;
|
|
2005
|
+
method: boolean;
|
|
2006
|
+
shorthand: boolean;
|
|
2007
|
+
computed: boolean;
|
|
2008
|
+
optional?: false;
|
|
2009
|
+
parent?: Node$1;
|
|
2010
|
+
}
|
|
2011
|
+
declare type ObjectPropertyKind = ObjectProperty$1 | SpreadElement$1;
|
|
2012
|
+
declare type ParamPattern$1 = FormalParameter | TSParameterProperty | FormalParameterRest;
|
|
2013
|
+
declare interface ParenthesizedExpression extends Span$1 {
|
|
2014
|
+
type: "ParenthesizedExpression";
|
|
2015
|
+
expression: Expression$1;
|
|
2016
|
+
parent?: Node$1;
|
|
2017
|
+
}
|
|
2018
|
+
declare interface PrivateFieldExpression extends Span$1 {
|
|
2019
|
+
type: "MemberExpression";
|
|
2020
|
+
object: Expression$1;
|
|
2021
|
+
property: PrivateIdentifier$1;
|
|
2022
|
+
optional: boolean;
|
|
2023
|
+
computed: false;
|
|
2024
|
+
parent?: Node$1;
|
|
2025
|
+
}
|
|
2026
|
+
declare interface PrivateIdentifier$1 extends Span$1 {
|
|
2027
|
+
type: "PrivateIdentifier";
|
|
2028
|
+
name: string;
|
|
2029
|
+
parent?: Node$1;
|
|
2030
|
+
}
|
|
2031
|
+
declare interface PrivateInExpression$1 extends Span$1 {
|
|
2032
|
+
type: "BinaryExpression";
|
|
2033
|
+
left: PrivateIdentifier$1;
|
|
2034
|
+
operator: "in";
|
|
2035
|
+
right: Expression$1;
|
|
2036
|
+
parent?: Node$1;
|
|
2037
|
+
}
|
|
2038
|
+
declare interface Program$1 extends Span$1 {
|
|
2039
|
+
type: "Program";
|
|
2040
|
+
body: Array<Directive | Statement$1>;
|
|
2041
|
+
sourceType: ModuleKind;
|
|
2042
|
+
hashbang: Hashbang | null;
|
|
2043
|
+
parent?: null;
|
|
2044
|
+
}
|
|
2045
|
+
declare type Program = Simplify<Built<Program$1>>;
|
|
2046
|
+
declare interface PropertyDefinition$1 extends Span$1 {
|
|
2047
|
+
type: PropertyDefinitionType;
|
|
2048
|
+
decorators: Array<Decorator$1>;
|
|
2049
|
+
key: PropertyKey_2;
|
|
2050
|
+
typeAnnotation?: TSTypeAnnotation$1 | null;
|
|
2051
|
+
value: Expression$1 | null;
|
|
2052
|
+
computed: boolean;
|
|
2053
|
+
static: boolean;
|
|
2054
|
+
declare?: boolean;
|
|
2055
|
+
override?: boolean;
|
|
2056
|
+
optional?: boolean;
|
|
2057
|
+
definite?: boolean;
|
|
2058
|
+
readonly?: boolean;
|
|
2059
|
+
accessibility?: TSAccessibility | null;
|
|
2060
|
+
parent?: Node$1;
|
|
2061
|
+
}
|
|
2062
|
+
declare type PropertyDefinitionType = "PropertyDefinition" | "TSAbstractPropertyDefinition";
|
|
2063
|
+
declare type PropertyKey_2 = IdentifierName$1 | PrivateIdentifier$1 | Expression$1;
|
|
2064
|
+
declare type PropertyKind = "init" | "get" | "set";
|
|
2065
|
+
declare interface RegExpLiteral$1 extends Span$1 {
|
|
2066
|
+
type: "Literal";
|
|
2067
|
+
value: RegExp | null;
|
|
2068
|
+
raw: string | null;
|
|
2069
|
+
regex: {
|
|
2070
|
+
pattern: string;
|
|
2071
|
+
flags: string;
|
|
2072
|
+
};
|
|
2073
|
+
parent?: Node$1;
|
|
2074
|
+
}
|
|
2075
|
+
declare interface ReturnStatement$1 extends Span$1 {
|
|
2076
|
+
type: "ReturnStatement";
|
|
2077
|
+
argument: Expression$1 | null;
|
|
2078
|
+
parent?: Node$1;
|
|
2079
|
+
}
|
|
2080
|
+
declare interface SequenceExpression$1 extends Span$1 {
|
|
2081
|
+
type: "SequenceExpression";
|
|
2082
|
+
expressions: Array<Expression$1>;
|
|
2083
|
+
parent?: Node$1;
|
|
2084
|
+
}
|
|
2085
|
+
declare type SimpleAssignmentTarget$1 = IdentifierReference$1 | TSAsExpression$1 | TSSatisfiesExpression$1 | TSNonNullExpression$1 | TSTypeAssertion$1 | MemberExpression$1;
|
|
2086
|
+
declare type Simplify<T> = { [K in keyof T]: T[K]; } & {};
|
|
2087
|
+
declare interface Span$1 {
|
|
2088
|
+
start: number;
|
|
2089
|
+
end: number;
|
|
2090
|
+
range?: [number, number];
|
|
2091
|
+
}
|
|
2092
|
+
declare interface SpreadElement$1 extends Span$1 {
|
|
2093
|
+
type: "SpreadElement";
|
|
2094
|
+
argument: Expression$1;
|
|
2095
|
+
parent?: Node$1;
|
|
2096
|
+
}
|
|
2097
|
+
declare type Statement$1 = BlockStatement$1 | BreakStatement$1 | ContinueStatement$1 | DebuggerStatement | DoWhileStatement$1 | EmptyStatement$1 | ExpressionStatement$1 | ForInStatement$1 | ForOfStatement$1 | ForStatement$1 | IfStatement$1 | LabeledStatement$1 | ReturnStatement$1 | SwitchStatement$1 | ThrowStatement$1 | TryStatement$1 | WhileStatement$1 | WithStatement$1 | Declaration | ModuleDeclaration;
|
|
2098
|
+
declare interface StaticBlock$1 extends Span$1 {
|
|
2099
|
+
type: "StaticBlock";
|
|
2100
|
+
body: Array<Statement$1>;
|
|
2101
|
+
parent?: Node$1;
|
|
2102
|
+
}
|
|
2103
|
+
declare interface StaticMemberExpression$1 extends Span$1 {
|
|
2104
|
+
type: "MemberExpression";
|
|
2105
|
+
object: Expression$1;
|
|
2106
|
+
property: IdentifierName$1;
|
|
2107
|
+
optional: boolean;
|
|
2108
|
+
computed: false;
|
|
2109
|
+
parent?: Node$1;
|
|
2110
|
+
}
|
|
2111
|
+
declare interface StringLiteral$1 extends Span$1 {
|
|
2112
|
+
type: "Literal";
|
|
2113
|
+
value: string;
|
|
2114
|
+
raw: string | null;
|
|
2115
|
+
parent?: Node$1;
|
|
2116
|
+
}
|
|
2117
|
+
declare interface Super$1 extends Span$1 {
|
|
2118
|
+
type: "Super";
|
|
2119
|
+
parent?: Node$1;
|
|
2120
|
+
}
|
|
2121
|
+
declare interface SwitchCase$1 extends Span$1 {
|
|
2122
|
+
type: "SwitchCase";
|
|
2123
|
+
test: Expression$1 | null;
|
|
2124
|
+
consequent: Array<Statement$1>;
|
|
2125
|
+
parent?: Node$1;
|
|
2126
|
+
}
|
|
2127
|
+
declare interface SwitchStatement$1 extends Span$1 {
|
|
2128
|
+
type: "SwitchStatement";
|
|
2129
|
+
discriminant: Expression$1;
|
|
2130
|
+
cases: Array<SwitchCase$1>;
|
|
2131
|
+
parent?: Node$1;
|
|
2132
|
+
}
|
|
2133
|
+
declare interface TaggedTemplateExpression$1 extends Span$1 {
|
|
2134
|
+
type: "TaggedTemplateExpression";
|
|
2135
|
+
tag: Expression$1;
|
|
2136
|
+
typeArguments?: TSTypeParameterInstantiation$1 | null;
|
|
2137
|
+
quasi: TemplateLiteral$1;
|
|
2138
|
+
parent?: Node$1;
|
|
2139
|
+
}
|
|
2140
|
+
declare interface TemplateElement$1 extends Span$1 {
|
|
2141
|
+
type: "TemplateElement";
|
|
2142
|
+
value: TemplateElementValue;
|
|
2143
|
+
tail: boolean;
|
|
2144
|
+
parent?: Node$1;
|
|
2145
|
+
}
|
|
2146
|
+
declare interface TemplateElementValue {
|
|
2147
|
+
raw: string;
|
|
2148
|
+
cooked: string | null;
|
|
2149
|
+
}
|
|
2150
|
+
declare interface TemplateLiteral$1 extends Span$1 {
|
|
2151
|
+
type: "TemplateLiteral";
|
|
2152
|
+
quasis: Array<TemplateElement$1>;
|
|
2153
|
+
expressions: Array<Expression$1>;
|
|
2154
|
+
parent?: Node$1;
|
|
2155
|
+
}
|
|
2156
|
+
declare interface ThisExpression$1 extends Span$1 {
|
|
2157
|
+
type: "ThisExpression";
|
|
2158
|
+
parent?: Node$1;
|
|
2159
|
+
}
|
|
2160
|
+
declare interface ThrowStatement$1 extends Span$1 {
|
|
2161
|
+
type: "ThrowStatement";
|
|
2162
|
+
argument: Expression$1;
|
|
2163
|
+
parent?: Node$1;
|
|
2164
|
+
}
|
|
2165
|
+
declare interface TryStatement$1 extends Span$1 {
|
|
2166
|
+
type: "TryStatement";
|
|
2167
|
+
block: BlockStatement$1;
|
|
2168
|
+
handler: CatchClause$1 | null;
|
|
2169
|
+
finalizer: BlockStatement$1 | null;
|
|
2170
|
+
parent?: Node$1;
|
|
2171
|
+
}
|
|
2172
|
+
declare type TSAccessibility = "private" | "protected" | "public";
|
|
2173
|
+
declare interface TSAnyKeyword extends Span$1 {
|
|
2174
|
+
type: "TSAnyKeyword";
|
|
2175
|
+
parent?: Node$1;
|
|
2176
|
+
}
|
|
2177
|
+
declare interface TSArrayType$1 extends Span$1 {
|
|
2178
|
+
type: "TSArrayType";
|
|
2179
|
+
elementType: TSType$1;
|
|
2180
|
+
parent?: Node$1;
|
|
2181
|
+
}
|
|
2182
|
+
declare interface TSAsExpression$1 extends Span$1 {
|
|
2183
|
+
type: "TSAsExpression";
|
|
2184
|
+
expression: Expression$1;
|
|
2185
|
+
typeAnnotation: TSType$1;
|
|
2186
|
+
parent?: Node$1;
|
|
2187
|
+
}
|
|
2188
|
+
declare interface TSBigIntKeyword extends Span$1 {
|
|
2189
|
+
type: "TSBigIntKeyword";
|
|
2190
|
+
parent?: Node$1;
|
|
2191
|
+
}
|
|
2192
|
+
declare interface TSBooleanKeyword extends Span$1 {
|
|
2193
|
+
type: "TSBooleanKeyword";
|
|
2194
|
+
parent?: Node$1;
|
|
2195
|
+
}
|
|
2196
|
+
declare interface TSCallSignatureDeclaration$1 extends Span$1 {
|
|
2197
|
+
type: "TSCallSignatureDeclaration";
|
|
2198
|
+
typeParameters: TSTypeParameterDeclaration$1 | null;
|
|
2199
|
+
params: ParamPattern$1[];
|
|
2200
|
+
returnType: TSTypeAnnotation$1 | null;
|
|
2201
|
+
parent?: Node$1;
|
|
2202
|
+
}
|
|
2203
|
+
declare interface TSClassImplements extends Span$1 {
|
|
2204
|
+
type: "TSClassImplements";
|
|
2205
|
+
expression: IdentifierReference$1 | ThisExpression$1 | MemberExpression$1;
|
|
2206
|
+
typeArguments: TSTypeParameterInstantiation$1 | null;
|
|
2207
|
+
parent?: Node$1;
|
|
2208
|
+
}
|
|
2209
|
+
declare interface TSConditionalType$1 extends Span$1 {
|
|
2210
|
+
type: "TSConditionalType";
|
|
2211
|
+
checkType: TSType$1;
|
|
2212
|
+
extendsType: TSType$1;
|
|
2213
|
+
trueType: TSType$1;
|
|
2214
|
+
falseType: TSType$1;
|
|
2215
|
+
parent?: Node$1;
|
|
2216
|
+
}
|
|
2217
|
+
declare interface TSConstructorType$1 extends Span$1 {
|
|
2218
|
+
type: "TSConstructorType";
|
|
2219
|
+
abstract: boolean;
|
|
2220
|
+
typeParameters: TSTypeParameterDeclaration$1 | null;
|
|
2221
|
+
params: ParamPattern$1[];
|
|
2222
|
+
returnType: TSTypeAnnotation$1;
|
|
2223
|
+
parent?: Node$1;
|
|
2224
|
+
}
|
|
2225
|
+
declare interface TSConstructSignatureDeclaration$1 extends Span$1 {
|
|
2226
|
+
type: "TSConstructSignatureDeclaration";
|
|
2227
|
+
typeParameters: TSTypeParameterDeclaration$1 | null;
|
|
2228
|
+
params: ParamPattern$1[];
|
|
2229
|
+
returnType: TSTypeAnnotation$1 | null;
|
|
2230
|
+
parent?: Node$1;
|
|
2231
|
+
}
|
|
2232
|
+
declare interface TSEnumBody extends Span$1 {
|
|
2233
|
+
type: "TSEnumBody";
|
|
2234
|
+
members: Array<TSEnumMember>;
|
|
2235
|
+
parent?: Node$1;
|
|
2236
|
+
}
|
|
2237
|
+
declare interface TSEnumDeclaration$1 extends Span$1 {
|
|
2238
|
+
type: "TSEnumDeclaration";
|
|
2239
|
+
id: BindingIdentifier$1;
|
|
2240
|
+
body: TSEnumBody;
|
|
2241
|
+
const: boolean;
|
|
2242
|
+
declare: boolean;
|
|
2243
|
+
parent?: Node$1;
|
|
2244
|
+
}
|
|
2245
|
+
declare interface TSEnumMember extends Span$1 {
|
|
2246
|
+
type: "TSEnumMember";
|
|
2247
|
+
id: TSEnumMemberName;
|
|
2248
|
+
initializer: Expression$1 | null;
|
|
2249
|
+
computed: boolean;
|
|
2250
|
+
parent?: Node$1;
|
|
2251
|
+
}
|
|
2252
|
+
declare type TSEnumMemberName = IdentifierName$1 | StringLiteral$1 | TemplateLiteral$1;
|
|
2253
|
+
declare interface TSExportAssignment$1 extends Span$1 {
|
|
2254
|
+
type: "TSExportAssignment";
|
|
2255
|
+
expression: Expression$1;
|
|
2256
|
+
parent?: Node$1;
|
|
2257
|
+
}
|
|
2258
|
+
declare interface TSExternalModuleReference extends Span$1 {
|
|
2259
|
+
type: "TSExternalModuleReference";
|
|
2260
|
+
expression: StringLiteral$1;
|
|
2261
|
+
parent?: Node$1;
|
|
2262
|
+
}
|
|
2263
|
+
declare interface TSFunctionType$1 extends Span$1 {
|
|
2264
|
+
type: "TSFunctionType";
|
|
2265
|
+
typeParameters: TSTypeParameterDeclaration$1 | null;
|
|
2266
|
+
params: ParamPattern$1[];
|
|
2267
|
+
returnType: TSTypeAnnotation$1;
|
|
2268
|
+
parent?: Node$1;
|
|
2269
|
+
}
|
|
2270
|
+
declare interface TSGlobalDeclaration extends Span$1 {
|
|
2271
|
+
type: "TSModuleDeclaration";
|
|
2272
|
+
id: IdentifierName$1;
|
|
2273
|
+
body: TSModuleBlock$1;
|
|
2274
|
+
kind: "global";
|
|
2275
|
+
declare: boolean;
|
|
2276
|
+
global: true;
|
|
2277
|
+
parent?: Node$1;
|
|
2278
|
+
}
|
|
2279
|
+
declare interface TSImportEqualsDeclaration$1 extends Span$1 {
|
|
2280
|
+
type: "TSImportEqualsDeclaration";
|
|
2281
|
+
id: BindingIdentifier$1;
|
|
2282
|
+
moduleReference: TSModuleReference;
|
|
2283
|
+
importKind: ImportOrExportKind;
|
|
2284
|
+
parent?: Node$1;
|
|
2285
|
+
}
|
|
2286
|
+
declare interface TSImportType$1 extends Span$1 {
|
|
2287
|
+
type: "TSImportType";
|
|
2288
|
+
source: StringLiteral$1;
|
|
2289
|
+
options: ObjectExpression$1 | null;
|
|
2290
|
+
qualifier: TSImportTypeQualifier | null;
|
|
2291
|
+
typeArguments: TSTypeParameterInstantiation$1 | null;
|
|
2292
|
+
parent?: Node$1;
|
|
2293
|
+
}
|
|
2294
|
+
declare interface TSImportTypeQualifiedName extends Span$1 {
|
|
2295
|
+
type: "TSQualifiedName";
|
|
2296
|
+
left: TSImportTypeQualifier;
|
|
2297
|
+
right: IdentifierName$1;
|
|
2298
|
+
parent?: Node$1;
|
|
2299
|
+
}
|
|
2300
|
+
declare type TSImportTypeQualifier = IdentifierName$1 | TSImportTypeQualifiedName;
|
|
2301
|
+
declare interface TSIndexedAccessType$1 extends Span$1 {
|
|
2302
|
+
type: "TSIndexedAccessType";
|
|
2303
|
+
objectType: TSType$1;
|
|
2304
|
+
indexType: TSType$1;
|
|
2305
|
+
parent?: Node$1;
|
|
2306
|
+
}
|
|
2307
|
+
declare interface TSIndexSignature$1 extends Span$1 {
|
|
2308
|
+
type: "TSIndexSignature";
|
|
2309
|
+
parameters: Array<TSIndexSignatureName>;
|
|
2310
|
+
typeAnnotation: TSTypeAnnotation$1;
|
|
2311
|
+
readonly: boolean;
|
|
2312
|
+
static: boolean;
|
|
2313
|
+
accessibility: null;
|
|
2314
|
+
parent?: Node$1;
|
|
2315
|
+
}
|
|
2316
|
+
declare interface TSIndexSignatureName extends Span$1 {
|
|
2317
|
+
type: "Identifier";
|
|
2318
|
+
decorators: [];
|
|
2319
|
+
name: string;
|
|
2320
|
+
optional: false;
|
|
2321
|
+
typeAnnotation: TSTypeAnnotation$1;
|
|
2322
|
+
parent?: Node$1;
|
|
2323
|
+
}
|
|
2324
|
+
declare interface TSInferType$1 extends Span$1 {
|
|
2325
|
+
type: "TSInferType";
|
|
2326
|
+
typeParameter: TSTypeParameter;
|
|
2327
|
+
parent?: Node$1;
|
|
2328
|
+
}
|
|
2329
|
+
declare interface TSInstantiationExpression$1 extends Span$1 {
|
|
2330
|
+
type: "TSInstantiationExpression";
|
|
2331
|
+
expression: Expression$1;
|
|
2332
|
+
typeArguments: TSTypeParameterInstantiation$1;
|
|
2333
|
+
parent?: Node$1;
|
|
2334
|
+
}
|
|
2335
|
+
declare interface TSInterfaceBody$1 extends Span$1 {
|
|
2336
|
+
type: "TSInterfaceBody";
|
|
2337
|
+
body: Array<TSSignature>;
|
|
2338
|
+
parent?: Node$1;
|
|
2339
|
+
}
|
|
2340
|
+
declare interface TSInterfaceDeclaration$1 extends Span$1 {
|
|
2341
|
+
type: "TSInterfaceDeclaration";
|
|
2342
|
+
id: BindingIdentifier$1;
|
|
2343
|
+
typeParameters: TSTypeParameterDeclaration$1 | null;
|
|
2344
|
+
extends: Array<TSInterfaceHeritage>;
|
|
2345
|
+
body: TSInterfaceBody$1;
|
|
2346
|
+
declare: boolean;
|
|
2347
|
+
parent?: Node$1;
|
|
2348
|
+
}
|
|
2349
|
+
declare interface TSInterfaceHeritage extends Span$1 {
|
|
2350
|
+
type: "TSInterfaceHeritage";
|
|
2351
|
+
expression: Expression$1;
|
|
2352
|
+
typeArguments: TSTypeParameterInstantiation$1 | null;
|
|
2353
|
+
parent?: Node$1;
|
|
2354
|
+
}
|
|
2355
|
+
declare interface TSIntersectionType$1 extends Span$1 {
|
|
2356
|
+
type: "TSIntersectionType";
|
|
2357
|
+
types: Array<TSType$1>;
|
|
2358
|
+
parent?: Node$1;
|
|
2359
|
+
}
|
|
2360
|
+
declare interface TSIntrinsicKeyword extends Span$1 {
|
|
2361
|
+
type: "TSIntrinsicKeyword";
|
|
2362
|
+
parent?: Node$1;
|
|
2363
|
+
}
|
|
2364
|
+
declare type TSLiteral = BooleanLiteral$1 | NumericLiteral$1 | BigIntLiteral$1 | StringLiteral$1 | TemplateLiteral$1 | UnaryExpression$1;
|
|
2365
|
+
declare interface TSLiteralType$1 extends Span$1 {
|
|
2366
|
+
type: "TSLiteralType";
|
|
2367
|
+
literal: TSLiteral;
|
|
2368
|
+
parent?: Node$1;
|
|
2369
|
+
}
|
|
2370
|
+
declare interface TSMappedType$1 extends Span$1 {
|
|
2371
|
+
type: "TSMappedType";
|
|
2372
|
+
key: BindingIdentifier$1;
|
|
2373
|
+
constraint: TSType$1;
|
|
2374
|
+
nameType: TSType$1 | null;
|
|
2375
|
+
typeAnnotation: TSType$1 | null;
|
|
2376
|
+
optional: TSMappedTypeModifierOperator | false;
|
|
2377
|
+
readonly: TSMappedTypeModifierOperator | null;
|
|
2378
|
+
parent?: Node$1;
|
|
2379
|
+
}
|
|
2380
|
+
declare type TSMappedTypeModifierOperator = true | "+" | "-";
|
|
2381
|
+
declare interface TSMethodSignature$1 extends Span$1 {
|
|
2382
|
+
type: "TSMethodSignature";
|
|
2383
|
+
key: PropertyKey_2;
|
|
2384
|
+
computed: boolean;
|
|
2385
|
+
optional: boolean;
|
|
2386
|
+
kind: TSMethodSignatureKind;
|
|
2387
|
+
typeParameters: TSTypeParameterDeclaration$1 | null;
|
|
2388
|
+
params: ParamPattern$1[];
|
|
2389
|
+
returnType: TSTypeAnnotation$1 | null;
|
|
2390
|
+
accessibility: null;
|
|
2391
|
+
readonly: false;
|
|
2392
|
+
static: false;
|
|
2393
|
+
parent?: Node$1;
|
|
2394
|
+
}
|
|
2395
|
+
declare type TSMethodSignatureKind = "method" | "get" | "set";
|
|
2396
|
+
declare interface TSModuleBlock$1 extends Span$1 {
|
|
2397
|
+
type: "TSModuleBlock";
|
|
2398
|
+
body: Array<Directive | Statement$1>;
|
|
2399
|
+
parent?: Node$1;
|
|
2400
|
+
}
|
|
2401
|
+
declare interface TSModuleDeclaration$1 extends Span$1 {
|
|
2402
|
+
type: "TSModuleDeclaration";
|
|
2403
|
+
id: BindingIdentifier$1 | StringLiteral$1 | TSQualifiedName$1;
|
|
2404
|
+
body: TSModuleBlock$1 | null;
|
|
2405
|
+
kind: TSModuleDeclarationKind;
|
|
2406
|
+
declare: boolean;
|
|
2407
|
+
global: false;
|
|
2408
|
+
parent?: Node$1;
|
|
2409
|
+
}
|
|
2410
|
+
declare type TSModuleDeclarationKind = "module" | "namespace";
|
|
2411
|
+
declare type TSModuleReference = TSExternalModuleReference | IdentifierReference$1 | TSQualifiedName$1;
|
|
2412
|
+
declare interface TSNamedTupleMember$1 extends Span$1 {
|
|
2413
|
+
type: "TSNamedTupleMember";
|
|
2414
|
+
label: IdentifierName$1;
|
|
2415
|
+
elementType: TSTupleElement;
|
|
2416
|
+
optional: boolean;
|
|
2417
|
+
parent?: Node$1;
|
|
2418
|
+
}
|
|
2419
|
+
declare interface TSNamespaceExportDeclaration$1 extends Span$1 {
|
|
2420
|
+
type: "TSNamespaceExportDeclaration";
|
|
2421
|
+
id: IdentifierName$1;
|
|
2422
|
+
parent?: Node$1;
|
|
2423
|
+
}
|
|
2424
|
+
declare interface TSNeverKeyword extends Span$1 {
|
|
2425
|
+
type: "TSNeverKeyword";
|
|
2426
|
+
parent?: Node$1;
|
|
2427
|
+
}
|
|
2428
|
+
declare interface TSNonNullExpression$1 extends Span$1 {
|
|
2429
|
+
type: "TSNonNullExpression";
|
|
2430
|
+
expression: Expression$1;
|
|
2431
|
+
parent?: Node$1;
|
|
2432
|
+
}
|
|
2433
|
+
declare interface TSNullKeyword extends Span$1 {
|
|
2434
|
+
type: "TSNullKeyword";
|
|
2435
|
+
parent?: Node$1;
|
|
2436
|
+
}
|
|
2437
|
+
declare interface TSNumberKeyword extends Span$1 {
|
|
2438
|
+
type: "TSNumberKeyword";
|
|
2439
|
+
parent?: Node$1;
|
|
2440
|
+
}
|
|
2441
|
+
declare interface TSObjectKeyword extends Span$1 {
|
|
2442
|
+
type: "TSObjectKeyword";
|
|
2443
|
+
parent?: Node$1;
|
|
2444
|
+
}
|
|
2445
|
+
declare interface TSOptionalType$1 extends Span$1 {
|
|
2446
|
+
type: "TSOptionalType";
|
|
2447
|
+
typeAnnotation: TSType$1;
|
|
2448
|
+
parent?: Node$1;
|
|
2449
|
+
}
|
|
2450
|
+
declare interface TSParameterProperty extends Span$1 {
|
|
2451
|
+
type: "TSParameterProperty";
|
|
2452
|
+
accessibility: TSAccessibility | null;
|
|
2453
|
+
decorators: Array<Decorator$1>;
|
|
2454
|
+
override: boolean;
|
|
2455
|
+
parameter: FormalParameter;
|
|
2456
|
+
readonly: boolean;
|
|
2457
|
+
static: boolean;
|
|
2458
|
+
parent?: Node$1;
|
|
2459
|
+
}
|
|
2460
|
+
declare interface TSParenthesizedType$1 extends Span$1 {
|
|
2461
|
+
type: "TSParenthesizedType";
|
|
2462
|
+
typeAnnotation: TSType$1;
|
|
2463
|
+
parent?: Node$1;
|
|
2464
|
+
}
|
|
2465
|
+
declare interface TSPropertySignature$1 extends Span$1 {
|
|
2466
|
+
type: "TSPropertySignature";
|
|
2467
|
+
computed: boolean;
|
|
2468
|
+
optional: boolean;
|
|
2469
|
+
readonly: boolean;
|
|
2470
|
+
key: PropertyKey_2;
|
|
2471
|
+
typeAnnotation: TSTypeAnnotation$1 | null;
|
|
2472
|
+
accessibility: null;
|
|
2473
|
+
static: false;
|
|
2474
|
+
parent?: Node$1;
|
|
2475
|
+
}
|
|
2476
|
+
declare interface TSQualifiedName$1 extends Span$1 {
|
|
2477
|
+
type: "TSQualifiedName";
|
|
2478
|
+
left: TSTypeName;
|
|
2479
|
+
right: IdentifierName$1;
|
|
2480
|
+
parent?: Node$1;
|
|
2481
|
+
}
|
|
2482
|
+
declare interface TSRestType$1 extends Span$1 {
|
|
2483
|
+
type: "TSRestType";
|
|
2484
|
+
typeAnnotation: TSType$1;
|
|
2485
|
+
parent?: Node$1;
|
|
2486
|
+
}
|
|
2487
|
+
declare interface TSSatisfiesExpression$1 extends Span$1 {
|
|
2488
|
+
type: "TSSatisfiesExpression";
|
|
2489
|
+
expression: Expression$1;
|
|
2490
|
+
typeAnnotation: TSType$1;
|
|
2491
|
+
parent?: Node$1;
|
|
2492
|
+
}
|
|
2493
|
+
declare type TSSignature = TSIndexSignature$1 | TSPropertySignature$1 | TSCallSignatureDeclaration$1 | TSConstructSignatureDeclaration$1 | TSMethodSignature$1;
|
|
2494
|
+
declare interface TSStringKeyword extends Span$1 {
|
|
2495
|
+
type: "TSStringKeyword";
|
|
2496
|
+
parent?: Node$1;
|
|
2497
|
+
}
|
|
2498
|
+
declare interface TSSymbolKeyword extends Span$1 {
|
|
2499
|
+
type: "TSSymbolKeyword";
|
|
2500
|
+
parent?: Node$1;
|
|
2501
|
+
}
|
|
2502
|
+
declare interface TSTemplateLiteralType$1 extends Span$1 {
|
|
2503
|
+
type: "TSTemplateLiteralType";
|
|
2504
|
+
quasis: Array<TemplateElement$1>;
|
|
2505
|
+
types: Array<TSType$1>;
|
|
2506
|
+
parent?: Node$1;
|
|
2507
|
+
}
|
|
2508
|
+
declare interface TSThisParameter extends Span$1 {
|
|
2509
|
+
type: "Identifier";
|
|
2510
|
+
decorators: [];
|
|
2511
|
+
name: "this";
|
|
2512
|
+
optional: false;
|
|
2513
|
+
typeAnnotation: TSTypeAnnotation$1 | null;
|
|
2514
|
+
parent?: Node$1;
|
|
2515
|
+
}
|
|
2516
|
+
declare interface TSThisType extends Span$1 {
|
|
2517
|
+
type: "TSThisType";
|
|
2518
|
+
parent?: Node$1;
|
|
2519
|
+
}
|
|
2520
|
+
declare type TSTupleElement = TSOptionalType$1 | TSRestType$1 | TSType$1;
|
|
2521
|
+
declare interface TSTupleType$1 extends Span$1 {
|
|
2522
|
+
type: "TSTupleType";
|
|
2523
|
+
elementTypes: Array<TSTupleElement>;
|
|
2524
|
+
parent?: Node$1;
|
|
2525
|
+
}
|
|
2526
|
+
declare type TSType$1 = TSAnyKeyword | TSBigIntKeyword | TSBooleanKeyword | TSIntrinsicKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSArrayType$1 | TSConditionalType$1 | TSConstructorType$1 | TSFunctionType$1 | TSImportType$1 | TSIndexedAccessType$1 | TSInferType$1 | TSIntersectionType$1 | TSLiteralType$1 | TSMappedType$1 | TSNamedTupleMember$1 | TSTemplateLiteralType$1 | TSThisType | TSTupleType$1 | TSTypeLiteral | TSTypeOperator$1 | TSTypePredicate$1 | TSTypeQuery$1 | TSTypeReference$1 | TSUnionType$1 | TSParenthesizedType$1 | JSDocNullableType$1 | JSDocNonNullableType$1 | JSDocUnknownType;
|
|
2527
|
+
declare interface TSTypeAliasDeclaration$1 extends Span$1 {
|
|
2528
|
+
type: "TSTypeAliasDeclaration";
|
|
2529
|
+
id: BindingIdentifier$1;
|
|
2530
|
+
typeParameters: TSTypeParameterDeclaration$1 | null;
|
|
2531
|
+
typeAnnotation: TSType$1;
|
|
2532
|
+
declare: boolean;
|
|
2533
|
+
parent?: Node$1;
|
|
2534
|
+
}
|
|
2535
|
+
declare interface TSTypeAnnotation$1 extends Span$1 {
|
|
2536
|
+
type: "TSTypeAnnotation";
|
|
2537
|
+
typeAnnotation: TSType$1;
|
|
2538
|
+
parent?: Node$1;
|
|
2539
|
+
}
|
|
2540
|
+
declare interface TSTypeAssertion$1 extends Span$1 {
|
|
2541
|
+
type: "TSTypeAssertion";
|
|
2542
|
+
typeAnnotation: TSType$1;
|
|
2543
|
+
expression: Expression$1;
|
|
2544
|
+
parent?: Node$1;
|
|
2545
|
+
}
|
|
2546
|
+
declare interface TSTypeLiteral extends Span$1 {
|
|
2547
|
+
type: "TSTypeLiteral";
|
|
2548
|
+
members: Array<TSSignature>;
|
|
2549
|
+
parent?: Node$1;
|
|
2550
|
+
}
|
|
2551
|
+
declare type TSTypeName = IdentifierReference$1 | TSQualifiedName$1 | ThisExpression$1;
|
|
2552
|
+
declare interface TSTypeOperator$1 extends Span$1 {
|
|
2553
|
+
type: "TSTypeOperator";
|
|
2554
|
+
operator: TSTypeOperatorOperator;
|
|
2555
|
+
typeAnnotation: TSType$1;
|
|
2556
|
+
parent?: Node$1;
|
|
2557
|
+
}
|
|
2558
|
+
declare type TSTypeOperatorOperator = "keyof" | "unique" | "readonly";
|
|
2559
|
+
declare interface TSTypeParameter extends Span$1 {
|
|
2560
|
+
type: "TSTypeParameter";
|
|
2561
|
+
name: BindingIdentifier$1;
|
|
2562
|
+
constraint: TSType$1 | null;
|
|
2563
|
+
default: TSType$1 | null;
|
|
2564
|
+
in: boolean;
|
|
2565
|
+
out: boolean;
|
|
2566
|
+
const: boolean;
|
|
2567
|
+
parent?: Node$1;
|
|
2568
|
+
}
|
|
2569
|
+
declare interface TSTypeParameterDeclaration$1 extends Span$1 {
|
|
2570
|
+
type: "TSTypeParameterDeclaration";
|
|
2571
|
+
params: Array<TSTypeParameter>;
|
|
2572
|
+
parent?: Node$1;
|
|
2573
|
+
}
|
|
2574
|
+
declare interface TSTypeParameterInstantiation$1 extends Span$1 {
|
|
2575
|
+
type: "TSTypeParameterInstantiation";
|
|
2576
|
+
params: Array<TSType$1>;
|
|
2577
|
+
parent?: Node$1;
|
|
2578
|
+
}
|
|
2579
|
+
declare interface TSTypePredicate$1 extends Span$1 {
|
|
2580
|
+
type: "TSTypePredicate";
|
|
2581
|
+
parameterName: TSTypePredicateName;
|
|
2582
|
+
asserts: boolean;
|
|
2583
|
+
typeAnnotation: TSTypeAnnotation$1 | null;
|
|
2584
|
+
parent?: Node$1;
|
|
2585
|
+
}
|
|
2586
|
+
declare type TSTypePredicateName = IdentifierName$1 | TSThisType;
|
|
2587
|
+
declare interface TSTypeQuery$1 extends Span$1 {
|
|
2588
|
+
type: "TSTypeQuery";
|
|
2589
|
+
exprName: TSTypeQueryExprName;
|
|
2590
|
+
typeArguments: TSTypeParameterInstantiation$1 | null;
|
|
2591
|
+
parent?: Node$1;
|
|
2592
|
+
}
|
|
2593
|
+
declare type TSTypeQueryExprName = TSImportType$1 | TSTypeName;
|
|
2594
|
+
declare interface TSTypeReference$1 extends Span$1 {
|
|
2595
|
+
type: "TSTypeReference";
|
|
2596
|
+
typeName: TSTypeName;
|
|
2597
|
+
typeArguments: TSTypeParameterInstantiation$1 | null;
|
|
2598
|
+
parent?: Node$1;
|
|
2599
|
+
}
|
|
2600
|
+
declare interface TSUndefinedKeyword extends Span$1 {
|
|
2601
|
+
type: "TSUndefinedKeyword";
|
|
2602
|
+
parent?: Node$1;
|
|
2603
|
+
}
|
|
2604
|
+
declare interface TSUnionType$1 extends Span$1 {
|
|
2605
|
+
type: "TSUnionType";
|
|
2606
|
+
types: Array<TSType$1>;
|
|
2607
|
+
parent?: Node$1;
|
|
2608
|
+
}
|
|
2609
|
+
declare interface TSUnknownKeyword extends Span$1 {
|
|
2610
|
+
type: "TSUnknownKeyword";
|
|
2611
|
+
parent?: Node$1;
|
|
2612
|
+
}
|
|
2613
|
+
declare interface TSVoidKeyword extends Span$1 {
|
|
2614
|
+
type: "TSVoidKeyword";
|
|
2615
|
+
parent?: Node$1;
|
|
2616
|
+
}
|
|
2617
|
+
declare interface UnaryExpression$1 extends Span$1 {
|
|
2618
|
+
type: "UnaryExpression";
|
|
2619
|
+
operator: UnaryOperator;
|
|
2620
|
+
argument: Expression$1;
|
|
2621
|
+
prefix: true;
|
|
2622
|
+
parent?: Node$1;
|
|
2623
|
+
}
|
|
2624
|
+
declare type UnaryOperator = "+" | "-" | "!" | "~" | "typeof" | "void" | "delete";
|
|
2625
|
+
declare interface UpdateExpression$1 extends Span$1 {
|
|
2626
|
+
type: "UpdateExpression";
|
|
2627
|
+
operator: UpdateOperator;
|
|
2628
|
+
prefix: boolean;
|
|
2629
|
+
argument: SimpleAssignmentTarget$1;
|
|
2630
|
+
parent?: Node$1;
|
|
2631
|
+
}
|
|
2632
|
+
declare type UpdateOperator = "++" | "--";
|
|
2633
|
+
declare interface V8IntrinsicExpression extends Span$1 {
|
|
2634
|
+
type: "V8IntrinsicExpression";
|
|
2635
|
+
name: IdentifierName$1;
|
|
2636
|
+
arguments: Array<Argument$1>;
|
|
2637
|
+
parent?: Node$1;
|
|
2638
|
+
}
|
|
2639
|
+
declare interface VariableDeclaration$1 extends Span$1 {
|
|
2640
|
+
type: "VariableDeclaration";
|
|
2641
|
+
kind: VariableDeclarationKind;
|
|
2642
|
+
declarations: Array<VariableDeclarator$1>;
|
|
2643
|
+
declare?: boolean;
|
|
2644
|
+
parent?: Node$1;
|
|
2645
|
+
}
|
|
2646
|
+
declare type VariableDeclarationKind = "var" | "let" | "const" | "using" | "await using";
|
|
2647
|
+
declare interface VariableDeclarator$1 extends Span$1 {
|
|
2648
|
+
type: "VariableDeclarator";
|
|
2649
|
+
id: BindingPattern$1;
|
|
2650
|
+
init: Expression$1 | null;
|
|
2651
|
+
definite?: boolean;
|
|
2652
|
+
parent?: Node$1;
|
|
2653
|
+
}
|
|
2654
|
+
declare interface WhileStatement$1 extends Span$1 {
|
|
2655
|
+
type: "WhileStatement";
|
|
2656
|
+
test: Expression$1;
|
|
2657
|
+
body: Statement$1;
|
|
2658
|
+
parent?: Node$1;
|
|
2659
|
+
}
|
|
2660
|
+
declare interface WithStatement$1 extends Span$1 {
|
|
2661
|
+
type: "WithStatement";
|
|
2662
|
+
object: Expression$1;
|
|
2663
|
+
body: Statement$1;
|
|
2664
|
+
parent?: Node$1;
|
|
2665
|
+
}
|
|
2666
|
+
declare interface YieldExpression$1 extends Span$1 {
|
|
2667
|
+
type: "YieldExpression";
|
|
2668
|
+
delegate: boolean;
|
|
2669
|
+
argument: Expression$1 | null;
|
|
2670
|
+
parent?: Node$1;
|
|
2671
|
+
}
|
|
2672
|
+
//#endregion
|
|
2673
|
+
//#region src/Location.schema.d.ts
|
|
2674
|
+
/**
|
|
2675
|
+
* File coordinates in the mutation-testing-report-schema contract: both line
|
|
2676
|
+
* and column are 1-based. The first line of a file is line 1, and the first
|
|
2677
|
+
* character of a line is column 1. Slicing a source line by one of these
|
|
2678
|
+
* positions uses `line - 1` for the line index and `column - 1` for the
|
|
2679
|
+
* character offset.
|
|
2680
|
+
*/
|
|
2681
|
+
declare const PositionSchema: S.Struct<{
|
|
2682
|
+
readonly line: S.Int;
|
|
2683
|
+
readonly column: S.Int;
|
|
2684
|
+
}>;
|
|
2685
|
+
type Position = typeof PositionSchema.Type;
|
|
2686
|
+
declare const LocationSchema: S.Struct<{
|
|
2687
|
+
readonly start: S.Struct<{
|
|
2688
|
+
readonly line: S.Int;
|
|
2689
|
+
readonly column: S.Int;
|
|
2690
|
+
}>;
|
|
2691
|
+
readonly end: S.Struct<{
|
|
2692
|
+
readonly line: S.Int;
|
|
2693
|
+
readonly column: S.Int;
|
|
2694
|
+
}>;
|
|
2695
|
+
}>;
|
|
2696
|
+
type Location = typeof LocationSchema.Type;
|
|
2697
|
+
declare const OpenEndLocationSchema: S.Struct<{
|
|
2698
|
+
readonly start: S.Struct<{
|
|
2699
|
+
readonly line: S.Int;
|
|
2700
|
+
readonly column: S.Int;
|
|
2701
|
+
}>;
|
|
2702
|
+
readonly end: S.optional<S.Struct<{
|
|
2703
|
+
readonly line: S.Int;
|
|
2704
|
+
readonly column: S.Int;
|
|
2705
|
+
}>>;
|
|
2706
|
+
}>;
|
|
2707
|
+
type OpenEndLocation = typeof OpenEndLocationSchema.Type;
|
|
2708
|
+
/**
|
|
2709
|
+
* A mutant's `location` already speaks the report contract (1-based line and
|
|
2710
|
+
* column), so the report's location is that location unchanged.
|
|
2711
|
+
*/
|
|
2712
|
+
declare const ReportLocationFromMutant: S.Struct<{
|
|
2713
|
+
readonly start: S.Struct<{
|
|
2714
|
+
readonly line: S.Int;
|
|
2715
|
+
readonly column: S.Int;
|
|
2716
|
+
}>;
|
|
2717
|
+
readonly end: S.Struct<{
|
|
2718
|
+
readonly line: S.Int;
|
|
2719
|
+
readonly column: S.Int;
|
|
2720
|
+
}>;
|
|
2721
|
+
}>;
|
|
2722
|
+
//#endregion
|
|
2723
|
+
//#region src/Syntax.schema.d.ts
|
|
2724
|
+
declare const AstFormat: S.Literals<readonly ["js", "ts", "tsx"]>;
|
|
2725
|
+
type AstFormat = typeof AstFormat.Type;
|
|
2726
|
+
//#endregion
|
|
2727
|
+
//#region src/Ast.schema.d.ts
|
|
2728
|
+
interface SpannedComment {
|
|
2729
|
+
readonly type: 'Line' | 'Block';
|
|
2730
|
+
readonly value: string;
|
|
2731
|
+
readonly start: number;
|
|
2732
|
+
readonly end: number;
|
|
2733
|
+
}
|
|
2734
|
+
type ScriptFormat = Extract<AstFormat, 'js' | 'ts' | 'tsx'>;
|
|
2735
|
+
interface BaseAst {
|
|
2736
|
+
originFileName: string;
|
|
2737
|
+
rawContent: string;
|
|
2738
|
+
root: Program;
|
|
2739
|
+
offset?: Position;
|
|
2740
|
+
}
|
|
2741
|
+
interface EmbeddedAst {
|
|
2742
|
+
format: 'embedded';
|
|
2743
|
+
formatId: FormatId;
|
|
2744
|
+
originFileName: string;
|
|
2745
|
+
rawContent: string;
|
|
2746
|
+
document: EmbeddedDocument;
|
|
2747
|
+
readonly context: FrameworkContext;
|
|
2748
|
+
scripts: readonly EmbeddedScript[];
|
|
2749
|
+
}
|
|
2750
|
+
interface EmbeddedScript {
|
|
2751
|
+
readonly region: number;
|
|
2752
|
+
readonly ast: ScriptAst;
|
|
2753
|
+
}
|
|
2754
|
+
interface JSAst extends BaseAst {
|
|
2755
|
+
format: 'js';
|
|
2756
|
+
root: Program;
|
|
2757
|
+
comments: readonly SpannedComment[];
|
|
2758
|
+
}
|
|
2759
|
+
interface TSAst extends BaseAst {
|
|
2760
|
+
format: 'ts';
|
|
2761
|
+
root: Program;
|
|
2762
|
+
comments: readonly SpannedComment[];
|
|
2763
|
+
}
|
|
2764
|
+
interface TsxAst extends BaseAst {
|
|
2765
|
+
format: 'tsx';
|
|
2766
|
+
root: Program;
|
|
2767
|
+
comments: readonly SpannedComment[];
|
|
2768
|
+
}
|
|
2769
|
+
type ScriptAst = JSAst | TSAst | TsxAst;
|
|
2770
|
+
type Ast = JSAst | TSAst | TsxAst | EmbeddedAst;
|
|
2771
|
+
//#endregion
|
|
2772
|
+
//#region src/Mutant.schema.d.ts
|
|
2773
|
+
declare const MutantStatusSchema: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
2774
|
+
type MutantStatus = typeof MutantStatusSchema.Type;
|
|
2775
|
+
declare const MutantId: S.brand<S.NonEmptyString, "MutantId">;
|
|
2776
|
+
type MutantId = typeof MutantId.Type;
|
|
2777
|
+
declare const MutatorName: S.brand<S.NonEmptyString, "MutatorName">;
|
|
2778
|
+
type MutatorName = typeof MutatorName.Type;
|
|
2779
|
+
declare const CanonicalFileName: S.decodeTo<S.brand<S.String, "CanonicalFileName">, S.String, never, never>;
|
|
2780
|
+
type CanonicalFileName = typeof CanonicalFileName.Type;
|
|
2781
|
+
declare const Mutant_base: S.Class<Mutant$1, S.TaggedStruct<"Mutant", {
|
|
2782
|
+
readonly id: S.brand<S.NonEmptyString, "MutantId">;
|
|
2783
|
+
readonly fileName: S.decodeTo<S.brand<S.String, "CanonicalFileName">, S.String, never, never>;
|
|
2784
|
+
readonly mutatorName: S.brand<S.NonEmptyString, "MutatorName">;
|
|
2785
|
+
readonly replacement: S.String;
|
|
2786
|
+
readonly location: S.Struct<{
|
|
2787
|
+
readonly start: S.Struct<{
|
|
2788
|
+
readonly line: S.Int;
|
|
2789
|
+
readonly column: S.Int;
|
|
2790
|
+
}>;
|
|
2791
|
+
readonly end: S.Struct<{
|
|
2792
|
+
readonly line: S.Int;
|
|
2793
|
+
readonly column: S.Int;
|
|
2794
|
+
}>;
|
|
2795
|
+
}>;
|
|
2796
|
+
readonly status: S.optional<S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>>;
|
|
2797
|
+
readonly statusReason: S.optional<S.String>;
|
|
2798
|
+
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
2799
|
+
readonly static: S.optional<S.Boolean>;
|
|
2800
|
+
readonly testsCompleted: S.optional<S.Finite>;
|
|
2801
|
+
readonly description: S.optional<S.String>;
|
|
2802
|
+
}>, {}>;
|
|
2803
|
+
/**
|
|
2804
|
+
* A mutant's file location in the mutation-testing-report-schema contract:
|
|
2805
|
+
* 1-based line and 1-based column, the same base the JSON report and the
|
|
2806
|
+
* machine stream emit. Every producer on the instrument path (node spans,
|
|
2807
|
+
* embedded-region shifts) targets this base; no downstream layer converts.
|
|
2808
|
+
*/
|
|
2809
|
+
declare class Mutant$1 extends Mutant_base {}
|
|
2810
|
+
declare const MutantFromUnknown: S.compose<typeof Mutant$1, S.Unknown>;
|
|
2811
|
+
type MutantFromUnknown = typeof MutantFromUnknown.Type;
|
|
2812
|
+
declare const RunOptionsFields: {
|
|
2813
|
+
timeout: S.Finite;
|
|
2814
|
+
disableBail: S.Boolean;
|
|
2815
|
+
};
|
|
2816
|
+
declare const MutantActivationSchema: S.Literals<readonly ["runtime", "static"]>;
|
|
2817
|
+
type MutantActivation = typeof MutantActivationSchema.Type;
|
|
2818
|
+
declare const MutantRunOptionsSchema: S.Struct<{
|
|
2819
|
+
readonly timeout: S.Finite;
|
|
2820
|
+
readonly disableBail: S.Boolean;
|
|
2821
|
+
readonly activeMutant: typeof Mutant$1;
|
|
2822
|
+
readonly sandboxFileName: S.String;
|
|
2823
|
+
readonly mutantActivation: S.Literals<readonly ["runtime", "static"]>;
|
|
2824
|
+
readonly reloadEnvironment: S.Boolean;
|
|
2825
|
+
readonly testFilter: S.optionalKey<S.$Array<S.String>>;
|
|
2826
|
+
readonly hitLimit: S.optionalKey<S.Int>;
|
|
2827
|
+
}>;
|
|
2828
|
+
declare const MutantCoverageSchema$1: S.Struct<{
|
|
2829
|
+
readonly perTest: S.$Record<S.String, S.$Record<S.String, S.Int>>;
|
|
2830
|
+
readonly static: S.$Record<S.String, S.Int>;
|
|
2831
|
+
}>;
|
|
2832
|
+
type MutantCoverage = typeof MutantCoverageSchema$1.Type;
|
|
2833
|
+
type CoverageData = Record<string, number>;
|
|
2834
|
+
type CoveragePerTestId = Record<string, CoverageData>;
|
|
2835
|
+
interface Coverage {
|
|
2836
|
+
readonly static: CoverageData;
|
|
2837
|
+
readonly perTest: CoveragePerTestId;
|
|
2838
|
+
}
|
|
2839
|
+
interface RunOptions {
|
|
2840
|
+
readonly timeout: number;
|
|
2841
|
+
readonly disableBail: boolean;
|
|
2842
|
+
}
|
|
2843
|
+
interface MutantRunOptions extends RunOptions {
|
|
2844
|
+
readonly testFilter?: readonly string[];
|
|
2845
|
+
readonly hitLimit?: number;
|
|
2846
|
+
readonly activeMutant: Mutant$1;
|
|
2847
|
+
readonly sandboxFileName: string;
|
|
2848
|
+
readonly mutantActivation: MutantActivation;
|
|
2849
|
+
readonly reloadEnvironment: boolean;
|
|
2850
|
+
}
|
|
2851
|
+
interface EarlyResultPlan {
|
|
2852
|
+
readonly plan: 'EarlyResult';
|
|
2853
|
+
readonly mutant: Mutant$1;
|
|
2854
|
+
}
|
|
2855
|
+
interface RunPlan {
|
|
2856
|
+
readonly plan: 'Run';
|
|
2857
|
+
readonly mutant: Mutant$1;
|
|
2858
|
+
readonly runOptions: MutantRunOptions;
|
|
2859
|
+
readonly netTime: number;
|
|
2860
|
+
}
|
|
2861
|
+
type TestPlan = EarlyResultPlan | RunPlan;
|
|
2862
|
+
type MutantTestCoverage = Mutant$1 & {
|
|
2863
|
+
readonly coveredBy: ReadonlyArray<string> | undefined;
|
|
2864
|
+
readonly static: boolean | undefined;
|
|
2865
|
+
};
|
|
2866
|
+
type RunMutantResult = Mutant$1 & {
|
|
2867
|
+
readonly status: MutantStatus;
|
|
2868
|
+
readonly statusReason?: string | undefined;
|
|
2869
|
+
readonly testsCompleted?: number | undefined;
|
|
2870
|
+
readonly killedBy?: readonly string[] | undefined;
|
|
2871
|
+
readonly coveredBy?: readonly string[] | undefined;
|
|
2872
|
+
readonly static?: boolean | undefined;
|
|
2873
|
+
};
|
|
2874
|
+
declare const InstrumenterContext_base: S.Class<InstrumenterContext, S.Struct<{
|
|
2875
|
+
readonly activeMutant: S.optional<S.String>;
|
|
2876
|
+
readonly currentTestId: S.optional<S.String>;
|
|
2877
|
+
readonly mutantCoverage: S.optional<S.Struct<{
|
|
2878
|
+
readonly perTest: S.$Record<S.String, S.$Record<S.String, S.Int>>;
|
|
2879
|
+
readonly static: S.$Record<S.String, S.Int>;
|
|
2880
|
+
}>>;
|
|
2881
|
+
readonly hitCount: S.optional<S.Finite>;
|
|
2882
|
+
readonly hitLimit: S.optional<S.Finite>;
|
|
2883
|
+
}>, {}>;
|
|
2884
|
+
declare class InstrumenterContext extends InstrumenterContext_base {
|
|
2885
|
+
static readonly NAMESPACE = "__stryker__";
|
|
2886
|
+
static readonly MUTATION_COVERAGE_OBJECT = "mutantCoverage";
|
|
2887
|
+
static readonly ACTIVE_MUTANT = "activeMutant";
|
|
2888
|
+
static readonly CURRENT_TEST_ID = "currentTestId";
|
|
2889
|
+
static readonly HIT_COUNT = "hitCount";
|
|
2890
|
+
static readonly HIT_LIMIT = "hitLimit";
|
|
2891
|
+
static readonly ACTIVE_MUTANT_ENV_VARIABLE = "__STRYKER_ACTIVE_MUTANT__";
|
|
2892
|
+
}
|
|
2893
|
+
type MutantRunPlan = RunPlan;
|
|
2894
|
+
type MutantEarlyResultPlan = EarlyResultPlan;
|
|
2895
|
+
type MutantTestPlan = TestPlan;
|
|
2896
|
+
//#endregion
|
|
2897
|
+
//#region src/Instrument.schema.d.ts
|
|
2898
|
+
declare const InstrumentError_base: S.Class<InstrumentError, S.TaggedStruct<"InstrumentError", {
|
|
2899
|
+
readonly message: S.String;
|
|
2900
|
+
readonly cause: S.Defect;
|
|
2901
|
+
}>, import("effect/Cause").YieldableError>;
|
|
2902
|
+
declare class InstrumentError extends InstrumentError_base {
|
|
2903
|
+
get message(): string;
|
|
2904
|
+
}
|
|
2905
|
+
declare const MutateDescriptionSchema: S.Union<readonly [S.Boolean, S.$Array<S.Struct<{
|
|
2906
|
+
readonly start: S.Struct<{
|
|
2907
|
+
readonly line: S.Int;
|
|
2908
|
+
readonly column: S.Int;
|
|
2909
|
+
}>;
|
|
2910
|
+
readonly end: S.Struct<{
|
|
2911
|
+
readonly line: S.Int;
|
|
2912
|
+
readonly column: S.Int;
|
|
2913
|
+
}>;
|
|
2914
|
+
}>>]>;
|
|
2915
|
+
type MutateDescription = typeof MutateDescriptionSchema.Type;
|
|
2916
|
+
interface MutationRange {
|
|
2917
|
+
readonly start: Position;
|
|
2918
|
+
readonly end: Position;
|
|
2919
|
+
}
|
|
2920
|
+
interface FileDescription {
|
|
2921
|
+
readonly mutate: MutateDescription;
|
|
2922
|
+
}
|
|
2923
|
+
type FileDescriptions = Record<string, FileDescription>;
|
|
2924
|
+
declare const InstrumenterOptionsSchema: S.Struct<{
|
|
2925
|
+
readonly excludedMutations: S.$Array<S.String>;
|
|
2926
|
+
readonly ignorers: S.$Array<S.Unknown>;
|
|
2927
|
+
readonly noHeader: S.optional<S.Boolean>;
|
|
2928
|
+
readonly optInMutations: S.optional<S.$Array<S.String>>;
|
|
2929
|
+
}>;
|
|
2930
|
+
type InstrumenterOptions = typeof InstrumenterOptionsSchema.Type;
|
|
2931
|
+
declare const InstrumentFileSkip_base: S.Class<InstrumentFileSkip, S.TaggedStruct<"InstrumentFileSkip", {
|
|
2932
|
+
readonly file: S.String;
|
|
2933
|
+
readonly extension: S.String;
|
|
2934
|
+
readonly reason: S.String;
|
|
2935
|
+
}>, {}>;
|
|
2936
|
+
declare class InstrumentFileSkip extends InstrumentFileSkip_base {}
|
|
2937
|
+
declare const InstrumentResult_base: S.Class<InstrumentResult$1, S.TaggedStruct<"InstrumentResult", {
|
|
2938
|
+
readonly files: S.$Array<S.Struct<{
|
|
2939
|
+
readonly name: S.String;
|
|
2940
|
+
readonly content: S.String;
|
|
2941
|
+
readonly mutate: S.Union<readonly [S.Boolean, S.$Array<S.Struct<{
|
|
2942
|
+
readonly start: S.Struct<{
|
|
2943
|
+
readonly line: S.Int;
|
|
2944
|
+
readonly column: S.Int;
|
|
2945
|
+
}>;
|
|
2946
|
+
readonly end: S.Struct<{
|
|
2947
|
+
readonly line: S.Int;
|
|
2948
|
+
readonly column: S.Int;
|
|
2949
|
+
}>;
|
|
2950
|
+
}>>]>;
|
|
2951
|
+
}>>;
|
|
2952
|
+
readonly mutants: S.$Array<typeof Mutant$1>;
|
|
2953
|
+
readonly skipped: S.$Array<typeof InstrumentFileSkip>;
|
|
2954
|
+
}>, {}>;
|
|
2955
|
+
declare class InstrumentResult$1 extends InstrumentResult_base {}
|
|
2956
|
+
//#endregion
|
|
2957
|
+
//#region src/Parser.schema.d.ts
|
|
2958
|
+
declare const ParseFailed_base: S.Class<ParseFailed, S.TaggedStruct<"ParseFailed", {
|
|
2959
|
+
readonly fileName: S.String;
|
|
2960
|
+
readonly message: S.String;
|
|
2961
|
+
readonly location: S.Struct<{
|
|
2962
|
+
readonly line: S.Finite;
|
|
2963
|
+
readonly column: S.Finite;
|
|
2964
|
+
}>;
|
|
2965
|
+
readonly cause: S.Defect;
|
|
2966
|
+
}>, import("effect/Cause").YieldableError>;
|
|
2967
|
+
declare class ParseFailed extends ParseFailed_base {
|
|
2968
|
+
get message(): string;
|
|
2969
|
+
}
|
|
2970
|
+
//#endregion
|
|
2971
|
+
//#region src/Parser.service.d.ts
|
|
2972
|
+
interface ParserOptions {}
|
|
2973
|
+
interface ParserContext {
|
|
2974
|
+
parse: (code: string, fileName: string, scriptFormat: ScriptFormat) => Effect$1.Effect<ScriptAst, ParseFailed>;
|
|
2975
|
+
}
|
|
2976
|
+
//#endregion
|
|
2977
|
+
//#region src/Printer.handle.d.ts
|
|
2978
|
+
type Printer<T extends Ast = Ast> = (file: T, context: PrinterContext) => string;
|
|
2979
|
+
interface PrinterContext {
|
|
2980
|
+
print: Printer<Ast>;
|
|
2981
|
+
}
|
|
2982
|
+
//#endregion
|
|
2983
|
+
//#region src/Mutator.service.d.ts
|
|
2984
|
+
interface Mutable {
|
|
2985
|
+
mutatorName: string;
|
|
2986
|
+
ignoreReason?: string | undefined;
|
|
2987
|
+
replacement: Node_2;
|
|
2988
|
+
}
|
|
2989
|
+
interface Mutant extends Mutable {
|
|
2990
|
+
readonly id: string;
|
|
2991
|
+
readonly fileName: string;
|
|
2992
|
+
readonly original: Node_2;
|
|
2993
|
+
readonly location: Location;
|
|
2994
|
+
readonly replacementCode: string;
|
|
2995
|
+
}
|
|
2996
|
+
interface MutatorOptions {
|
|
2997
|
+
excludedMutations: string[];
|
|
2998
|
+
optInMutations: readonly string[];
|
|
2999
|
+
noHeader?: boolean;
|
|
3000
|
+
}
|
|
3001
|
+
//#endregion
|
|
3002
|
+
//#region src/Transformer.service.d.ts
|
|
3003
|
+
interface TransformerOptions extends MutatorOptions {
|
|
3004
|
+
ignorers: readonly Ignorer[];
|
|
3005
|
+
}
|
|
3006
|
+
interface MutantCollector {
|
|
3007
|
+
readonly nextIndex: number;
|
|
3008
|
+
readonly append: (mutants: readonly Mutant[]) => void;
|
|
3009
|
+
readonly map: <A>(transform: (mutant: Mutant) => A) => readonly A[];
|
|
3010
|
+
}
|
|
3011
|
+
type AstTransformer<T extends Ast = Ast> = (ast: T, mutantCollector: MutantCollector, context: TransformerContext) => Effect$1.Effect<readonly string[], ParseFailed | InstrumentError>;
|
|
3012
|
+
interface TransformerContext {
|
|
3013
|
+
transform: AstTransformer;
|
|
3014
|
+
options: TransformerOptions;
|
|
3015
|
+
mutateDescription: MutateDescription;
|
|
3016
|
+
registry: FormatRegistry;
|
|
3017
|
+
readonly basePath?: string | undefined;
|
|
3018
|
+
}
|
|
3019
|
+
//#endregion
|
|
3020
|
+
//#region src/Format.schema.d.ts
|
|
3021
|
+
type FormatKind = 'script' | 'embedded';
|
|
3022
|
+
interface FormatClaim<Kind extends FormatKind = FormatKind> {
|
|
3023
|
+
readonly formatId: FormatId;
|
|
3024
|
+
readonly extensions: readonly string[];
|
|
3025
|
+
readonly language: string;
|
|
3026
|
+
readonly kind: Kind;
|
|
3027
|
+
}
|
|
3028
|
+
interface ScriptHooks {
|
|
3029
|
+
readonly parse: (text: string, fileName: string, context: ParserContext) => Effect$1.Effect<Ast, ParseFailed | InstrumentError>;
|
|
3030
|
+
readonly transform: AstTransformer;
|
|
3031
|
+
readonly print: (ast: Ast, context: PrinterContext) => string;
|
|
3032
|
+
readonly disableTypeChecks: (ast: Ast) => Effect$1.Effect<string, InstrumentError>;
|
|
3033
|
+
}
|
|
3034
|
+
interface FormatHooks extends ScriptHooks {
|
|
3035
|
+
readonly owner: string;
|
|
3036
|
+
readonly ownerVersion: string;
|
|
3037
|
+
}
|
|
3038
|
+
interface ScriptFormatEntry extends FormatHooks {
|
|
3039
|
+
readonly claim: FormatClaim<'script'>;
|
|
3040
|
+
readonly scriptFormat: ScriptFormat;
|
|
3041
|
+
}
|
|
3042
|
+
interface EmbeddedFormatEntry extends FormatHooks {
|
|
3043
|
+
readonly claim: FormatClaim<'embedded'>;
|
|
3044
|
+
}
|
|
3045
|
+
type FormatEntry = ScriptFormatEntry | EmbeddedFormatEntry;
|
|
3046
|
+
type EntryForFormat = (formatId: string) => Option$1.Option<FormatEntry>;
|
|
3047
|
+
interface FormatRegistry {
|
|
3048
|
+
readonly entries: readonly FormatEntry[];
|
|
3049
|
+
readonly entryForFormat: EntryForFormat;
|
|
3050
|
+
readonly entryForExtension: (extension: string) => Option$1.Option<FormatEntry>;
|
|
3051
|
+
}
|
|
3052
|
+
//#endregion
|
|
3053
|
+
//#region src/Format.handle.d.ts
|
|
3054
|
+
declare const extensionOf: (fileName: string) => string;
|
|
3055
|
+
declare const registerEntries: {
|
|
3056
|
+
(registry: FormatRegistry, additions: readonly FormatEntry[]): FormatRegistry;
|
|
3057
|
+
(additions: readonly FormatEntry[]): (registry: FormatRegistry) => FormatRegistry;
|
|
3058
|
+
};
|
|
3059
|
+
declare const coreFormatRegistry: FormatRegistry;
|
|
3060
|
+
//#endregion
|
|
3061
|
+
//#region src/FrameworkEntry.handle.d.ts
|
|
3062
|
+
declare const frameworkEntryOf: {
|
|
3063
|
+
(moduleName: string, framework: Framework): EmbeddedFormatEntry;
|
|
3064
|
+
(framework: Framework): (moduleName: string) => EmbeddedFormatEntry;
|
|
3065
|
+
};
|
|
3066
|
+
declare namespace mod_d_exports$1 {
|
|
3067
|
+
export { EmbeddedFormatEntry, FormatClaim, FormatEntry, FormatHooks, FormatKind, FormatRegistry, ScriptFormatEntry, coreFormatRegistry, extensionOf, frameworkEntryOf, registerEntries };
|
|
3068
|
+
}
|
|
3069
|
+
//#endregion
|
|
3070
|
+
//#region src/Instrument.service.d.ts
|
|
3071
|
+
interface File extends FileDescription {
|
|
3072
|
+
name: string;
|
|
3073
|
+
content: string;
|
|
3074
|
+
}
|
|
3075
|
+
interface InstrumentResult {
|
|
3076
|
+
files: readonly File[];
|
|
3077
|
+
mutants: readonly Mutant$1[];
|
|
3078
|
+
skipped: readonly InstrumentFileSkip[];
|
|
3079
|
+
}
|
|
3080
|
+
declare const instrument: {
|
|
3081
|
+
(files: readonly File[], options: InstrumenterOptions, registry?: FormatRegistry): Effect$1.Effect<InstrumentResult$1, InstrumentError>;
|
|
3082
|
+
(options: InstrumenterOptions, registry?: FormatRegistry): (files: readonly File[]) => Effect$1.Effect<InstrumentResult$1, InstrumentError>;
|
|
3083
|
+
};
|
|
3084
|
+
declare const disableTypeChecks: {
|
|
3085
|
+
(file: File, registry?: FormatRegistry): Effect$1.Effect<File, InstrumentError>;
|
|
3086
|
+
(registry?: FormatRegistry): (file: File) => Effect$1.Effect<File, InstrumentError>;
|
|
3087
|
+
};
|
|
3088
|
+
declare namespace mod_d_exports$2$1 {
|
|
3089
|
+
export { File, FileDescription, FileDescriptions, InstrumentError, InstrumentFileSkip, InstrumentResult, InstrumenterOptions, MutateDescription, MutationRange, ParserOptions, disableTypeChecks, instrument };
|
|
3090
|
+
}
|
|
3091
|
+
declare namespace mod_d_exports$3$1 {
|
|
3092
|
+
export { CanonicalFileName, CanonicalFileName as CanonicalFileNameValue, Coverage, CoverageData, CoveragePerTestId, EarlyResultPlan, InstrumenterContext, Location, LocationSchema, Mutant$1 as Mutant, MutantActivation, MutantActivationSchema, MutantCoverage, MutantCoverageSchema$1 as MutantCoverageSchema, MutantEarlyResultPlan, MutantFromUnknown, MutantFromUnknown as MutantFromUnknownValue, MutantId, MutantId as MutantIdValue, MutantRunOptions, MutantRunOptionsSchema, MutantRunPlan, MutantStatus, MutantStatusSchema, MutantTestCoverage, MutantTestPlan, MutatorName, MutatorName as MutatorNameValue, OpenEndLocation, OpenEndLocationSchema, Position, PositionSchema, ReportLocationFromMutant, RunMutantResult, RunOptions, RunOptionsFields, RunPlan, TestPlan };
|
|
3093
|
+
}
|
|
3094
|
+
//#endregion
|
|
3095
|
+
//#region ../stryker-js-plugin-interface/dist/index.d.mts
|
|
3096
|
+
//#region src/Checker.schema.d.ts
|
|
3097
|
+
declare const CheckerMutantWire: S.Struct<{
|
|
3098
|
+
readonly id: S.brand<S.NonEmptyString, "MutantId">;
|
|
3099
|
+
readonly fileName: S.decodeTo<S.brand<S.String, "CanonicalFileName">, S.String, never, never>;
|
|
3100
|
+
readonly mutatorName: S.brand<S.NonEmptyString, "MutatorName">;
|
|
3101
|
+
readonly replacement: S.String;
|
|
3102
|
+
readonly location: S.Struct<{
|
|
3103
|
+
readonly start: S.Struct<{
|
|
3104
|
+
readonly line: S.Int;
|
|
3105
|
+
readonly column: S.Int;
|
|
3106
|
+
}>;
|
|
3107
|
+
readonly end: S.Struct<{
|
|
3108
|
+
readonly line: S.Int;
|
|
3109
|
+
readonly column: S.Int;
|
|
3110
|
+
}>;
|
|
3111
|
+
}>;
|
|
3112
|
+
}>;
|
|
3113
|
+
type CheckerMutantWire = typeof CheckerMutantWire.Type;
|
|
3114
|
+
declare const CheckStatus: S.Literals<readonly ["passed", "compileError"]>;
|
|
3115
|
+
type CheckStatus = typeof CheckStatus.Type;
|
|
3116
|
+
declare const CheckResultSchema: S.Union<readonly [S.Struct<{
|
|
3117
|
+
readonly status: S.Literal<"passed">;
|
|
3118
|
+
}>, S.Struct<{
|
|
3119
|
+
readonly status: S.Literal<"compileError">;
|
|
3120
|
+
readonly reason: S.String;
|
|
3121
|
+
}>]>;
|
|
3122
|
+
declare const CheckerFailed_base: S.Class<CheckerFailed, S.TaggedStruct<"CheckerFailed", {
|
|
3123
|
+
readonly cause: S.String;
|
|
3124
|
+
readonly checkerName: S.String;
|
|
3125
|
+
readonly mutantIds: S.$Array<S.String>;
|
|
3126
|
+
}>, import("effect/Cause").YieldableError>;
|
|
3127
|
+
declare class CheckerFailed extends CheckerFailed_base {}
|
|
3128
|
+
interface FailedCheckResult {
|
|
3129
|
+
readonly reason: string;
|
|
3130
|
+
readonly status: 'compileError';
|
|
3131
|
+
}
|
|
3132
|
+
interface PassedCheckResult {
|
|
3133
|
+
readonly status: 'passed';
|
|
3134
|
+
}
|
|
3135
|
+
type CheckResult = FailedCheckResult | PassedCheckResult;
|
|
3136
|
+
//#endregion
|
|
3137
|
+
//#region src/Checker.service.d.ts
|
|
3138
|
+
interface CheckerService {
|
|
3139
|
+
readonly init: Effect$1.Effect<void, CheckerFailed>;
|
|
3140
|
+
readonly check: (mutants: readonly CheckerMutantWire[]) => Effect$1.Effect<HashMap.HashMap<string, CheckResult>, CheckerFailed>;
|
|
3141
|
+
readonly group: (mutants: readonly CheckerMutantWire[]) => Effect$1.Effect<readonly (readonly string[])[], CheckerFailed>;
|
|
3142
|
+
}
|
|
3143
|
+
declare const Checker_base: Context.ServiceClass<Checker, "@systemfsoftware/stryker-js-plugin-interface/Checker.service/Checker", CheckerService>;
|
|
3144
|
+
declare class Checker extends Checker_base {}
|
|
3145
|
+
declare namespace mod_d_exports {
|
|
3146
|
+
export { CheckResult, CheckResultSchema, CheckStatus, Checker, CheckerFailed, CheckerMutantWire, CheckerService, FailedCheckResult, PassedCheckResult };
|
|
3147
|
+
}
|
|
3148
|
+
declare const MutantResultSchema: S.Struct<{
|
|
3149
|
+
readonly id: S.String;
|
|
3150
|
+
readonly mutatorName: S.String;
|
|
3151
|
+
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
3152
|
+
readonly location: S.Struct<{
|
|
3153
|
+
readonly start: S.Struct<{
|
|
3154
|
+
readonly line: S.Int;
|
|
3155
|
+
readonly column: S.Int;
|
|
3156
|
+
}>;
|
|
3157
|
+
readonly end: S.Struct<{
|
|
3158
|
+
readonly line: S.Int;
|
|
3159
|
+
readonly column: S.Int;
|
|
3160
|
+
}>;
|
|
3161
|
+
}>;
|
|
3162
|
+
readonly replacement: S.optional<S.String>;
|
|
3163
|
+
readonly description: S.optional<S.String>;
|
|
3164
|
+
readonly statusReason: S.optional<S.String>;
|
|
3165
|
+
readonly static: S.optional<S.Boolean>;
|
|
3166
|
+
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
3167
|
+
readonly killedBy: S.optional<S.$Array<S.String>>;
|
|
3168
|
+
readonly testsCompleted: S.optional<S.Int>;
|
|
3169
|
+
readonly duration: S.optional<S.Finite>;
|
|
3170
|
+
}>;
|
|
3171
|
+
type MutantResult = typeof MutantResultSchema.Type;
|
|
3172
|
+
declare const FileResultSchema: S.Struct<{
|
|
3173
|
+
readonly language: S.String;
|
|
3174
|
+
readonly source: S.String;
|
|
3175
|
+
readonly mutants: S.$Array<S.Struct<{
|
|
3176
|
+
readonly id: S.String;
|
|
3177
|
+
readonly mutatorName: S.String;
|
|
3178
|
+
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
3179
|
+
readonly location: S.Struct<{
|
|
3180
|
+
readonly start: S.Struct<{
|
|
3181
|
+
readonly line: S.Int;
|
|
3182
|
+
readonly column: S.Int;
|
|
3183
|
+
}>;
|
|
3184
|
+
readonly end: S.Struct<{
|
|
3185
|
+
readonly line: S.Int;
|
|
3186
|
+
readonly column: S.Int;
|
|
3187
|
+
}>;
|
|
3188
|
+
}>;
|
|
3189
|
+
readonly replacement: S.optional<S.String>;
|
|
3190
|
+
readonly description: S.optional<S.String>;
|
|
3191
|
+
readonly statusReason: S.optional<S.String>;
|
|
3192
|
+
readonly static: S.optional<S.Boolean>;
|
|
3193
|
+
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
3194
|
+
readonly killedBy: S.optional<S.$Array<S.String>>;
|
|
3195
|
+
readonly testsCompleted: S.optional<S.Int>;
|
|
3196
|
+
readonly duration: S.optional<S.Finite>;
|
|
3197
|
+
}>>;
|
|
3198
|
+
}>;
|
|
3199
|
+
type FileResult = typeof FileResultSchema.Type;
|
|
3200
|
+
declare const FileResultDictionarySchema: S.$Record<S.String, S.Struct<{
|
|
3201
|
+
readonly language: S.String;
|
|
3202
|
+
readonly source: S.String;
|
|
3203
|
+
readonly mutants: S.$Array<S.Struct<{
|
|
3204
|
+
readonly id: S.String;
|
|
3205
|
+
readonly mutatorName: S.String;
|
|
3206
|
+
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
3207
|
+
readonly location: S.Struct<{
|
|
3208
|
+
readonly start: S.Struct<{
|
|
3209
|
+
readonly line: S.Int;
|
|
3210
|
+
readonly column: S.Int;
|
|
3211
|
+
}>;
|
|
3212
|
+
readonly end: S.Struct<{
|
|
3213
|
+
readonly line: S.Int;
|
|
3214
|
+
readonly column: S.Int;
|
|
3215
|
+
}>;
|
|
3216
|
+
}>;
|
|
3217
|
+
readonly replacement: S.optional<S.String>;
|
|
3218
|
+
readonly description: S.optional<S.String>;
|
|
3219
|
+
readonly statusReason: S.optional<S.String>;
|
|
3220
|
+
readonly static: S.optional<S.Boolean>;
|
|
3221
|
+
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
3222
|
+
readonly killedBy: S.optional<S.$Array<S.String>>;
|
|
3223
|
+
readonly testsCompleted: S.optional<S.Int>;
|
|
3224
|
+
readonly duration: S.optional<S.Finite>;
|
|
3225
|
+
}>>;
|
|
3226
|
+
}>>;
|
|
3227
|
+
type FileResultDictionary = typeof FileResultDictionarySchema.Type;
|
|
3228
|
+
declare const TestDefinitionSchema: S.Struct<{
|
|
3229
|
+
readonly id: S.String;
|
|
3230
|
+
readonly name: S.String;
|
|
3231
|
+
readonly location: S.optional<S.Struct<{
|
|
3232
|
+
readonly start: S.Struct<{
|
|
3233
|
+
readonly line: S.Int;
|
|
3234
|
+
readonly column: S.Int;
|
|
3235
|
+
}>;
|
|
3236
|
+
readonly end: S.optional<S.Struct<{
|
|
3237
|
+
readonly line: S.Int;
|
|
3238
|
+
readonly column: S.Int;
|
|
3239
|
+
}>>;
|
|
3240
|
+
}>>;
|
|
3241
|
+
}>;
|
|
3242
|
+
type TestDefinition = typeof TestDefinitionSchema.Type;
|
|
3243
|
+
declare const TestFileSchema: S.Struct<{
|
|
3244
|
+
readonly source: S.optional<S.String>;
|
|
3245
|
+
readonly tests: S.$Array<S.Struct<{
|
|
3246
|
+
readonly id: S.String;
|
|
3247
|
+
readonly name: S.String;
|
|
3248
|
+
readonly location: S.optional<S.Struct<{
|
|
3249
|
+
readonly start: S.Struct<{
|
|
3250
|
+
readonly line: S.Int;
|
|
3251
|
+
readonly column: S.Int;
|
|
3252
|
+
}>;
|
|
3253
|
+
readonly end: S.optional<S.Struct<{
|
|
3254
|
+
readonly line: S.Int;
|
|
3255
|
+
readonly column: S.Int;
|
|
3256
|
+
}>>;
|
|
3257
|
+
}>>;
|
|
3258
|
+
}>>;
|
|
3259
|
+
}>;
|
|
3260
|
+
type TestFile = typeof TestFileSchema.Type;
|
|
3261
|
+
declare const TestFileDefinitionDictionarySchema: S.$Record<S.String, S.Struct<{
|
|
3262
|
+
readonly source: S.optional<S.String>;
|
|
3263
|
+
readonly tests: S.$Array<S.Struct<{
|
|
3264
|
+
readonly id: S.String;
|
|
3265
|
+
readonly name: S.String;
|
|
3266
|
+
readonly location: S.optional<S.Struct<{
|
|
3267
|
+
readonly start: S.Struct<{
|
|
3268
|
+
readonly line: S.Int;
|
|
3269
|
+
readonly column: S.Int;
|
|
3270
|
+
}>;
|
|
3271
|
+
readonly end: S.optional<S.Struct<{
|
|
3272
|
+
readonly line: S.Int;
|
|
3273
|
+
readonly column: S.Int;
|
|
3274
|
+
}>>;
|
|
3275
|
+
}>>;
|
|
3276
|
+
}>>;
|
|
3277
|
+
}>>;
|
|
3278
|
+
type TestFileDefinitionDictionary = typeof TestFileDefinitionDictionarySchema.Type;
|
|
3279
|
+
declare const ThresholdsSchema: S.decodeTo<S.declare<{
|
|
3280
|
+
readonly high: number;
|
|
3281
|
+
readonly low: number;
|
|
3282
|
+
}, {
|
|
3283
|
+
readonly high: number;
|
|
3284
|
+
readonly low: number;
|
|
3285
|
+
}>, S.Struct<{
|
|
3286
|
+
readonly high: S.Finite;
|
|
3287
|
+
readonly low: S.Finite;
|
|
3288
|
+
}>, never, never>;
|
|
3289
|
+
type Thresholds = typeof ThresholdsSchema.Type;
|
|
3290
|
+
declare const BrandingInformationSchema: S.Struct<{
|
|
3291
|
+
readonly homepageUrl: S.String;
|
|
3292
|
+
readonly imageUrl: S.optional<S.String>;
|
|
3293
|
+
}>;
|
|
3294
|
+
type BrandingInformation = typeof BrandingInformationSchema.Type;
|
|
3295
|
+
declare const DependenciesSchema: S.$Record<S.String, S.String>;
|
|
3296
|
+
type Dependencies = typeof DependenciesSchema.Type;
|
|
3297
|
+
declare const FrameworkInformationSchema: S.Struct<{
|
|
3298
|
+
readonly name: S.String;
|
|
3299
|
+
readonly version: S.optional<S.String>;
|
|
3300
|
+
readonly branding: S.optional<S.Struct<{
|
|
3301
|
+
readonly homepageUrl: S.String;
|
|
3302
|
+
readonly imageUrl: S.optional<S.String>;
|
|
3303
|
+
}>>;
|
|
3304
|
+
readonly dependencies: S.optional<S.$Record<S.String, S.String>>;
|
|
3305
|
+
}>;
|
|
3306
|
+
type FrameworkInformation = typeof FrameworkInformationSchema.Type;
|
|
3307
|
+
declare const MutationTestResultSchema: S.Struct<{
|
|
3308
|
+
readonly schemaVersion: S.String;
|
|
3309
|
+
readonly files: S.$Record<S.String, S.Struct<{
|
|
3310
|
+
readonly language: S.String;
|
|
3311
|
+
readonly source: S.String;
|
|
3312
|
+
readonly mutants: S.$Array<S.Struct<{
|
|
3313
|
+
readonly id: S.String;
|
|
3314
|
+
readonly mutatorName: S.String;
|
|
3315
|
+
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
3316
|
+
readonly location: S.Struct<{
|
|
3317
|
+
readonly start: S.Struct<{
|
|
3318
|
+
readonly line: S.Int;
|
|
3319
|
+
readonly column: S.Int;
|
|
3320
|
+
}>;
|
|
3321
|
+
readonly end: S.Struct<{
|
|
3322
|
+
readonly line: S.Int;
|
|
3323
|
+
readonly column: S.Int;
|
|
3324
|
+
}>;
|
|
3325
|
+
}>;
|
|
3326
|
+
readonly replacement: S.optional<S.String>;
|
|
3327
|
+
readonly description: S.optional<S.String>;
|
|
3328
|
+
readonly statusReason: S.optional<S.String>;
|
|
3329
|
+
readonly static: S.optional<S.Boolean>;
|
|
3330
|
+
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
3331
|
+
readonly killedBy: S.optional<S.$Array<S.String>>;
|
|
3332
|
+
readonly testsCompleted: S.optional<S.Int>;
|
|
3333
|
+
readonly duration: S.optional<S.Finite>;
|
|
3334
|
+
}>>;
|
|
3335
|
+
}>>;
|
|
3336
|
+
readonly thresholds: S.decodeTo<S.declare<{
|
|
3337
|
+
readonly high: number;
|
|
3338
|
+
readonly low: number;
|
|
3339
|
+
}, {
|
|
3340
|
+
readonly high: number;
|
|
3341
|
+
readonly low: number;
|
|
3342
|
+
}>, S.Struct<{
|
|
3343
|
+
readonly high: S.Finite;
|
|
3344
|
+
readonly low: S.Finite;
|
|
3345
|
+
}>, never, never>;
|
|
3346
|
+
readonly config: S.optional<S.$Record<S.String, S.Unknown>>;
|
|
3347
|
+
readonly testFiles: S.optional<S.$Record<S.String, S.Struct<{
|
|
3348
|
+
readonly source: S.optional<S.String>;
|
|
3349
|
+
readonly tests: S.$Array<S.Struct<{
|
|
3350
|
+
readonly id: S.String;
|
|
3351
|
+
readonly name: S.String;
|
|
3352
|
+
readonly location: S.optional<S.Struct<{
|
|
3353
|
+
readonly start: S.Struct<{
|
|
3354
|
+
readonly line: S.Int;
|
|
3355
|
+
readonly column: S.Int;
|
|
3356
|
+
}>;
|
|
3357
|
+
readonly end: S.optional<S.Struct<{
|
|
3358
|
+
readonly line: S.Int;
|
|
3359
|
+
readonly column: S.Int;
|
|
3360
|
+
}>>;
|
|
3361
|
+
}>>;
|
|
3362
|
+
}>>;
|
|
3363
|
+
}>>>;
|
|
3364
|
+
readonly projectRoot: S.optional<S.String>;
|
|
3365
|
+
readonly framework: S.optional<S.Struct<{
|
|
3366
|
+
readonly name: S.String;
|
|
3367
|
+
readonly version: S.optional<S.String>;
|
|
3368
|
+
readonly branding: S.optional<S.Struct<{
|
|
3369
|
+
readonly homepageUrl: S.String;
|
|
3370
|
+
readonly imageUrl: S.optional<S.String>;
|
|
3371
|
+
}>>;
|
|
3372
|
+
readonly dependencies: S.optional<S.$Record<S.String, S.String>>;
|
|
3373
|
+
}>>;
|
|
3374
|
+
}>;
|
|
3375
|
+
type MutationTestResult = typeof MutationTestResultSchema.Type;
|
|
3376
|
+
//#endregion
|
|
3377
|
+
//#region src/ExitClass.schema.d.ts
|
|
3378
|
+
declare const ExitClass: S.Literals<readonly ["VerdictFail", "ConfigError", "RuntimeError", "InternalError"]>;
|
|
3379
|
+
type ExitClass = typeof ExitClass.Type;
|
|
3380
|
+
declare const ExitCodeFromClass: S.decodeTo<S.Literals<readonly [1, 2, 3, 4]>, S.Literals<readonly ["VerdictFail", "ConfigError", "RuntimeError", "InternalError"]>, never, never>;
|
|
3381
|
+
//#endregion
|
|
3382
|
+
//#region src/stryker-options.schema.d.ts
|
|
3383
|
+
declare const StrykerCoverageAnalysis: S.Literal<"perTest">;
|
|
3384
|
+
declare const StrykerFileLogLevel: S.Literal<"off">;
|
|
3385
|
+
declare const StrykerLogLevel: S.Literal<"info">;
|
|
3386
|
+
declare const StrykerTempDirName: S.Literal<".stryker-tmp">;
|
|
3387
|
+
declare const LogLevel: S.Literals<readonly ["off", "fatal", "error", "warn", "info", "debug", "trace"]>;
|
|
3388
|
+
declare const CoverageAnalysisMode: S.Literals<readonly ["off", "all", "perTest"]>;
|
|
3389
|
+
declare const ReportType: S.Literals<readonly ["full", "mutationScore"]>;
|
|
3390
|
+
declare const PackageManager: S.Literals<readonly ["npm", "yarn", "pnpm"]>;
|
|
3391
|
+
/** The generated module exported these as TypeScript types; consumers still name them that way. */
|
|
3392
|
+
type LogLevel = typeof LogLevel.Type;
|
|
3393
|
+
type CoverageAnalysisMode = typeof CoverageAnalysisMode.Type;
|
|
3394
|
+
type ReportType = typeof ReportType.Type;
|
|
3395
|
+
type PackageManager = typeof PackageManager.Type;
|
|
3396
|
+
declare const CommandRunnerOptionsSchema: S.StructWithRest<S.Struct<{
|
|
3397
|
+
readonly command: S.withDecodingDefaultKey<S.String, never>;
|
|
3398
|
+
}>, readonly [S.$Record<S.String, S.Unknown>]>;
|
|
3399
|
+
type CommandRunnerOptions = S.Schema.Type<typeof CommandRunnerOptionsSchema>;
|
|
3400
|
+
declare const MutationScoreThresholdsSchema: S.decodeTo<S.declare<{
|
|
3401
|
+
readonly high: number;
|
|
3402
|
+
readonly low: number;
|
|
3403
|
+
readonly break: number | null;
|
|
3404
|
+
}, {
|
|
3405
|
+
readonly high: number;
|
|
3406
|
+
readonly low: number;
|
|
3407
|
+
readonly break: number | null;
|
|
3408
|
+
}>, S.Struct<{
|
|
3409
|
+
readonly high: S.withDecodingDefaultKey<S.Finite, never>;
|
|
3410
|
+
readonly low: S.withDecodingDefaultKey<S.Finite, never>;
|
|
3411
|
+
readonly break: S.withDecodingDefaultKey<S.NullOr<S.Finite>, never>;
|
|
3412
|
+
}>, never, never>;
|
|
3413
|
+
type MutationScoreThresholds = typeof MutationScoreThresholdsSchema.Type;
|
|
3414
|
+
declare const PluginFileUrl: S.declare<string, string>;
|
|
3415
|
+
declare const TestRunnerCustomConfigSchema: S.Struct<{
|
|
3416
|
+
readonly plugin: S.declare<string, string>;
|
|
3417
|
+
readonly nodeArgs: S.optionalKey<S.$Array<S.String>>;
|
|
3418
|
+
readonly options: S.optionalKey<S.$Record<S.String, S.Unknown>>;
|
|
3419
|
+
}>;
|
|
3420
|
+
type TestRunnerCustomConfig = typeof TestRunnerCustomConfigSchema.Type;
|
|
3421
|
+
declare const TestRunnerConfigSchema: S.Union<readonly [S.String, S.Struct<{
|
|
3422
|
+
readonly plugin: S.declare<string, string>;
|
|
3423
|
+
readonly nodeArgs: S.optionalKey<S.$Array<S.String>>;
|
|
3424
|
+
readonly options: S.optionalKey<S.$Record<S.String, S.Unknown>>;
|
|
3425
|
+
}>]>;
|
|
3426
|
+
type TestRunnerConfig = typeof TestRunnerConfigSchema.Type;
|
|
3427
|
+
declare const isCustomTestRunner: <I>(input: I) => input is I & {
|
|
3428
|
+
readonly plugin: string;
|
|
3429
|
+
readonly nodeArgs?: readonly string[] | undefined;
|
|
3430
|
+
readonly options?: {
|
|
3431
|
+
readonly [x: string]: unknown;
|
|
3432
|
+
} | undefined;
|
|
3433
|
+
};
|
|
3434
|
+
declare const CheckerCustomConfigSchema: S.Struct<{
|
|
3435
|
+
readonly plugin: S.declare<string, string>;
|
|
3436
|
+
readonly nodeArgs: S.optionalKey<S.$Array<S.String>>;
|
|
3437
|
+
readonly options: S.optionalKey<S.$Record<S.String, S.Unknown>>;
|
|
3438
|
+
}>;
|
|
3439
|
+
type CheckerCustomConfig = typeof CheckerCustomConfigSchema.Type;
|
|
3440
|
+
declare const CheckerEntryConfigSchema: S.Struct<{
|
|
3441
|
+
readonly plugin: S.declare<string, string>;
|
|
3442
|
+
readonly nodeArgs: S.optionalKey<S.$Array<S.String>>;
|
|
3443
|
+
readonly options: S.optionalKey<S.$Record<S.String, S.Unknown>>;
|
|
3444
|
+
}>;
|
|
3445
|
+
type CheckerEntryConfig = typeof CheckerEntryConfigSchema.Type;
|
|
3446
|
+
declare const StrykerOptionsSchema: S.StructWithRest<S.Struct<{
|
|
3447
|
+
readonly allowConsoleColors: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
3448
|
+
readonly buildCommand: S.optionalKey<S.String>;
|
|
3449
|
+
readonly checkers: S.withDecodingDefaultKey<S.$Array<S.Struct<{
|
|
3450
|
+
readonly plugin: S.declare<string, string>;
|
|
3451
|
+
readonly nodeArgs: S.optionalKey<S.$Array<S.String>>;
|
|
3452
|
+
readonly options: S.optionalKey<S.$Record<S.String, S.Unknown>>;
|
|
3453
|
+
}>>, never>;
|
|
3454
|
+
readonly checkerNodeArgs: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
3455
|
+
readonly concurrency: S.optionalKey<S.Union<readonly [S.Finite, S.String]>>;
|
|
3456
|
+
readonly commandRunner: S.withDecodingDefaultKey<S.StructWithRest<S.Struct<{
|
|
3457
|
+
readonly command: S.withDecodingDefaultKey<S.String, never>;
|
|
3458
|
+
}>, readonly [S.$Record<S.String, S.Unknown>]>, never>;
|
|
3459
|
+
readonly coverageAnalysis: S.withDecodingDefaultKey<S.Literals<readonly ["off", "all", "perTest"]>, never>;
|
|
3460
|
+
readonly clearTextReporter: S.withDecodingDefaultKey<S.StructWithRest<S.Struct<{
|
|
3461
|
+
readonly allowColor: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
3462
|
+
readonly allowEmojis: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
3463
|
+
readonly logTests: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
3464
|
+
readonly maxTestsToLog: S.withDecodingDefaultKey<S.Finite, never>;
|
|
3465
|
+
readonly reportTests: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
3466
|
+
readonly reportMutants: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
3467
|
+
readonly reportScoreTable: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
3468
|
+
readonly skipFull: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
3469
|
+
}>, readonly [S.$Record<S.String, S.Unknown>]>, never>;
|
|
3470
|
+
readonly dryRunOnly: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
3471
|
+
readonly ignorePatterns: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
3472
|
+
readonly ignoreStatic: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
3473
|
+
readonly incremental: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
3474
|
+
readonly incrementalFile: S.withDecodingDefaultKey<S.String, never>;
|
|
3475
|
+
readonly progressStreamFile: S.withDecodingDefaultKey<S.String, never>;
|
|
3476
|
+
readonly force: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
3477
|
+
readonly fileLogLevel: S.withDecodingDefaultKey<S.Literals<readonly ["off", "fatal", "error", "warn", "info", "debug", "trace"]>, never>;
|
|
3478
|
+
readonly inPlace: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
3479
|
+
readonly logLevel: S.withDecodingDefaultKey<S.Literals<readonly ["off", "fatal", "error", "warn", "info", "debug", "trace"]>, never>;
|
|
3480
|
+
readonly maxConcurrentTestRunners: S.withDecodingDefaultKey<S.Finite, never>;
|
|
3481
|
+
readonly maxTestRunnerReuse: S.withDecodingDefaultKey<S.Finite, never>;
|
|
3482
|
+
readonly mutate: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
3483
|
+
readonly mutator: S.withDecodingDefaultKey<S.Struct<{
|
|
3484
|
+
readonly excludedMutations: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
3485
|
+
readonly optInMutations: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
3486
|
+
}>, never>;
|
|
3487
|
+
readonly packageManager: S.optionalKey<S.Literals<readonly ["npm", "yarn", "pnpm"]>>;
|
|
3488
|
+
readonly plugins: S.withDecodingDefaultKey<S.$Array<S.declare<string, string>>, never>;
|
|
3489
|
+
readonly appendPlugins: S.withDecodingDefaultKey<S.$Array<S.declare<string, string>>, never>;
|
|
3490
|
+
readonly reporters: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
3491
|
+
readonly htmlReporter: S.withDecodingDefaultKey<S.Struct<{
|
|
3492
|
+
readonly fileName: S.withDecodingDefaultKey<S.String, never>;
|
|
3493
|
+
}>, never>;
|
|
3494
|
+
readonly jsonReporter: S.withDecodingDefaultKey<S.Struct<{
|
|
3495
|
+
readonly fileName: S.withDecodingDefaultKey<S.String, never>;
|
|
3496
|
+
}>, never>;
|
|
3497
|
+
readonly disableTypeChecks: S.withDecodingDefaultKey<S.Union<readonly [S.Boolean, S.String]>, never>;
|
|
3498
|
+
readonly symlinkNodeModules: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
3499
|
+
readonly tempDirName: S.withDecodingDefaultKey<S.String, never>;
|
|
3500
|
+
readonly cleanTempDir: S.withDecodingDefaultKey<S.Literals<readonly ["always", false, true]>, never>;
|
|
3501
|
+
readonly testRunner: S.withDecodingDefaultKey<S.Union<readonly [S.String, S.Struct<{
|
|
3502
|
+
readonly plugin: S.declare<string, string>;
|
|
3503
|
+
readonly nodeArgs: S.optionalKey<S.$Array<S.String>>;
|
|
3504
|
+
readonly options: S.optionalKey<S.$Record<S.String, S.Unknown>>;
|
|
3505
|
+
}>]>, never>;
|
|
3506
|
+
readonly testRunnerNodeArgs: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
3507
|
+
readonly thresholds: S.withDecodingDefaultKey<S.decodeTo<S.declare<{
|
|
3508
|
+
readonly high: number;
|
|
3509
|
+
readonly low: number;
|
|
3510
|
+
readonly break: number | null;
|
|
3511
|
+
}, {
|
|
3512
|
+
readonly high: number;
|
|
3513
|
+
readonly low: number;
|
|
3514
|
+
readonly break: number | null;
|
|
3515
|
+
}>, S.Struct<{
|
|
3516
|
+
readonly high: S.withDecodingDefaultKey<S.Finite, never>;
|
|
3517
|
+
readonly low: S.withDecodingDefaultKey<S.Finite, never>;
|
|
3518
|
+
readonly break: S.withDecodingDefaultKey<S.NullOr<S.Finite>, never>;
|
|
3519
|
+
}>, never, never>, never>;
|
|
3520
|
+
readonly timeoutFactor: S.withDecodingDefaultKey<S.Finite, never>;
|
|
3521
|
+
readonly timeoutMS: S.withDecodingDefaultKey<S.Finite, never>;
|
|
3522
|
+
readonly dryRunTimeoutMinutes: S.withDecodingDefaultKey<S.Finite, never>;
|
|
3523
|
+
readonly tsconfigFile: S.withDecodingDefaultKey<S.String, never>;
|
|
3524
|
+
readonly warnings: S.withDecodingDefaultKey<S.Union<readonly [S.Boolean, S.StructWithRest<S.Struct<{
|
|
3525
|
+
readonly unknownOptions: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
3526
|
+
readonly preprocessorErrors: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
3527
|
+
readonly unserializableOptions: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
3528
|
+
readonly slow: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
3529
|
+
}>, readonly [S.$Record<S.String, S.Unknown>]>]>, never>;
|
|
3530
|
+
readonly disableBail: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
3531
|
+
readonly allowEmpty: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
3532
|
+
readonly ignorers: S.withDecodingDefaultKey<S.$Array<S.declare<string, string>>, never>;
|
|
3533
|
+
readonly testFiles: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
3534
|
+
}>, readonly [S.$Record<S.String, S.Unknown>]>;
|
|
3535
|
+
/** The decoded type: every defaulted option is present. */
|
|
3536
|
+
type StrykerOptions = S.Schema.Type<typeof StrykerOptionsSchema>;
|
|
3537
|
+
/**
|
|
3538
|
+
* The deep-partial input type: when configuring Stryker, every option is
|
|
3539
|
+
* optional, including deep properties like `dashboard.project`.
|
|
3540
|
+
*/
|
|
3541
|
+
type PartialStrykerOptions = DeepOptional<StrykerOptions>;
|
|
3542
|
+
/**
|
|
3543
|
+
* Every option optional, all the way down, and mutable: this is the type a
|
|
3544
|
+
* caller CONSTRUCTS by assignment, so `readonly` is stripped. The decoded
|
|
3545
|
+
* `StrykerOptions` keeps it - that side is read, never built.
|
|
3546
|
+
*/
|
|
3547
|
+
type DeepOptional<T, V = unknown> = { -readonly [P in keyof T]?: T[P] extends Record<string, V> ? DeepOptional<T[P], V> | undefined : T[P]; };
|
|
3548
|
+
declare namespace mod_d_exports$2 {
|
|
3549
|
+
export { CheckerCustomConfig, CheckerCustomConfigSchema, CheckerEntryConfig, CheckerEntryConfigSchema, CommandRunnerOptions, CommandRunnerOptionsSchema, CoverageAnalysisMode, CoverageAnalysisMode as CoverageAnalysisModeType, DeepOptional, LogLevel, LogLevel as LogLevelType, MutationScoreThresholds, MutationScoreThresholdsSchema, PackageManager, PackageManager as PackageManagerType, PartialStrykerOptions, PluginFileUrl, ReportType, ReportType as ReportTypeType, StrykerCoverageAnalysis, StrykerFileLogLevel, StrykerLogLevel, StrykerOptions, StrykerOptionsSchema, StrykerTempDirName, TestRunnerConfig, TestRunnerConfigSchema, TestRunnerCustomConfig, TestRunnerCustomConfigSchema, isCustomTestRunner };
|
|
3550
|
+
}
|
|
3551
|
+
//#endregion
|
|
3552
|
+
//#region src/Metrics.schema.d.ts
|
|
3553
|
+
declare const DetectedStatus: S.Union<readonly [S.Literal<"Killed">, S.Literal<"Timeout">]>;
|
|
3554
|
+
declare const UndetectedStatus: S.Union<readonly [S.Literal<"Survived">, S.Literal<"NoCoverage">]>;
|
|
3555
|
+
declare const InvalidStatus: S.Union<readonly [S.Literal<"CompileError">, S.Literal<"RuntimeError">]>;
|
|
3556
|
+
declare const UntestedStatus: S.Union<readonly [S.Literal<"Ignored">, S.Literal<"Pending">]>;
|
|
3557
|
+
declare const NonNegativeInt: S.Int;
|
|
3558
|
+
declare const NonNegativeFinite: S.Finite;
|
|
3559
|
+
declare const Percentage: S.Finite;
|
|
3560
|
+
declare const Metrics_base: S.Class<Metrics, S.Struct<{
|
|
3561
|
+
readonly pending: S.Int;
|
|
3562
|
+
readonly killed: S.Int;
|
|
3563
|
+
readonly timeout: S.Int;
|
|
3564
|
+
readonly survived: S.Int;
|
|
3565
|
+
readonly noCoverage: S.Int;
|
|
3566
|
+
readonly runtimeErrors: S.Int;
|
|
3567
|
+
readonly compileErrors: S.Int;
|
|
3568
|
+
readonly ignored: S.Int;
|
|
3569
|
+
}>, {}>;
|
|
3570
|
+
declare class Metrics extends Metrics_base {
|
|
3571
|
+
get totalDetected(): number;
|
|
3572
|
+
get totalUndetected(): number;
|
|
3573
|
+
get totalCovered(): number;
|
|
3574
|
+
get totalValid(): number;
|
|
3575
|
+
get totalInvalid(): number;
|
|
3576
|
+
get totalMutants(): number;
|
|
3577
|
+
get mutationScore(): number;
|
|
3578
|
+
get mutationScoreBasedOnCoveredCode(): number;
|
|
3579
|
+
static fromMutants(mutants: readonly {
|
|
3580
|
+
readonly status: string;
|
|
3581
|
+
}[]): Metrics;
|
|
3582
|
+
}
|
|
3583
|
+
declare const MetricsSchema: typeof Metrics;
|
|
3584
|
+
interface MetricsResult {
|
|
3585
|
+
readonly name: string;
|
|
3586
|
+
readonly metrics: Metrics;
|
|
3587
|
+
readonly childResults: readonly MetricsResult[];
|
|
3588
|
+
}
|
|
3589
|
+
interface MetricsResultEncoded {
|
|
3590
|
+
readonly name: string;
|
|
3591
|
+
readonly metrics: typeof Metrics.Encoded;
|
|
3592
|
+
readonly childResults: readonly MetricsResultEncoded[];
|
|
3593
|
+
}
|
|
3594
|
+
declare const MetricsResultSchema: S.Codec<MetricsResult, MetricsResultEncoded>;
|
|
3595
|
+
//#endregion
|
|
3596
|
+
//#region src/ReporterEvent.schema.d.ts
|
|
3597
|
+
declare const ReporterEventKind: S.Literals<readonly ["dryRunCompleted", "mutationTestingPlanReady", "mutantTested", "mutationTestReportReady"]>;
|
|
3598
|
+
type ReporterEventKind = typeof ReporterEventKind.Type;
|
|
3599
|
+
declare const RunTimingSchema: S.Struct<{
|
|
3600
|
+
readonly net: S.Finite;
|
|
3601
|
+
readonly overhead: S.Finite;
|
|
3602
|
+
}>;
|
|
3603
|
+
type RunTiming = typeof RunTimingSchema.Type;
|
|
3604
|
+
declare const ReporterPlanKind: S.Literals<readonly ["EarlyResult", "Run"]>;
|
|
3605
|
+
declare const ReporterPlanDescriptorSchema: S.Struct<{
|
|
3606
|
+
readonly mutantId: S.String;
|
|
3607
|
+
readonly plan: S.Literals<readonly ["EarlyResult", "Run"]>;
|
|
3608
|
+
readonly netTime: S.Finite;
|
|
3609
|
+
readonly reloadEnvironment: S.Boolean;
|
|
3610
|
+
}>;
|
|
3611
|
+
type ReporterPlanDescriptor = typeof ReporterPlanDescriptorSchema.Type;
|
|
3612
|
+
declare const DryRunCompleted_base: S.Class<DryRunCompleted, S.TaggedStruct<"dryRunCompleted", {
|
|
3613
|
+
readonly timing: S.Struct<{
|
|
3614
|
+
readonly net: S.Finite;
|
|
3615
|
+
readonly overhead: S.Finite;
|
|
3616
|
+
}>;
|
|
3617
|
+
readonly capabilities: S.Struct<{
|
|
3618
|
+
readonly reloadEnvironment: S.Boolean;
|
|
3619
|
+
}>;
|
|
3620
|
+
readonly testCount: S.Int;
|
|
3621
|
+
readonly tests: S.$Array<S.Union<readonly [S.Struct<{
|
|
3622
|
+
readonly id: S.String;
|
|
3623
|
+
readonly name: S.String;
|
|
3624
|
+
readonly timeSpentMs: S.Finite;
|
|
3625
|
+
readonly fileName: S.optionalKey<S.String>;
|
|
3626
|
+
readonly startPosition: S.optionalKey<S.Struct<{
|
|
3627
|
+
readonly line: S.Int;
|
|
3628
|
+
readonly column: S.Int;
|
|
3629
|
+
}>>;
|
|
3630
|
+
readonly status: S.Literal<"failed">;
|
|
3631
|
+
readonly failureMessage: S.String;
|
|
3632
|
+
}>, S.Struct<{
|
|
3633
|
+
readonly id: S.String;
|
|
3634
|
+
readonly name: S.String;
|
|
3635
|
+
readonly timeSpentMs: S.Finite;
|
|
3636
|
+
readonly fileName: S.optionalKey<S.String>;
|
|
3637
|
+
readonly startPosition: S.optionalKey<S.Struct<{
|
|
3638
|
+
readonly line: S.Int;
|
|
3639
|
+
readonly column: S.Int;
|
|
3640
|
+
}>>;
|
|
3641
|
+
readonly status: S.Literal<"skipped">;
|
|
3642
|
+
}>, S.Struct<{
|
|
3643
|
+
readonly id: S.String;
|
|
3644
|
+
readonly name: S.String;
|
|
3645
|
+
readonly timeSpentMs: S.Finite;
|
|
3646
|
+
readonly fileName: S.optionalKey<S.String>;
|
|
3647
|
+
readonly startPosition: S.optionalKey<S.Struct<{
|
|
3648
|
+
readonly line: S.Int;
|
|
3649
|
+
readonly column: S.Int;
|
|
3650
|
+
}>>;
|
|
3651
|
+
readonly status: S.Literal<"success">;
|
|
3652
|
+
}>]>>;
|
|
3653
|
+
}>, {}>;
|
|
3654
|
+
declare class DryRunCompleted extends DryRunCompleted_base {}
|
|
3655
|
+
declare const MutationTestingPlanReady_base: S.Class<MutationTestingPlanReady, S.TaggedStruct<"mutationTestingPlanReady", {
|
|
3656
|
+
readonly total: S.Int;
|
|
3657
|
+
readonly plans: S.$Array<S.Struct<{
|
|
3658
|
+
readonly mutantId: S.String;
|
|
3659
|
+
readonly plan: S.Literals<readonly ["EarlyResult", "Run"]>;
|
|
3660
|
+
readonly netTime: S.Finite;
|
|
3661
|
+
readonly reloadEnvironment: S.Boolean;
|
|
3662
|
+
}>>;
|
|
3663
|
+
}>, {}>;
|
|
3664
|
+
declare class MutationTestingPlanReady extends MutationTestingPlanReady_base {}
|
|
3665
|
+
declare const MutantTested_base: S.Class<MutantTested, S.TaggedStruct<"mutantTested", {
|
|
3666
|
+
readonly id: S.String;
|
|
3667
|
+
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
3668
|
+
readonly file: S.String;
|
|
3669
|
+
readonly location: S.Struct<{
|
|
3670
|
+
readonly start: S.Struct<{
|
|
3671
|
+
readonly line: S.Int;
|
|
3672
|
+
readonly column: S.Int;
|
|
3673
|
+
}>;
|
|
3674
|
+
readonly end: S.Struct<{
|
|
3675
|
+
readonly line: S.Int;
|
|
3676
|
+
readonly column: S.Int;
|
|
3677
|
+
}>;
|
|
3678
|
+
}>;
|
|
3679
|
+
readonly mutator: S.String;
|
|
3680
|
+
readonly replacement: S.NullOr<S.String>;
|
|
3681
|
+
readonly completed: S.Int;
|
|
3682
|
+
readonly total: S.Int;
|
|
3683
|
+
}>, {}>;
|
|
3684
|
+
declare class MutantTested extends MutantTested_base {}
|
|
3685
|
+
declare const MutationTestReportReady_base: S.Class<MutationTestReportReady, S.TaggedStruct<"mutationTestReportReady", {
|
|
3686
|
+
readonly report: S.Struct<{
|
|
3687
|
+
readonly schemaVersion: S.String;
|
|
3688
|
+
readonly files: S.$Record<S.String, S.Struct<{
|
|
3689
|
+
readonly language: S.String;
|
|
3690
|
+
readonly source: S.String;
|
|
3691
|
+
readonly mutants: S.$Array<S.Struct<{
|
|
3692
|
+
readonly id: S.String;
|
|
3693
|
+
readonly mutatorName: S.String;
|
|
3694
|
+
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
3695
|
+
readonly location: S.Struct<{
|
|
3696
|
+
readonly start: S.Struct<{
|
|
3697
|
+
readonly line: S.Int;
|
|
3698
|
+
readonly column: S.Int;
|
|
3699
|
+
}>;
|
|
3700
|
+
readonly end: S.Struct<{
|
|
3701
|
+
readonly line: S.Int;
|
|
3702
|
+
readonly column: S.Int;
|
|
3703
|
+
}>;
|
|
3704
|
+
}>;
|
|
3705
|
+
readonly replacement: S.optional<S.String>;
|
|
3706
|
+
readonly description: S.optional<S.String>;
|
|
3707
|
+
readonly statusReason: S.optional<S.String>;
|
|
3708
|
+
readonly static: S.optional<S.Boolean>;
|
|
3709
|
+
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
3710
|
+
readonly killedBy: S.optional<S.$Array<S.String>>;
|
|
3711
|
+
readonly testsCompleted: S.optional<S.Int>;
|
|
3712
|
+
readonly duration: S.optional<S.Finite>;
|
|
3713
|
+
}>>;
|
|
3714
|
+
}>>;
|
|
3715
|
+
readonly thresholds: S.decodeTo<S.declare<{
|
|
3716
|
+
readonly high: number;
|
|
3717
|
+
readonly low: number;
|
|
3718
|
+
}, {
|
|
3719
|
+
readonly high: number;
|
|
3720
|
+
readonly low: number;
|
|
3721
|
+
}>, S.Struct<{
|
|
3722
|
+
readonly high: S.Finite;
|
|
3723
|
+
readonly low: S.Finite;
|
|
3724
|
+
}>, never, never>;
|
|
3725
|
+
readonly config: S.optional<S.$Record<S.String, S.Unknown>>;
|
|
3726
|
+
readonly testFiles: S.optional<S.$Record<S.String, S.Struct<{
|
|
3727
|
+
readonly source: S.optional<S.String>;
|
|
3728
|
+
readonly tests: S.$Array<S.Struct<{
|
|
3729
|
+
readonly id: S.String;
|
|
3730
|
+
readonly name: S.String;
|
|
3731
|
+
readonly location: S.optional<S.Struct<{
|
|
3732
|
+
readonly start: S.Struct<{
|
|
3733
|
+
readonly line: S.Int;
|
|
3734
|
+
readonly column: S.Int;
|
|
3735
|
+
}>;
|
|
3736
|
+
readonly end: S.optional<S.Struct<{
|
|
3737
|
+
readonly line: S.Int;
|
|
3738
|
+
readonly column: S.Int;
|
|
3739
|
+
}>>;
|
|
3740
|
+
}>>;
|
|
3741
|
+
}>>;
|
|
3742
|
+
}>>>;
|
|
3743
|
+
readonly projectRoot: S.optional<S.String>;
|
|
3744
|
+
readonly framework: S.optional<S.Struct<{
|
|
3745
|
+
readonly name: S.String;
|
|
3746
|
+
readonly version: S.optional<S.String>;
|
|
3747
|
+
readonly branding: S.optional<S.Struct<{
|
|
3748
|
+
readonly homepageUrl: S.String;
|
|
3749
|
+
readonly imageUrl: S.optional<S.String>;
|
|
3750
|
+
}>>;
|
|
3751
|
+
readonly dependencies: S.optional<S.$Record<S.String, S.String>>;
|
|
3752
|
+
}>>;
|
|
3753
|
+
}>;
|
|
3754
|
+
readonly metrics: S.Codec<MetricsResult, MetricsResultEncoded, never, never>;
|
|
3755
|
+
}>, {}>;
|
|
3756
|
+
declare class MutationTestReportReady extends MutationTestReportReady_base {}
|
|
3757
|
+
declare const ReporterEventUnion: S.Union<readonly [typeof DryRunCompleted, typeof MutationTestingPlanReady, typeof MutantTested, typeof MutationTestReportReady]>;
|
|
3758
|
+
type ReporterEvent = DryRunCompleted | MutationTestingPlanReady | MutantTested | MutationTestReportReady;
|
|
3759
|
+
declare const ReporterEventSchema: StandardSchemaV1<typeof ReporterEventUnion['Encoded'], ReporterEvent>;
|
|
3760
|
+
interface ReporterInit {
|
|
3761
|
+
readonly traceparent?: string | undefined;
|
|
3762
|
+
readonly tracestate?: string | undefined;
|
|
3763
|
+
}
|
|
3764
|
+
type ReporterFactory = (options: StrykerOptions, init: ReporterInit) => (events: AsyncIterable<ReporterEvent>) => Effect$1.Effect<void, ReporterFailed>;
|
|
3765
|
+
declare const ReporterFailed_base: S.Class<ReporterFailed, S.TaggedStruct<"ReporterFailed", {
|
|
3766
|
+
readonly cause: S.String;
|
|
3767
|
+
readonly event: S.Literals<readonly ["dryRunCompleted", "mutationTestingPlanReady", "mutantTested", "mutationTestReportReady"]>;
|
|
3768
|
+
readonly reporterName: S.String;
|
|
3769
|
+
}>, import("effect/Cause").YieldableError>;
|
|
3770
|
+
declare class ReporterFailed extends ReporterFailed_base {}
|
|
3771
|
+
//#endregion
|
|
3772
|
+
//#region src/TestRunner.schema.d.ts
|
|
3773
|
+
declare const DryRunStatus: S.Literals<readonly ["complete", "error", "timeout"]>;
|
|
3774
|
+
type DryRunStatus = typeof DryRunStatus.Type;
|
|
3775
|
+
declare const TestStatus: S.Literals<readonly ["success", "failed", "skipped"]>;
|
|
3776
|
+
type TestStatus = typeof TestStatus.Type;
|
|
3777
|
+
declare const MutantRunStatus: S.Literals<readonly ["killed", "survived", "timeout", "error"]>;
|
|
3778
|
+
type MutantRunStatus = typeof MutantRunStatus.Type;
|
|
3779
|
+
declare const TestResultSchema: S.Union<readonly [S.Struct<{
|
|
3780
|
+
readonly id: S.String;
|
|
3781
|
+
readonly name: S.String;
|
|
3782
|
+
readonly timeSpentMs: S.Finite;
|
|
3783
|
+
readonly fileName: S.optionalKey<S.String>;
|
|
3784
|
+
readonly startPosition: S.optionalKey<S.Struct<{
|
|
3785
|
+
readonly line: S.Int;
|
|
3786
|
+
readonly column: S.Int;
|
|
3787
|
+
}>>;
|
|
3788
|
+
readonly status: S.Literal<"failed">;
|
|
3789
|
+
readonly failureMessage: S.String;
|
|
3790
|
+
}>, S.Struct<{
|
|
3791
|
+
readonly id: S.String;
|
|
3792
|
+
readonly name: S.String;
|
|
3793
|
+
readonly timeSpentMs: S.Finite;
|
|
3794
|
+
readonly fileName: S.optionalKey<S.String>;
|
|
3795
|
+
readonly startPosition: S.optionalKey<S.Struct<{
|
|
3796
|
+
readonly line: S.Int;
|
|
3797
|
+
readonly column: S.Int;
|
|
3798
|
+
}>>;
|
|
3799
|
+
readonly status: S.Literal<"skipped">;
|
|
3800
|
+
}>, S.Struct<{
|
|
3801
|
+
readonly id: S.String;
|
|
3802
|
+
readonly name: S.String;
|
|
3803
|
+
readonly timeSpentMs: S.Finite;
|
|
3804
|
+
readonly fileName: S.optionalKey<S.String>;
|
|
3805
|
+
readonly startPosition: S.optionalKey<S.Struct<{
|
|
3806
|
+
readonly line: S.Int;
|
|
3807
|
+
readonly column: S.Int;
|
|
3808
|
+
}>>;
|
|
3809
|
+
readonly status: S.Literal<"success">;
|
|
3810
|
+
}>]>;
|
|
3811
|
+
declare const MutantCoverageSchema: S.Struct<{
|
|
3812
|
+
readonly perTest: S.$Record<S.String, S.$Record<S.String, S.Finite>>;
|
|
3813
|
+
readonly static: S.$Record<S.String, S.Finite>;
|
|
3814
|
+
}>;
|
|
3815
|
+
declare const DryRunResultSchema: S.Union<readonly [S.Struct<{
|
|
3816
|
+
readonly status: S.Literal<"complete">;
|
|
3817
|
+
readonly tests: S.$Array<S.Union<readonly [S.Struct<{
|
|
3818
|
+
readonly id: S.String;
|
|
3819
|
+
readonly name: S.String;
|
|
3820
|
+
readonly timeSpentMs: S.Finite;
|
|
3821
|
+
readonly fileName: S.optionalKey<S.String>;
|
|
3822
|
+
readonly startPosition: S.optionalKey<S.Struct<{
|
|
3823
|
+
readonly line: S.Int;
|
|
3824
|
+
readonly column: S.Int;
|
|
3825
|
+
}>>;
|
|
3826
|
+
readonly status: S.Literal<"failed">;
|
|
3827
|
+
readonly failureMessage: S.String;
|
|
3828
|
+
}>, S.Struct<{
|
|
3829
|
+
readonly id: S.String;
|
|
3830
|
+
readonly name: S.String;
|
|
3831
|
+
readonly timeSpentMs: S.Finite;
|
|
3832
|
+
readonly fileName: S.optionalKey<S.String>;
|
|
3833
|
+
readonly startPosition: S.optionalKey<S.Struct<{
|
|
3834
|
+
readonly line: S.Int;
|
|
3835
|
+
readonly column: S.Int;
|
|
3836
|
+
}>>;
|
|
3837
|
+
readonly status: S.Literal<"skipped">;
|
|
3838
|
+
}>, S.Struct<{
|
|
3839
|
+
readonly id: S.String;
|
|
3840
|
+
readonly name: S.String;
|
|
3841
|
+
readonly timeSpentMs: S.Finite;
|
|
3842
|
+
readonly fileName: S.optionalKey<S.String>;
|
|
3843
|
+
readonly startPosition: S.optionalKey<S.Struct<{
|
|
3844
|
+
readonly line: S.Int;
|
|
3845
|
+
readonly column: S.Int;
|
|
3846
|
+
}>>;
|
|
3847
|
+
readonly status: S.Literal<"success">;
|
|
3848
|
+
}>]>>;
|
|
3849
|
+
readonly mutantCoverage: S.optionalKey<S.Struct<{
|
|
3850
|
+
readonly perTest: S.$Record<S.String, S.$Record<S.String, S.Finite>>;
|
|
3851
|
+
readonly static: S.$Record<S.String, S.Finite>;
|
|
3852
|
+
}>>;
|
|
3853
|
+
}>, S.Struct<{
|
|
3854
|
+
readonly status: S.Literal<"timeout">;
|
|
3855
|
+
readonly reason: S.optionalKey<S.String>;
|
|
3856
|
+
}>, S.Struct<{
|
|
3857
|
+
readonly status: S.Literal<"error">;
|
|
3858
|
+
readonly errorMessage: S.String;
|
|
3859
|
+
}>]>;
|
|
3860
|
+
declare const MutantRunResultSchema: S.Union<readonly [S.Struct<{
|
|
3861
|
+
readonly status: S.Literal<"killed">;
|
|
3862
|
+
readonly killedBy: S.$Array<S.String>;
|
|
3863
|
+
readonly failureMessage: S.String;
|
|
3864
|
+
readonly nrOfTests: S.Finite;
|
|
3865
|
+
}>, S.Struct<{
|
|
3866
|
+
readonly status: S.Literal<"survived">;
|
|
3867
|
+
readonly nrOfTests: S.Finite;
|
|
3868
|
+
}>, S.Struct<{
|
|
3869
|
+
readonly status: S.Literal<"timeout">;
|
|
3870
|
+
readonly reason: S.optionalKey<S.String>;
|
|
3871
|
+
}>, S.Struct<{
|
|
3872
|
+
readonly status: S.Literal<"error">;
|
|
3873
|
+
readonly errorMessage: S.String;
|
|
3874
|
+
}>]>;
|
|
3875
|
+
declare const CoverageAnalysisSchema: S.Literals<readonly ["off", "all", "perTest"]>;
|
|
3876
|
+
declare const DryRunOptionsSchema: S.Struct<{
|
|
3877
|
+
readonly timeout: S.Finite;
|
|
3878
|
+
readonly disableBail: S.Boolean;
|
|
3879
|
+
readonly coverageAnalysis: S.Literals<readonly ["off", "all", "perTest"]>;
|
|
3880
|
+
readonly files: S.optionalKey<S.$Array<S.String>>;
|
|
3881
|
+
readonly testFiles: S.optionalKey<S.$Array<S.String>>;
|
|
3882
|
+
}>;
|
|
3883
|
+
declare const TestRunnerCapabilitiesSchema: S.Struct<{
|
|
3884
|
+
readonly reloadEnvironment: S.Boolean;
|
|
3885
|
+
}>;
|
|
3886
|
+
declare const TestRunnerFailed_base: S.Class<TestRunnerFailed, S.TaggedStruct<"TestRunnerFailed", {
|
|
3887
|
+
readonly cause: S.String;
|
|
3888
|
+
readonly phase: S.Literals<readonly ["capabilities", "dispose", "dryRun", "init", "mutantRun"]>;
|
|
3889
|
+
readonly runnerName: S.String;
|
|
3890
|
+
}>, import("effect/Cause").YieldableError>;
|
|
3891
|
+
declare class TestRunnerFailed extends TestRunnerFailed_base {}
|
|
3892
|
+
interface BaseTestResult {
|
|
3893
|
+
readonly id: string;
|
|
3894
|
+
readonly name: string;
|
|
3895
|
+
readonly timeSpentMs: number;
|
|
3896
|
+
readonly fileName?: string;
|
|
3897
|
+
readonly startPosition?: mod_d_exports$3$1.Position;
|
|
3898
|
+
}
|
|
3899
|
+
interface FailedTestResult extends BaseTestResult {
|
|
3900
|
+
readonly status: 'failed';
|
|
3901
|
+
readonly failureMessage: string;
|
|
3902
|
+
}
|
|
3903
|
+
interface SkippedTestResult extends BaseTestResult {
|
|
3904
|
+
readonly status: 'skipped';
|
|
3905
|
+
}
|
|
3906
|
+
interface SuccessTestResult extends BaseTestResult {
|
|
3907
|
+
readonly status: 'success';
|
|
3908
|
+
}
|
|
3909
|
+
type TestResult = FailedTestResult | SkippedTestResult | SuccessTestResult;
|
|
3910
|
+
interface CompleteDryRunResult {
|
|
3911
|
+
readonly tests: readonly TestResult[];
|
|
3912
|
+
readonly mutantCoverage?: mod_d_exports$3$1.MutantCoverage;
|
|
3913
|
+
readonly status: 'complete';
|
|
3914
|
+
}
|
|
3915
|
+
interface TimeoutDryRunResult {
|
|
3916
|
+
readonly status: 'timeout';
|
|
3917
|
+
readonly reason?: string;
|
|
3918
|
+
}
|
|
3919
|
+
interface ErrorDryRunResult {
|
|
3920
|
+
readonly status: 'error';
|
|
3921
|
+
readonly errorMessage: string;
|
|
3922
|
+
}
|
|
3923
|
+
type DryRunResult = CompleteDryRunResult | ErrorDryRunResult | TimeoutDryRunResult;
|
|
3924
|
+
interface TimeoutMutantRunResult {
|
|
3925
|
+
readonly status: 'timeout';
|
|
3926
|
+
readonly reason?: string;
|
|
3927
|
+
}
|
|
3928
|
+
interface KilledMutantRunResult {
|
|
3929
|
+
readonly status: 'killed';
|
|
3930
|
+
readonly killedBy: readonly string[];
|
|
3931
|
+
readonly failureMessage: string;
|
|
3932
|
+
readonly nrOfTests: number;
|
|
3933
|
+
}
|
|
3934
|
+
interface SurvivedMutantRunResult {
|
|
3935
|
+
readonly status: 'survived';
|
|
3936
|
+
readonly nrOfTests: number;
|
|
3937
|
+
}
|
|
3938
|
+
interface ErrorMutantRunResult {
|
|
3939
|
+
readonly status: 'error';
|
|
3940
|
+
readonly errorMessage: string;
|
|
3941
|
+
}
|
|
3942
|
+
type MutantRunResult = ErrorMutantRunResult | KilledMutantRunResult | SurvivedMutantRunResult | TimeoutMutantRunResult;
|
|
3943
|
+
type CoverageAnalysis = 'off' | 'all' | 'perTest';
|
|
3944
|
+
interface DryRunOptions extends mod_d_exports$3$1.RunOptions {
|
|
3945
|
+
readonly coverageAnalysis: CoverageAnalysis;
|
|
3946
|
+
readonly files?: readonly string[];
|
|
3947
|
+
readonly testFiles?: readonly string[];
|
|
3948
|
+
}
|
|
3949
|
+
interface TestRunnerCapabilities {
|
|
3950
|
+
readonly reloadEnvironment: boolean;
|
|
3951
|
+
}
|
|
3952
|
+
//#endregion
|
|
3953
|
+
//#region src/Plugin.schema.d.ts
|
|
3954
|
+
declare const WorkerPluginKind: S.Literals<readonly ["TestRunner", "Checker", "Reporter"]>;
|
|
3955
|
+
type WorkerPluginKind = typeof WorkerPluginKind.Type;
|
|
3956
|
+
declare const TestRunnerDryRunRequest: S.Struct<{
|
|
3957
|
+
readonly options: S.Struct<{
|
|
3958
|
+
readonly timeout: S.Finite;
|
|
3959
|
+
readonly disableBail: S.Boolean;
|
|
3960
|
+
readonly coverageAnalysis: S.Literals<readonly ["off", "all", "perTest"]>;
|
|
3961
|
+
readonly files: S.optionalKey<S.$Array<S.String>>;
|
|
3962
|
+
readonly testFiles: S.optionalKey<S.$Array<S.String>>;
|
|
3963
|
+
}>;
|
|
3964
|
+
}>;
|
|
3965
|
+
type TestRunnerDryRunRequest = typeof TestRunnerDryRunRequest.Type;
|
|
3966
|
+
declare const TestRunnerMutantRunRequest: S.Struct<{
|
|
3967
|
+
readonly options: S.Struct<{
|
|
3968
|
+
readonly timeout: S.Finite;
|
|
3969
|
+
readonly disableBail: S.Boolean;
|
|
3970
|
+
readonly activeMutant: typeof mod_d_exports$3$1.Mutant;
|
|
3971
|
+
readonly sandboxFileName: S.String;
|
|
3972
|
+
readonly mutantActivation: S.Literals<readonly ["runtime", "static"]>;
|
|
3973
|
+
readonly reloadEnvironment: S.Boolean;
|
|
3974
|
+
readonly testFilter: S.optionalKey<S.$Array<S.String>>;
|
|
3975
|
+
readonly hitLimit: S.optionalKey<S.Int>;
|
|
3976
|
+
}>;
|
|
3977
|
+
}>;
|
|
3978
|
+
type TestRunnerMutantRunRequest = typeof TestRunnerMutantRunRequest.Type;
|
|
3979
|
+
declare const CheckerRequest: S.Struct<{
|
|
3980
|
+
readonly checkerName: S.String;
|
|
3981
|
+
readonly mutants: S.$Array<S.Struct<{
|
|
3982
|
+
readonly id: S.brand<S.NonEmptyString, "MutantId">;
|
|
3983
|
+
readonly fileName: S.decodeTo<S.brand<S.String, "CanonicalFileName">, S.String, never, never>;
|
|
3984
|
+
readonly mutatorName: S.brand<S.NonEmptyString, "MutatorName">;
|
|
3985
|
+
readonly replacement: S.String;
|
|
3986
|
+
readonly location: S.Struct<{
|
|
3987
|
+
readonly start: S.Struct<{
|
|
3988
|
+
readonly line: S.Int;
|
|
3989
|
+
readonly column: S.Int;
|
|
3990
|
+
}>;
|
|
3991
|
+
readonly end: S.Struct<{
|
|
3992
|
+
readonly line: S.Int;
|
|
3993
|
+
readonly column: S.Int;
|
|
3994
|
+
}>;
|
|
3995
|
+
}>;
|
|
3996
|
+
}>>;
|
|
3997
|
+
}>;
|
|
3998
|
+
type CheckerRequest = typeof CheckerRequest.Type;
|
|
3999
|
+
declare const CheckerCheckResult: S.$Record<S.String, S.Union<readonly [S.Struct<{
|
|
4000
|
+
readonly status: S.Literal<"passed">;
|
|
4001
|
+
}>, S.Struct<{
|
|
4002
|
+
readonly status: S.Literal<"compileError">;
|
|
4003
|
+
readonly reason: S.String;
|
|
4004
|
+
}>]>>;
|
|
4005
|
+
declare const CheckerGroupResult: S.$Array<S.$Array<S.String>>;
|
|
4006
|
+
declare const ReporterInitOptions: S.Struct<{
|
|
4007
|
+
readonly traceparent: S.optionalKey<S.String>;
|
|
4008
|
+
readonly tracestate: S.optionalKey<S.String>;
|
|
4009
|
+
}>;
|
|
4010
|
+
type ReporterInitOptions = typeof ReporterInitOptions.Type;
|
|
4011
|
+
declare const ReporterEventBatch: S.$Array<S.Union<readonly [typeof DryRunCompleted, typeof MutationTestingPlanReady, typeof MutantTested, typeof MutationTestReportReady]>>;
|
|
4012
|
+
type ReporterEventBatch = typeof ReporterEventBatch.Type;
|
|
4013
|
+
declare const ReporterAck: S.Void;
|
|
4014
|
+
declare const ReporterDrained: S.Void;
|
|
4015
|
+
declare const BoundaryPayloadRejected_base: S.Class<BoundaryPayloadRejected, S.TaggedStruct<"BoundaryPayloadRejected", {
|
|
4016
|
+
readonly pluginName: S.String;
|
|
4017
|
+
readonly method: S.String;
|
|
4018
|
+
readonly cause: S.String;
|
|
4019
|
+
}>, import("effect/Cause").YieldableError>;
|
|
4020
|
+
declare class BoundaryPayloadRejected extends BoundaryPayloadRejected_base {}
|
|
4021
|
+
declare const BoundaryUnrecognizedSignal_base: S.Class<BoundaryUnrecognizedSignal, S.TaggedStruct<"BoundaryUnrecognizedSignal", {
|
|
4022
|
+
readonly pluginName: S.String;
|
|
4023
|
+
readonly method: S.String;
|
|
4024
|
+
readonly signal: S.String;
|
|
4025
|
+
}>, import("effect/Cause").YieldableError>;
|
|
4026
|
+
declare class BoundaryUnrecognizedSignal extends BoundaryUnrecognizedSignal_base {}
|
|
4027
|
+
declare const BoundaryErrorSchema: S.Union<readonly [typeof BoundaryPayloadRejected, typeof BoundaryUnrecognizedSignal, typeof TestRunnerFailed, typeof CheckerFailed, typeof ReporterFailed]>;
|
|
4028
|
+
type BoundaryError = typeof BoundaryErrorSchema.Type;
|
|
4029
|
+
declare const WorkerEntryUrl: S.String;
|
|
4030
|
+
type WorkerEntryUrl = typeof WorkerEntryUrl.Type;
|
|
4031
|
+
declare const WorkerPluginSpawnSchema: S.Struct<{
|
|
4032
|
+
readonly kind: S.Literals<readonly ["TestRunner", "Checker", "Reporter"]>;
|
|
4033
|
+
readonly entrypoint: S.String;
|
|
4034
|
+
}>;
|
|
4035
|
+
type WorkerPluginSpawn = typeof WorkerPluginSpawnSchema.Type;
|
|
4036
|
+
//#endregion
|
|
4037
|
+
//#region src/TraceContextRpc.service.d.ts
|
|
4038
|
+
declare const PropagatedTrace_base: Context.ServiceClass<PropagatedTrace, "@systemfsoftware/stryker-js-plugin-interface/TraceContextRpc.service/PropagatedTrace", Option$1.Option<{
|
|
4039
|
+
readonly version: string;
|
|
4040
|
+
readonly traceId: string;
|
|
4041
|
+
readonly spanId: string;
|
|
4042
|
+
readonly traceFlags: number;
|
|
4043
|
+
readonly traceState?: string | undefined;
|
|
4044
|
+
}>>;
|
|
4045
|
+
declare class PropagatedTrace extends PropagatedTrace_base {}
|
|
4046
|
+
declare const TraceContextMiddleware_base: RpcMiddleware.ServiceClass<TraceContextMiddleware, "@systemfsoftware/stryker-js-plugin-interface/TraceContextMiddleware", typeof PropagatedTrace, Schema.Never, never, never, true>;
|
|
4047
|
+
declare class TraceContextMiddleware extends TraceContextMiddleware_base {}
|
|
4048
|
+
type TracedRpc<Tag extends string, Payload extends Schema.Top = Schema.Void, Success extends Schema.Top = Schema.Void, Error extends Schema.Top = Schema.Never> = Rpc.Rpc<Tag, Payload, Success, Error, typeof TraceContextMiddleware, RpcMiddleware.ApplyServices<typeof TraceContextMiddleware['Identifier'], never>>;
|
|
4049
|
+
//#endregion
|
|
4050
|
+
//#region src/PluginRpcs.service.d.ts
|
|
4051
|
+
declare const TestRunnerRpcs: RpcGroup.RpcGroup<TracedRpc<'capabilities', Schema.Void, typeof TestRunnerCapabilitiesSchema, typeof TestRunnerFailed> | TracedRpc<'dryRun', typeof TestRunnerDryRunRequest, typeof DryRunResultSchema, typeof TestRunnerFailed> | TracedRpc<'mutantRun', typeof TestRunnerMutantRunRequest, typeof MutantRunResultSchema, typeof TestRunnerFailed>>;
|
|
4052
|
+
declare const CheckerRpcs: RpcGroup.RpcGroup<TracedRpc<'check', typeof CheckerRequest, typeof CheckerCheckResult, typeof CheckerFailed> | TracedRpc<'group', typeof CheckerRequest, typeof CheckerGroupResult, typeof CheckerFailed>>;
|
|
4053
|
+
declare const ReporterRpcs: RpcGroup.RpcGroup<TracedRpc<'init', typeof ReporterInitOptions, typeof ReporterAck, typeof ReporterFailed> | TracedRpc<'onEventBatch', typeof ReporterEventBatch, typeof ReporterAck, typeof ReporterFailed> | TracedRpc<'flush', Schema.Void, typeof ReporterDrained, typeof ReporterFailed>>;
|
|
4054
|
+
declare namespace mod_d_exports$3 {
|
|
4055
|
+
export { BoundaryError, BoundaryErrorSchema, BoundaryPayloadRejected, BoundaryUnrecognizedSignal, CheckerCheckResult, CheckerGroupResult, CheckerRequest, CheckerRpcs, ExitClass, ExitCodeFromClass, ReporterAck, ReporterDrained, ReporterEventBatch, ReporterInitOptions, ReporterRpcs, TestRunnerDryRunRequest, TestRunnerMutantRunRequest, TestRunnerRpcs, WorkerEntryUrl, WorkerPluginKind, WorkerPluginSpawn, WorkerPluginSpawnSchema };
|
|
4056
|
+
}
|
|
4057
|
+
declare namespace mod_d_exports$4 {
|
|
4058
|
+
export { BrandingInformation, BrandingInformationSchema, Dependencies, DependenciesSchema, DetectedStatus, FileResult, FileResultDictionary, FileResultDictionarySchema, FileResultSchema, FrameworkInformation, FrameworkInformationSchema, InvalidStatus, Metrics, MetricsResult, MetricsResultEncoded, MetricsResultSchema, MetricsSchema, MutantResult, MutantResultSchema, MutationTestResult, MutationTestResultSchema, NonNegativeFinite, NonNegativeInt, Percentage, TestDefinition, TestDefinitionSchema, TestFile, TestFileDefinitionDictionary, TestFileDefinitionDictionarySchema, TestFileSchema, Thresholds, ThresholdsSchema, UndetectedStatus, UntestedStatus };
|
|
4059
|
+
}
|
|
4060
|
+
declare namespace mod_d_exports$5 {
|
|
4061
|
+
export { DryRunCompleted, MutantTested, MutationTestReportReady, MutationTestingPlanReady, ReporterEvent, ReporterEventKind, ReporterEventSchema, ReporterEventUnion, ReporterFactory, ReporterFailed, ReporterInit, ReporterPlanDescriptor, ReporterPlanDescriptorSchema, ReporterPlanKind, RunTiming, RunTimingSchema };
|
|
4062
|
+
}
|
|
4063
|
+
//#endregion
|
|
4064
|
+
//#region src/mutant-timeout-reason.schema.d.ts
|
|
4065
|
+
declare const HitLimitReasonPrefix: S.Literal<"Hit limit reached">;
|
|
4066
|
+
declare const WallClockTimeoutReason: S.Literal<"wall-clock-timeout">;
|
|
4067
|
+
declare const HitLimitReasonText: S.String;
|
|
4068
|
+
declare const HitLimitReason: S.decodeTo<S.Struct<{
|
|
4069
|
+
readonly count: S.Natural;
|
|
4070
|
+
readonly limit: S.Natural;
|
|
4071
|
+
}>, S.String, never, never>;
|
|
4072
|
+
//#endregion
|
|
4073
|
+
//#region src/TestRunner.service.d.ts
|
|
4074
|
+
interface TestRunnerService {
|
|
4075
|
+
readonly capabilities: Effect$1.Effect<TestRunnerCapabilities, TestRunnerFailed>;
|
|
4076
|
+
readonly init: Effect$1.Effect<void, TestRunnerFailed>;
|
|
4077
|
+
readonly dryRun: (options: DryRunOptions) => Effect$1.Effect<DryRunResult, TestRunnerFailed>;
|
|
4078
|
+
readonly mutantRun: (options: mod_d_exports$3$1.MutantRunOptions) => Effect$1.Effect<MutantRunResult, TestRunnerFailed>;
|
|
4079
|
+
readonly dispose: Effect$1.Effect<void, TestRunnerFailed>;
|
|
4080
|
+
}
|
|
4081
|
+
declare const TestRunner_base: Context.ServiceClass<TestRunner, "@systemfsoftware/stryker-js-plugin-interface/TestRunner.service/TestRunner", TestRunnerService>;
|
|
4082
|
+
declare class TestRunner extends TestRunner_base {}
|
|
4083
|
+
declare namespace mod_d_exports$6 {
|
|
4084
|
+
export { BaseTestResult, CompleteDryRunResult, CoverageAnalysis, CoverageAnalysisSchema, DryRunOptions, DryRunOptionsSchema, DryRunResult, DryRunResultSchema, DryRunStatus, ErrorDryRunResult, ErrorMutantRunResult, FailedTestResult, HitLimitReason, HitLimitReasonPrefix, HitLimitReasonText, KilledMutantRunResult, MutantCoverageSchema, MutantRunResult, MutantRunResultSchema, MutantRunStatus, SkippedTestResult, SuccessTestResult, SurvivedMutantRunResult, TestResult, TestResultSchema, TestRunner, TestRunnerCapabilities, TestRunnerCapabilitiesSchema, TestRunnerFailed, TestRunnerService, TestStatus, TimeoutDryRunResult, TimeoutMutantRunResult, WallClockTimeoutReason };
|
|
4085
|
+
}
|
|
4086
|
+
//#endregion
|
|
4087
|
+
export { mod_d_exports$5 as a, mod_d_exports$2$1 as c, Ignorer$1 as d, Node_2$1 as f, mod_d_exports$4 as i, mod_d_exports$3$1 as l, mod_d_exports$2 as n, mod_d_exports$6 as o, mod_d_exports$3 as r, mod_d_exports$1 as s, mod_d_exports as t, Framework as u };
|