@systemfsoftware/stryker-js 10.2.0 → 12.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.
@@ -1,1758 +0,0 @@
1
- import { B as ReporterFactory, Ct as RunMutantResult, K as StrykerOptions, P as PartialStrykerOptions, W as ReporterRpcs, X as TestResult, _ as ExitClass, at as WorkerPluginKind, ct as FileDescription, ft as Mutant, j as MutationTestResult, l as CompleteDryRunResult, lt as FileDescriptions, st as CoverageData, yt as MutateDescription } from "./index-tt2EziOT.mjs";
2
- import { r as ResolvedMode } from "./output-mode-CfGHDpi5.mjs";
3
- import { _ as RunStarted, c as PhaseEntered, i as HelpRendered, l as PlanKnown, m as RunMutantTested, p as RunFailed, r as Heartbeat, x as VerdictReached } from "./Run.schema-B-Pi3bCB.mjs";
4
- import * as Effect$1 from "effect/Effect";
5
- import * as FileSystem from "effect/FileSystem";
6
- import * as Path from "effect/Path";
7
- import * as Stdio from "effect/Stdio";
8
- import * as Context from "effect/Context";
9
- import * as Layer from "effect/Layer";
10
- import "effect/Option";
11
- import * as Queue from "effect/Queue";
12
- import "effect/Result";
13
- import * as S from "effect/Schema";
14
- import { Cell } from "@systemfsoftware/effect-cell-types";
15
- import { Schema } from "effect";
16
- import * as Rpc from "effect/unstable/rpc/Rpc";
17
- import * as RpcGroup from "effect/unstable/rpc/RpcGroup";
18
- import * as Scope from "effect/Scope";
19
- import * as EffectDuration from "effect/Duration";
20
- import * as MutableHashMap from "effect/MutableHashMap";
21
- import * as ChildProcessSpawner from "effect/unstable/process/ChildProcessSpawner";
22
- import * as MutableHashSet from "effect/MutableHashSet";
23
- import * as HashMap from "effect/HashMap";
24
- import * as Cause from "effect/Cause";
25
- import * as RpcClient from "effect/unstable/rpc/RpcClient";
26
- import * as Schedule from "effect/Schedule";
27
- import { PlatformError } from "effect/PlatformError";
28
- import { RpcClientError } from "effect/unstable/rpc/RpcClientError";
29
- import * as Socket from "effect/unstable/socket/Socket";
30
- //#region src/RunEvents.d.ts
31
- declare const RunEvents_base: Context.ServiceClass<RunEvents, "@systemfsoftware/stryker-js/RunEvents", Queue.Queue<Heartbeat | HelpRendered | PhaseEntered | PlanKnown | RunFailed | RunMutantTested | RunStarted | VerdictReached, Cause.Done<void>>>;
32
- declare class RunEvents extends RunEvents_base {}
33
- interface RunIdentityShape {
34
- readonly runId: string;
35
- readonly basePath: string;
36
- }
37
- declare const RunIdentity_base: Context.ServiceClass<RunIdentity, "@systemfsoftware/stryker-js/RunEvents/RunIdentity", RunIdentityShape>;
38
- declare class RunIdentity extends RunIdentity_base {}
39
- //#endregion
40
- //#region src/Mutants.d.ts
41
- interface TestCoverage {
42
- readonly testsByMutantId: MutableHashMap.MutableHashMap<string, MutableHashSet.MutableHashSet<TestResult>>;
43
- readonly testsById: MutableHashMap.MutableHashMap<string, TestResult>;
44
- readonly staticCoverage: CoverageData | undefined;
45
- readonly hitsByMutantId: MutableHashMap.MutableHashMap<string, number>;
46
- }
47
- //#endregion
48
- //#region src/Worker.schema.d.ts
49
- declare const ChildProcessCrashedError_base: Schema.Class<ChildProcessCrashedError, Schema.TaggedStruct<"ChildProcessCrashedError", {
50
- readonly pid: Schema.Int;
51
- readonly exit: Schema.Union<readonly [Schema.Struct<{
52
- readonly _tag: Schema.Literals<readonly ["Code"]>;
53
- readonly code: Schema.Int;
54
- }>, Schema.Struct<{
55
- readonly _tag: Schema.Literals<readonly ["Signal"]>;
56
- readonly signal: Schema.String;
57
- }>]>;
58
- readonly cause: Schema.optional<Schema.String>;
59
- }>, import("effect/Cause").YieldableError>;
60
- /**
61
- * The child process hosting a worker ended when it was not supposed to.
62
- */
63
- declare class ChildProcessCrashedError extends ChildProcessCrashedError_base {
64
- readonly exitClass: 'InternalError';
65
- }
66
- declare const OutOfMemoryError_base: Schema.Class<OutOfMemoryError, Schema.TaggedStruct<"OutOfMemoryError", {
67
- readonly pid: Schema.Int;
68
- readonly exitCode: Schema.Int;
69
- }>, import("effect/Cause").YieldableError>;
70
- declare class OutOfMemoryError extends OutOfMemoryError_base {
71
- readonly exitClass: 'RuntimeError';
72
- }
73
- declare const WorkerBootTimeoutError_base: Schema.Class<WorkerBootTimeoutError, Schema.TaggedStruct<"WorkerBootTimeoutError", {
74
- readonly pid: Schema.Int;
75
- }>, import("effect/Cause").YieldableError>;
76
- declare class WorkerBootTimeoutError extends WorkerBootTimeoutError_base {
77
- readonly exitClass: 'InternalError';
78
- }
79
- //#endregion
80
- //#region src/Worker.d.ts
81
- interface IdGeneratorShape {
82
- readonly next: Effect$1.Effect<number>;
83
- }
84
- declare const IdGenerator_base: Context.ServiceClass<IdGenerator, "@systemfsoftware/stryker-js/Worker/IdGenerator", IdGeneratorShape>;
85
- declare class IdGenerator extends IdGenerator_base {}
86
- declare const classifyWorkerExit: (pid: number, exitCode: number) => ChildProcessCrashedError | OutOfMemoryError;
87
- //#endregion
88
- //#region src/WorkerLauncher.d.ts
89
- declare const connectRetry: Schedule.Schedule<import("effect/Duration").Duration, unknown, never, never>;
90
- type WorkerExit = ChildProcessCrashedError | OutOfMemoryError;
91
- interface SpawnedSocketWorker {
92
- readonly pid: number;
93
- readonly clientLayer: Layer.Layer<RpcClient.Protocol, Socket.SocketError>;
94
- readonly exited: Effect$1.Effect<never, WorkerExit>;
95
- }
96
- interface WorkerSpawnParams {
97
- readonly entrypoint: string;
98
- readonly workingDirectory: string;
99
- readonly execArgv: readonly string[];
100
- readonly optionsJson: string;
101
- readonly tempDirPrefix: string;
102
- readonly env?: Readonly<Record<string, string>> | undefined;
103
- }
104
- interface WorkerLauncherShape {
105
- readonly spawn: (params: WorkerSpawnParams) => Effect$1.Effect<SpawnedSocketWorker, ChildProcessCrashedError, Scope.Scope>;
106
- }
107
- declare const WorkerLauncher_base: Context.ServiceClass<WorkerLauncher, "@systemfsoftware/stryker-js/WorkerLauncher", WorkerLauncherShape>;
108
- declare class WorkerLauncher extends WorkerLauncher_base {}
109
- type WorkerBootError = WorkerExit | WorkerBootTimeoutError;
110
- interface WorkerClientParams<Rpcs extends Rpc.Any> extends WorkerSpawnParams {
111
- readonly rpcs: RpcGroup.RpcGroup<Rpcs>;
112
- }
113
- declare const makeWorkerClient: <Rpcs extends Rpc.Any>(params: WorkerClientParams<Rpcs>) => Effect$1.Effect<RpcClient.RpcClient<Rpcs, RpcClientError>, WorkerBootError, Scope.Scope | WorkerLauncher>;
114
- //#endregion
115
- //#region ../ignorers/interface/dist/index.d.ts
116
- declare interface AccessorProperty$1 extends Span$1 {
117
- type: AccessorPropertyType;
118
- decorators: Array<Decorator$1>;
119
- key: PropertyKey_2;
120
- typeAnnotation?: TSTypeAnnotation$1 | null;
121
- value: Expression$1 | null;
122
- computed: boolean;
123
- static: boolean;
124
- override?: boolean;
125
- definite?: boolean;
126
- accessibility?: TSAccessibility | null;
127
- declare?: false;
128
- optional?: false;
129
- readonly?: false;
130
- parent?: Node$1;
131
- }
132
- declare type AccessorPropertyType = "AccessorProperty" | "TSAbstractAccessorProperty";
133
- declare type Argument$1 = SpreadElement$1 | Expression$1;
134
- declare interface ArrayAssignmentTarget extends Span$1 {
135
- type: "ArrayPattern";
136
- decorators?: [];
137
- elements: Array<AssignmentTargetMaybeDefault | AssignmentTargetRest | null>;
138
- optional?: false;
139
- typeAnnotation?: null;
140
- parent?: Node$1;
141
- }
142
- declare interface ArrayExpression$1 extends Span$1 {
143
- type: "ArrayExpression";
144
- elements: Array<ArrayExpressionElement>;
145
- parent?: Node$1;
146
- }
147
- declare type ArrayExpressionElement = SpreadElement$1 | null | Expression$1;
148
- declare interface ArrayPattern$1 extends Span$1 {
149
- type: "ArrayPattern";
150
- decorators?: [];
151
- elements: Array<BindingPattern$1 | BindingRestElement$1 | null>;
152
- optional?: false;
153
- typeAnnotation?: TSTypeAnnotation$1 | null;
154
- parent?: Node$1;
155
- }
156
- declare interface ArrowFunctionExpression$1 extends Span$1 {
157
- type: "ArrowFunctionExpression";
158
- expression: boolean;
159
- async: boolean;
160
- typeParameters?: TSTypeParameterDeclaration$1 | null;
161
- params: ParamPattern$1[];
162
- returnType?: TSTypeAnnotation$1 | null;
163
- body: FunctionBody | Expression$1;
164
- id: null;
165
- generator: false;
166
- parent?: Node$1;
167
- }
168
- declare interface AssignmentExpression$1 extends Span$1 {
169
- type: "AssignmentExpression";
170
- operator: AssignmentOperator;
171
- left: AssignmentTarget;
172
- right: Expression$1;
173
- parent?: Node$1;
174
- }
175
- declare type AssignmentOperator = "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "**=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "||=" | "&&=" | "??=";
176
- declare interface AssignmentPattern$1 extends Span$1 {
177
- type: "AssignmentPattern";
178
- decorators?: [];
179
- left: BindingPattern$1;
180
- right: Expression$1;
181
- optional?: false;
182
- typeAnnotation?: null;
183
- parent?: Node$1;
184
- }
185
- declare type AssignmentTarget = SimpleAssignmentTarget$1 | AssignmentTargetPattern;
186
- declare type AssignmentTargetMaybeDefault = AssignmentTargetWithDefault | AssignmentTarget;
187
- declare type AssignmentTargetPattern = ArrayAssignmentTarget | ObjectAssignmentTarget;
188
- declare type AssignmentTargetProperty = AssignmentTargetPropertyIdentifier | AssignmentTargetPropertyProperty;
189
- declare interface AssignmentTargetPropertyIdentifier extends Span$1 {
190
- type: "Property";
191
- kind: "init";
192
- key: IdentifierReference$1;
193
- value: IdentifierReference$1 | AssignmentTargetWithDefault;
194
- method: false;
195
- shorthand: true;
196
- computed: false;
197
- optional?: false;
198
- parent?: Node$1;
199
- }
200
- declare interface AssignmentTargetPropertyProperty extends Span$1 {
201
- type: "Property";
202
- kind: "init";
203
- key: PropertyKey_2;
204
- value: AssignmentTargetMaybeDefault;
205
- method: false;
206
- shorthand: false;
207
- computed: boolean;
208
- optional?: false;
209
- parent?: Node$1;
210
- }
211
- declare interface AssignmentTargetRest extends Span$1 {
212
- type: "RestElement";
213
- decorators?: [];
214
- argument: AssignmentTarget;
215
- optional?: false;
216
- typeAnnotation?: null;
217
- value?: null;
218
- parent?: Node$1;
219
- }
220
- declare interface AssignmentTargetWithDefault extends Span$1 {
221
- type: "AssignmentPattern";
222
- decorators?: [];
223
- left: AssignmentTarget;
224
- right: Expression$1;
225
- optional?: false;
226
- typeAnnotation?: null;
227
- parent?: Node$1;
228
- }
229
- declare interface AwaitExpression extends Span$1 {
230
- type: "AwaitExpression";
231
- argument: Expression$1;
232
- parent?: Node$1;
233
- }
234
- declare interface BigIntLiteral$1 extends Span$1 {
235
- type: "Literal";
236
- value: bigint;
237
- raw: string | null;
238
- bigint: string;
239
- parent?: Node$1;
240
- }
241
- declare interface BinaryExpression$1 extends Span$1 {
242
- type: "BinaryExpression";
243
- left: Expression$1;
244
- operator: BinaryOperator;
245
- right: Expression$1;
246
- parent?: Node$1;
247
- }
248
- declare type BinaryOperator = "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "+" | "-" | "*" | "/" | "%" | "**" | "<<" | ">>" | ">>>" | "|" | "^" | "&" | "in" | "instanceof";
249
- declare interface BindingIdentifier$1 extends Span$1 {
250
- type: "Identifier";
251
- decorators?: [];
252
- name: string;
253
- optional?: false;
254
- typeAnnotation?: TSTypeAnnotation$1 | null;
255
- parent?: Node$1;
256
- }
257
- declare type BindingPattern$1 = BindingIdentifier$1 | ObjectPattern | ArrayPattern$1 | AssignmentPattern$1;
258
- declare interface BindingProperty$1 extends Span$1 {
259
- type: "Property";
260
- kind: "init";
261
- key: PropertyKey_2;
262
- value: BindingPattern$1;
263
- method: false;
264
- shorthand: boolean;
265
- computed: boolean;
266
- optional?: false;
267
- parent?: Node$1;
268
- }
269
- declare interface BindingRestElement$1 extends Span$1 {
270
- type: "RestElement";
271
- decorators?: [];
272
- argument: BindingPattern$1;
273
- optional?: false;
274
- typeAnnotation?: TSTypeAnnotation$1 | null;
275
- value?: null;
276
- parent?: Node$1;
277
- }
278
- declare interface BlockStatement$1 extends Span$1 {
279
- type: "BlockStatement";
280
- body: Array<Statement$1>;
281
- parent?: Node$1;
282
- }
283
- declare interface BooleanLiteral$1 extends Span$1 {
284
- type: "Literal";
285
- value: boolean;
286
- raw: string | null;
287
- parent?: Node$1;
288
- }
289
- declare interface BreakStatement$1 extends Span$1 {
290
- type: "BreakStatement";
291
- label: LabelIdentifier$1 | null;
292
- parent?: Node$1;
293
- }
294
- 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;
295
- declare interface CallExpression$1 extends Span$1 {
296
- type: "CallExpression";
297
- callee: Expression$1;
298
- typeArguments?: TSTypeParameterInstantiation$1 | null;
299
- arguments: Array<Argument$1>;
300
- optional: boolean;
301
- parent?: Node$1;
302
- }
303
- declare interface CatchClause$1 extends Span$1 {
304
- type: "CatchClause";
305
- param: BindingPattern$1 | null;
306
- body: BlockStatement$1;
307
- parent?: Node$1;
308
- }
309
- declare type ChainElement = CallExpression$1 | TSNonNullExpression$1 | MemberExpression$1;
310
- declare interface ChainExpression$1 extends Span$1 {
311
- type: "ChainExpression";
312
- expression: ChainElement;
313
- parent?: Node$1;
314
- }
315
- 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;
316
- declare interface Class$1 extends Span$1 {
317
- type: ClassType;
318
- decorators: Array<Decorator$1>;
319
- id: BindingIdentifier$1 | null;
320
- typeParameters?: TSTypeParameterDeclaration$1 | null;
321
- superClass: Expression$1 | null;
322
- superTypeArguments?: TSTypeParameterInstantiation$1 | null;
323
- implements?: Array<TSClassImplements>;
324
- body: ClassBody$1;
325
- abstract?: boolean;
326
- declare?: boolean;
327
- parent?: Node$1;
328
- }
329
- declare interface ClassBody$1 extends Span$1 {
330
- type: "ClassBody";
331
- body: Array<ClassElement>;
332
- parent?: Node$1;
333
- }
334
- declare type ClassElement = StaticBlock$1 | MethodDefinition$1 | PropertyDefinition$1 | AccessorProperty$1 | TSIndexSignature$1;
335
- declare type ClassType = "ClassDeclaration" | "ClassExpression";
336
- declare interface ComputedMemberExpression extends Span$1 {
337
- type: "MemberExpression";
338
- object: Expression$1;
339
- property: Expression$1;
340
- optional: boolean;
341
- computed: true;
342
- parent?: Node$1;
343
- }
344
- declare interface ConditionalExpression$1 extends Span$1 {
345
- type: "ConditionalExpression";
346
- test: Expression$1;
347
- consequent: Expression$1;
348
- alternate: Expression$1;
349
- parent?: Node$1;
350
- }
351
- declare interface ContinueStatement$1 extends Span$1 {
352
- type: "ContinueStatement";
353
- label: LabelIdentifier$1 | null;
354
- parent?: Node$1;
355
- }
356
- declare interface DebuggerStatement extends Span$1 {
357
- type: "DebuggerStatement";
358
- parent?: Node$1;
359
- }
360
- declare type Declaration = VariableDeclaration$1 | Function$1 | Class$1 | TSTypeAliasDeclaration$1 | TSInterfaceDeclaration$1 | TSEnumDeclaration$1 | TSModuleDeclaration$1 | TSGlobalDeclaration | TSImportEqualsDeclaration$1;
361
- declare interface Decorator$1 extends Span$1 {
362
- type: "Decorator";
363
- expression: Expression$1;
364
- parent?: Node$1;
365
- }
366
- declare interface Directive extends Span$1 {
367
- type: "ExpressionStatement";
368
- expression: StringLiteral$1;
369
- directive: string;
370
- parent?: Node$1;
371
- }
372
- declare interface DoWhileStatement$1 extends Span$1 {
373
- type: "DoWhileStatement";
374
- body: Statement$1;
375
- test: Expression$1;
376
- parent?: Node$1;
377
- }
378
- declare interface EmptyStatement$1 extends Span$1 {
379
- type: "EmptyStatement";
380
- parent?: Node$1;
381
- }
382
- declare interface ExportAllDeclaration$1 extends Span$1 {
383
- type: "ExportAllDeclaration";
384
- exported: ModuleExportName | null;
385
- source: StringLiteral$1;
386
- attributes: Array<ImportAttribute$1>;
387
- exportKind?: ImportOrExportKind;
388
- parent?: Node$1;
389
- }
390
- declare interface ExportDefaultDeclaration$1 extends Span$1 {
391
- type: "ExportDefaultDeclaration";
392
- declaration: ExportDefaultDeclarationKind;
393
- exportKind?: "value";
394
- parent?: Node$1;
395
- }
396
- declare type ExportDefaultDeclarationKind = Function$1 | Class$1 | TSInterfaceDeclaration$1 | Expression$1;
397
- declare interface ExportNamedDeclaration$1 extends Span$1 {
398
- type: "ExportNamedDeclaration";
399
- declaration: Declaration | null;
400
- specifiers: Array<ExportSpecifier>;
401
- source: StringLiteral$1 | null;
402
- exportKind?: ImportOrExportKind;
403
- attributes: Array<ImportAttribute$1>;
404
- parent?: Node$1;
405
- }
406
- declare interface ExportSpecifier extends Span$1 {
407
- type: "ExportSpecifier";
408
- local: ModuleExportName;
409
- exported: ModuleExportName;
410
- exportKind?: ImportOrExportKind;
411
- parent?: Node$1;
412
- }
413
- 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;
414
- declare interface ExpressionStatement$1 extends Span$1 {
415
- type: "ExpressionStatement";
416
- expression: Expression$1;
417
- directive?: string | null;
418
- parent?: Node$1;
419
- }
420
- declare interface ForInStatement$1 extends Span$1 {
421
- type: "ForInStatement";
422
- left: ForStatementLeft;
423
- right: Expression$1;
424
- body: Statement$1;
425
- parent?: Node$1;
426
- }
427
- declare type FormalParameter = {
428
- decorators?: Array<Decorator$1>;
429
- } & BindingPattern$1;
430
- declare interface FormalParameterRest extends Span$1 {
431
- type: "RestElement";
432
- argument: BindingPattern$1;
433
- decorators?: Array<Decorator$1>;
434
- optional?: boolean;
435
- typeAnnotation?: TSTypeAnnotation$1 | null;
436
- value?: null;
437
- parent?: Node$1;
438
- }
439
- declare interface ForOfStatement$1 extends Span$1 {
440
- type: "ForOfStatement";
441
- await: boolean;
442
- left: ForStatementLeft;
443
- right: Expression$1;
444
- body: Statement$1;
445
- parent?: Node$1;
446
- }
447
- declare interface ForStatement$1 extends Span$1 {
448
- type: "ForStatement";
449
- init: ForStatementInit | null;
450
- test: Expression$1 | null;
451
- update: Expression$1 | null;
452
- body: Statement$1;
453
- parent?: Node$1;
454
- }
455
- declare type ForStatementInit = VariableDeclaration$1 | Expression$1;
456
- declare type ForStatementLeft = VariableDeclaration$1 | AssignmentTarget;
457
- declare interface Function$1 extends Span$1 {
458
- type: FunctionType;
459
- id: BindingIdentifier$1 | null;
460
- generator: boolean;
461
- async: boolean;
462
- declare?: boolean;
463
- typeParameters?: TSTypeParameterDeclaration$1 | null;
464
- params: ParamPattern$1[];
465
- returnType?: TSTypeAnnotation$1 | null;
466
- body: FunctionBody | null;
467
- expression: false;
468
- parent?: Node$1;
469
- }
470
- declare interface FunctionBody extends Span$1 {
471
- type: "BlockStatement";
472
- body: Array<Directive | Statement$1>;
473
- parent?: Node$1;
474
- }
475
- declare type FunctionType = "FunctionDeclaration" | "FunctionExpression" | "TSDeclareFunction" | "TSEmptyBodyFunctionExpression";
476
- declare interface Hashbang extends Span$1 {
477
- type: "Hashbang";
478
- value: string;
479
- parent?: Node$1;
480
- }
481
- declare interface IdentifierName$1 extends Span$1 {
482
- type: "Identifier";
483
- decorators?: [];
484
- name: string;
485
- optional?: false;
486
- typeAnnotation?: null;
487
- parent?: Node$1;
488
- }
489
- declare interface IdentifierReference$1 extends Span$1 {
490
- type: "Identifier";
491
- decorators?: [];
492
- name: string;
493
- optional?: false;
494
- typeAnnotation?: null;
495
- parent?: Node$1;
496
- }
497
- declare interface IfStatement$1 extends Span$1 {
498
- type: "IfStatement";
499
- test: Expression$1;
500
- consequent: Statement$1;
501
- alternate: Statement$1 | null;
502
- parent?: Node$1;
503
- }
504
- declare interface Ignorer {
505
- readonly name: string;
506
- shouldIgnore(node: Node_2, ancestors: readonly Node_2[]): string | undefined;
507
- }
508
- declare interface ImportAttribute$1 extends Span$1 {
509
- type: "ImportAttribute";
510
- key: ImportAttributeKey;
511
- value: StringLiteral$1;
512
- parent?: Node$1;
513
- }
514
- declare type ImportAttributeKey = IdentifierName$1 | StringLiteral$1;
515
- declare interface ImportDeclaration$1 extends Span$1 {
516
- type: "ImportDeclaration";
517
- specifiers: Array<ImportDeclarationSpecifier>;
518
- source: StringLiteral$1;
519
- phase: ImportPhase | null;
520
- attributes: Array<ImportAttribute$1>;
521
- importKind?: ImportOrExportKind;
522
- parent?: Node$1;
523
- }
524
- declare type ImportDeclarationSpecifier = ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier;
525
- declare interface ImportDefaultSpecifier extends Span$1 {
526
- type: "ImportDefaultSpecifier";
527
- local: BindingIdentifier$1;
528
- parent?: Node$1;
529
- }
530
- declare interface ImportExpression$1 extends Span$1 {
531
- type: "ImportExpression";
532
- source: Expression$1;
533
- options: Expression$1 | null;
534
- phase: ImportPhase | null;
535
- parent?: Node$1;
536
- }
537
- declare interface ImportNamespaceSpecifier extends Span$1 {
538
- type: "ImportNamespaceSpecifier";
539
- local: BindingIdentifier$1;
540
- parent?: Node$1;
541
- }
542
- declare type ImportOrExportKind = "value" | "type";
543
- declare type ImportPhase = "source" | "defer";
544
- declare interface ImportSpecifier extends Span$1 {
545
- type: "ImportSpecifier";
546
- imported: ModuleExportName;
547
- local: BindingIdentifier$1;
548
- importKind?: ImportOrExportKind;
549
- parent?: Node$1;
550
- }
551
- declare interface JSDocNonNullableType$1 extends Span$1 {
552
- type: "TSJSDocNonNullableType";
553
- typeAnnotation: TSType$1;
554
- postfix: boolean;
555
- parent?: Node$1;
556
- }
557
- declare interface JSDocNullableType$1 extends Span$1 {
558
- type: "TSJSDocNullableType";
559
- typeAnnotation: TSType$1;
560
- postfix: boolean;
561
- parent?: Node$1;
562
- }
563
- declare interface JSDocUnknownType extends Span$1 {
564
- type: "TSJSDocUnknownType";
565
- parent?: Node$1;
566
- }
567
- declare interface JSXAttribute$1 extends Span$1 {
568
- type: "JSXAttribute";
569
- name: JSXAttributeName;
570
- value: JSXAttributeValue | null;
571
- parent?: Node$1;
572
- }
573
- declare type JSXAttributeItem = JSXAttribute$1 | JSXSpreadAttribute$1;
574
- declare type JSXAttributeName = JSXIdentifier$1 | JSXNamespacedName$1;
575
- declare type JSXAttributeValue = StringLiteral$1 | JSXExpressionContainer$1 | JSXElement$1 | JSXFragment$1;
576
- declare type JSXChild = JSXText$1 | JSXElement$1 | JSXFragment$1 | JSXExpressionContainer$1 | JSXSpreadChild$1;
577
- declare interface JSXClosingElement extends Span$1 {
578
- type: "JSXClosingElement";
579
- name: JSXElementName;
580
- parent?: Node$1;
581
- }
582
- declare interface JSXClosingFragment extends Span$1 {
583
- type: "JSXClosingFragment";
584
- parent?: Node$1;
585
- }
586
- declare interface JSXElement$1 extends Span$1 {
587
- type: "JSXElement";
588
- openingElement: JSXOpeningElement$1;
589
- children: Array<JSXChild>;
590
- closingElement: JSXClosingElement | null;
591
- parent?: Node$1;
592
- }
593
- declare type JSXElementName = JSXIdentifier$1 | JSXNamespacedName$1 | JSXMemberExpression$1;
594
- declare interface JSXEmptyExpression extends Span$1 {
595
- type: "JSXEmptyExpression";
596
- parent?: Node$1;
597
- }
598
- declare type JSXExpression = JSXEmptyExpression | Expression$1;
599
- declare interface JSXExpressionContainer$1 extends Span$1 {
600
- type: "JSXExpressionContainer";
601
- expression: JSXExpression;
602
- parent?: Node$1;
603
- }
604
- declare interface JSXFragment$1 extends Span$1 {
605
- type: "JSXFragment";
606
- openingFragment: JSXOpeningFragment;
607
- children: Array<JSXChild>;
608
- closingFragment: JSXClosingFragment;
609
- parent?: Node$1;
610
- }
611
- declare interface JSXIdentifier$1 extends Span$1 {
612
- type: "JSXIdentifier";
613
- name: string;
614
- parent?: Node$1;
615
- }
616
- declare interface JSXMemberExpression$1 extends Span$1 {
617
- type: "JSXMemberExpression";
618
- object: JSXMemberExpressionObject;
619
- property: JSXIdentifier$1;
620
- parent?: Node$1;
621
- }
622
- declare type JSXMemberExpressionObject = JSXIdentifier$1 | JSXMemberExpression$1;
623
- declare interface JSXNamespacedName$1 extends Span$1 {
624
- type: "JSXNamespacedName";
625
- namespace: JSXIdentifier$1;
626
- name: JSXIdentifier$1;
627
- parent?: Node$1;
628
- }
629
- declare interface JSXOpeningElement$1 extends Span$1 {
630
- type: "JSXOpeningElement";
631
- name: JSXElementName;
632
- typeArguments?: TSTypeParameterInstantiation$1 | null;
633
- attributes: Array<JSXAttributeItem>;
634
- selfClosing: boolean;
635
- parent?: Node$1;
636
- }
637
- declare interface JSXOpeningFragment extends Span$1 {
638
- type: "JSXOpeningFragment";
639
- attributes?: [];
640
- selfClosing?: false;
641
- parent?: Node$1;
642
- }
643
- declare interface JSXSpreadAttribute$1 extends Span$1 {
644
- type: "JSXSpreadAttribute";
645
- argument: Expression$1;
646
- parent?: Node$1;
647
- }
648
- declare interface JSXSpreadChild$1 extends Span$1 {
649
- type: "JSXSpreadChild";
650
- expression: Expression$1;
651
- parent?: Node$1;
652
- }
653
- declare interface JSXText$1 extends Span$1 {
654
- type: "JSXText";
655
- value: string;
656
- raw: string | null;
657
- parent?: Node$1;
658
- }
659
- declare interface LabeledStatement$1 extends Span$1 {
660
- type: "LabeledStatement";
661
- label: LabelIdentifier$1;
662
- body: Statement$1;
663
- parent?: Node$1;
664
- }
665
- declare interface LabelIdentifier$1 extends Span$1 {
666
- type: "Identifier";
667
- decorators?: [];
668
- name: string;
669
- optional?: false;
670
- typeAnnotation?: null;
671
- parent?: Node$1;
672
- }
673
- declare interface LogicalExpression$1 extends Span$1 {
674
- type: "LogicalExpression";
675
- left: Expression$1;
676
- operator: LogicalOperator;
677
- right: Expression$1;
678
- parent?: Node$1;
679
- }
680
- declare type LogicalOperator = "||" | "&&" | "??";
681
- declare type MemberExpression$1 = ComputedMemberExpression | StaticMemberExpression$1 | PrivateFieldExpression;
682
- declare interface MetaProperty$1 extends Span$1 {
683
- type: "MetaProperty";
684
- meta: IdentifierName$1;
685
- property: IdentifierName$1;
686
- parent?: Node$1;
687
- }
688
- declare interface MethodDefinition$1 extends Span$1 {
689
- type: MethodDefinitionType;
690
- decorators: Array<Decorator$1>;
691
- key: PropertyKey_2;
692
- value: Function$1;
693
- kind: MethodDefinitionKind;
694
- computed: boolean;
695
- static: boolean;
696
- override?: boolean;
697
- optional?: boolean;
698
- accessibility?: TSAccessibility | null;
699
- parent?: Node$1;
700
- }
701
- declare type MethodDefinitionKind = "constructor" | "method" | "get" | "set";
702
- declare type MethodDefinitionType = "MethodDefinition" | "TSAbstractMethodDefinition";
703
- declare type ModuleDeclaration = ImportDeclaration$1 | ExportAllDeclaration$1 | ExportDefaultDeclaration$1 | ExportNamedDeclaration$1 | TSExportAssignment$1 | TSNamespaceExportDeclaration$1;
704
- declare type ModuleExportName = IdentifierName$1 | IdentifierReference$1 | StringLiteral$1;
705
- declare type ModuleKind = "script" | "module" | "commonjs";
706
- declare interface NewExpression$1 extends Span$1 {
707
- type: "NewExpression";
708
- callee: Expression$1;
709
- typeArguments?: TSTypeParameterInstantiation$1 | null;
710
- arguments: Array<Argument$1>;
711
- parent?: Node$1;
712
- }
713
- 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;
714
- declare type Node_2 = Simplify<Built<Node$1>> | Node$1;
715
- declare interface NullLiteral$1 extends Span$1 {
716
- type: "Literal";
717
- value: null;
718
- raw: "null" | null;
719
- parent?: Node$1;
720
- }
721
- declare interface NumericLiteral$1 extends Span$1 {
722
- type: "Literal";
723
- value: number;
724
- raw: string | null;
725
- parent?: Node$1;
726
- }
727
- declare interface ObjectAssignmentTarget extends Span$1 {
728
- type: "ObjectPattern";
729
- decorators?: [];
730
- properties: Array<AssignmentTargetProperty | AssignmentTargetRest>;
731
- optional?: false;
732
- typeAnnotation?: null;
733
- parent?: Node$1;
734
- }
735
- declare interface ObjectExpression$1 extends Span$1 {
736
- type: "ObjectExpression";
737
- properties: Array<ObjectPropertyKind>;
738
- parent?: Node$1;
739
- }
740
- declare interface ObjectPattern extends Span$1 {
741
- type: "ObjectPattern";
742
- decorators?: [];
743
- properties: Array<BindingProperty$1 | BindingRestElement$1>;
744
- optional?: false;
745
- typeAnnotation?: TSTypeAnnotation$1 | null;
746
- parent?: Node$1;
747
- }
748
- declare interface ObjectProperty$1 extends Span$1 {
749
- type: "Property";
750
- kind: PropertyKind;
751
- key: PropertyKey_2;
752
- value: Expression$1;
753
- method: boolean;
754
- shorthand: boolean;
755
- computed: boolean;
756
- optional?: false;
757
- parent?: Node$1;
758
- }
759
- declare type ObjectPropertyKind = ObjectProperty$1 | SpreadElement$1;
760
- declare type ParamPattern$1 = FormalParameter | TSParameterProperty | FormalParameterRest;
761
- declare interface ParenthesizedExpression extends Span$1 {
762
- type: "ParenthesizedExpression";
763
- expression: Expression$1;
764
- parent?: Node$1;
765
- }
766
- declare interface PrivateFieldExpression extends Span$1 {
767
- type: "MemberExpression";
768
- object: Expression$1;
769
- property: PrivateIdentifier$1;
770
- optional: boolean;
771
- computed: false;
772
- parent?: Node$1;
773
- }
774
- declare interface PrivateIdentifier$1 extends Span$1 {
775
- type: "PrivateIdentifier";
776
- name: string;
777
- parent?: Node$1;
778
- }
779
- declare interface PrivateInExpression$1 extends Span$1 {
780
- type: "BinaryExpression";
781
- left: PrivateIdentifier$1;
782
- operator: "in";
783
- right: Expression$1;
784
- parent?: Node$1;
785
- }
786
- declare interface Program$1 extends Span$1 {
787
- type: "Program";
788
- body: Array<Directive | Statement$1>;
789
- sourceType: ModuleKind;
790
- hashbang: Hashbang | null;
791
- parent?: null;
792
- }
793
- declare interface PropertyDefinition$1 extends Span$1 {
794
- type: PropertyDefinitionType;
795
- decorators: Array<Decorator$1>;
796
- key: PropertyKey_2;
797
- typeAnnotation?: TSTypeAnnotation$1 | null;
798
- value: Expression$1 | null;
799
- computed: boolean;
800
- static: boolean;
801
- declare?: boolean;
802
- override?: boolean;
803
- optional?: boolean;
804
- definite?: boolean;
805
- readonly?: boolean;
806
- accessibility?: TSAccessibility | null;
807
- parent?: Node$1;
808
- }
809
- declare type PropertyDefinitionType = "PropertyDefinition" | "TSAbstractPropertyDefinition";
810
- declare type PropertyKey_2 = IdentifierName$1 | PrivateIdentifier$1 | Expression$1;
811
- declare type PropertyKind = "init" | "get" | "set";
812
- declare interface RegExpLiteral$1 extends Span$1 {
813
- type: "Literal";
814
- value: RegExp | null;
815
- raw: string | null;
816
- regex: {
817
- pattern: string;
818
- flags: string;
819
- };
820
- parent?: Node$1;
821
- }
822
- declare interface ReturnStatement$1 extends Span$1 {
823
- type: "ReturnStatement";
824
- argument: Expression$1 | null;
825
- parent?: Node$1;
826
- }
827
- declare interface SequenceExpression$1 extends Span$1 {
828
- type: "SequenceExpression";
829
- expressions: Array<Expression$1>;
830
- parent?: Node$1;
831
- }
832
- declare type SimpleAssignmentTarget$1 = IdentifierReference$1 | TSAsExpression$1 | TSSatisfiesExpression$1 | TSNonNullExpression$1 | TSTypeAssertion$1 | MemberExpression$1;
833
- declare type Simplify<T> = { [K in keyof T]: T[K]; } & {};
834
- declare interface Span$1 {
835
- start: number;
836
- end: number;
837
- range?: [number, number];
838
- }
839
- declare interface SpreadElement$1 extends Span$1 {
840
- type: "SpreadElement";
841
- argument: Expression$1;
842
- parent?: Node$1;
843
- }
844
- 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;
845
- declare interface StaticBlock$1 extends Span$1 {
846
- type: "StaticBlock";
847
- body: Array<Statement$1>;
848
- parent?: Node$1;
849
- }
850
- declare interface StaticMemberExpression$1 extends Span$1 {
851
- type: "MemberExpression";
852
- object: Expression$1;
853
- property: IdentifierName$1;
854
- optional: boolean;
855
- computed: false;
856
- parent?: Node$1;
857
- }
858
- declare interface StringLiteral$1 extends Span$1 {
859
- type: "Literal";
860
- value: string;
861
- raw: string | null;
862
- parent?: Node$1;
863
- }
864
- declare interface Super$1 extends Span$1 {
865
- type: "Super";
866
- parent?: Node$1;
867
- }
868
- declare interface SwitchCase$1 extends Span$1 {
869
- type: "SwitchCase";
870
- test: Expression$1 | null;
871
- consequent: Array<Statement$1>;
872
- parent?: Node$1;
873
- }
874
- declare interface SwitchStatement$1 extends Span$1 {
875
- type: "SwitchStatement";
876
- discriminant: Expression$1;
877
- cases: Array<SwitchCase$1>;
878
- parent?: Node$1;
879
- }
880
- declare interface TaggedTemplateExpression$1 extends Span$1 {
881
- type: "TaggedTemplateExpression";
882
- tag: Expression$1;
883
- typeArguments?: TSTypeParameterInstantiation$1 | null;
884
- quasi: TemplateLiteral$1;
885
- parent?: Node$1;
886
- }
887
- declare interface TemplateElement$1 extends Span$1 {
888
- type: "TemplateElement";
889
- value: TemplateElementValue;
890
- tail: boolean;
891
- parent?: Node$1;
892
- }
893
- declare interface TemplateElementValue {
894
- raw: string;
895
- cooked: string | null;
896
- }
897
- declare interface TemplateLiteral$1 extends Span$1 {
898
- type: "TemplateLiteral";
899
- quasis: Array<TemplateElement$1>;
900
- expressions: Array<Expression$1>;
901
- parent?: Node$1;
902
- }
903
- declare interface ThisExpression$1 extends Span$1 {
904
- type: "ThisExpression";
905
- parent?: Node$1;
906
- }
907
- declare interface ThrowStatement$1 extends Span$1 {
908
- type: "ThrowStatement";
909
- argument: Expression$1;
910
- parent?: Node$1;
911
- }
912
- declare interface TryStatement$1 extends Span$1 {
913
- type: "TryStatement";
914
- block: BlockStatement$1;
915
- handler: CatchClause$1 | null;
916
- finalizer: BlockStatement$1 | null;
917
- parent?: Node$1;
918
- }
919
- declare type TSAccessibility = "private" | "protected" | "public";
920
- declare interface TSAnyKeyword extends Span$1 {
921
- type: "TSAnyKeyword";
922
- parent?: Node$1;
923
- }
924
- declare interface TSArrayType$1 extends Span$1 {
925
- type: "TSArrayType";
926
- elementType: TSType$1;
927
- parent?: Node$1;
928
- }
929
- declare interface TSAsExpression$1 extends Span$1 {
930
- type: "TSAsExpression";
931
- expression: Expression$1;
932
- typeAnnotation: TSType$1;
933
- parent?: Node$1;
934
- }
935
- declare interface TSBigIntKeyword extends Span$1 {
936
- type: "TSBigIntKeyword";
937
- parent?: Node$1;
938
- }
939
- declare interface TSBooleanKeyword extends Span$1 {
940
- type: "TSBooleanKeyword";
941
- parent?: Node$1;
942
- }
943
- declare interface TSCallSignatureDeclaration$1 extends Span$1 {
944
- type: "TSCallSignatureDeclaration";
945
- typeParameters: TSTypeParameterDeclaration$1 | null;
946
- params: ParamPattern$1[];
947
- returnType: TSTypeAnnotation$1 | null;
948
- parent?: Node$1;
949
- }
950
- declare interface TSClassImplements extends Span$1 {
951
- type: "TSClassImplements";
952
- expression: IdentifierReference$1 | ThisExpression$1 | MemberExpression$1;
953
- typeArguments: TSTypeParameterInstantiation$1 | null;
954
- parent?: Node$1;
955
- }
956
- declare interface TSConditionalType$1 extends Span$1 {
957
- type: "TSConditionalType";
958
- checkType: TSType$1;
959
- extendsType: TSType$1;
960
- trueType: TSType$1;
961
- falseType: TSType$1;
962
- parent?: Node$1;
963
- }
964
- declare interface TSConstructorType$1 extends Span$1 {
965
- type: "TSConstructorType";
966
- abstract: boolean;
967
- typeParameters: TSTypeParameterDeclaration$1 | null;
968
- params: ParamPattern$1[];
969
- returnType: TSTypeAnnotation$1;
970
- parent?: Node$1;
971
- }
972
- declare interface TSConstructSignatureDeclaration$1 extends Span$1 {
973
- type: "TSConstructSignatureDeclaration";
974
- typeParameters: TSTypeParameterDeclaration$1 | null;
975
- params: ParamPattern$1[];
976
- returnType: TSTypeAnnotation$1 | null;
977
- parent?: Node$1;
978
- }
979
- declare interface TSEnumBody extends Span$1 {
980
- type: "TSEnumBody";
981
- members: Array<TSEnumMember>;
982
- parent?: Node$1;
983
- }
984
- declare interface TSEnumDeclaration$1 extends Span$1 {
985
- type: "TSEnumDeclaration";
986
- id: BindingIdentifier$1;
987
- body: TSEnumBody;
988
- const: boolean;
989
- declare: boolean;
990
- parent?: Node$1;
991
- }
992
- declare interface TSEnumMember extends Span$1 {
993
- type: "TSEnumMember";
994
- id: TSEnumMemberName;
995
- initializer: Expression$1 | null;
996
- computed: boolean;
997
- parent?: Node$1;
998
- }
999
- declare type TSEnumMemberName = IdentifierName$1 | StringLiteral$1 | TemplateLiteral$1;
1000
- declare interface TSExportAssignment$1 extends Span$1 {
1001
- type: "TSExportAssignment";
1002
- expression: Expression$1;
1003
- parent?: Node$1;
1004
- }
1005
- declare interface TSExternalModuleReference extends Span$1 {
1006
- type: "TSExternalModuleReference";
1007
- expression: StringLiteral$1;
1008
- parent?: Node$1;
1009
- }
1010
- declare interface TSFunctionType$1 extends Span$1 {
1011
- type: "TSFunctionType";
1012
- typeParameters: TSTypeParameterDeclaration$1 | null;
1013
- params: ParamPattern$1[];
1014
- returnType: TSTypeAnnotation$1;
1015
- parent?: Node$1;
1016
- }
1017
- declare interface TSGlobalDeclaration extends Span$1 {
1018
- type: "TSModuleDeclaration";
1019
- id: IdentifierName$1;
1020
- body: TSModuleBlock$1;
1021
- kind: "global";
1022
- declare: boolean;
1023
- global: true;
1024
- parent?: Node$1;
1025
- }
1026
- declare interface TSImportEqualsDeclaration$1 extends Span$1 {
1027
- type: "TSImportEqualsDeclaration";
1028
- id: BindingIdentifier$1;
1029
- moduleReference: TSModuleReference;
1030
- importKind: ImportOrExportKind;
1031
- parent?: Node$1;
1032
- }
1033
- declare interface TSImportType$1 extends Span$1 {
1034
- type: "TSImportType";
1035
- source: StringLiteral$1;
1036
- options: ObjectExpression$1 | null;
1037
- qualifier: TSImportTypeQualifier | null;
1038
- typeArguments: TSTypeParameterInstantiation$1 | null;
1039
- parent?: Node$1;
1040
- }
1041
- declare interface TSImportTypeQualifiedName extends Span$1 {
1042
- type: "TSQualifiedName";
1043
- left: TSImportTypeQualifier;
1044
- right: IdentifierName$1;
1045
- parent?: Node$1;
1046
- }
1047
- declare type TSImportTypeQualifier = IdentifierName$1 | TSImportTypeQualifiedName;
1048
- declare interface TSIndexedAccessType$1 extends Span$1 {
1049
- type: "TSIndexedAccessType";
1050
- objectType: TSType$1;
1051
- indexType: TSType$1;
1052
- parent?: Node$1;
1053
- }
1054
- declare interface TSIndexSignature$1 extends Span$1 {
1055
- type: "TSIndexSignature";
1056
- parameters: Array<TSIndexSignatureName>;
1057
- typeAnnotation: TSTypeAnnotation$1;
1058
- readonly: boolean;
1059
- static: boolean;
1060
- accessibility: null;
1061
- parent?: Node$1;
1062
- }
1063
- declare interface TSIndexSignatureName extends Span$1 {
1064
- type: "Identifier";
1065
- decorators: [];
1066
- name: string;
1067
- optional: false;
1068
- typeAnnotation: TSTypeAnnotation$1;
1069
- parent?: Node$1;
1070
- }
1071
- declare interface TSInferType$1 extends Span$1 {
1072
- type: "TSInferType";
1073
- typeParameter: TSTypeParameter;
1074
- parent?: Node$1;
1075
- }
1076
- declare interface TSInstantiationExpression$1 extends Span$1 {
1077
- type: "TSInstantiationExpression";
1078
- expression: Expression$1;
1079
- typeArguments: TSTypeParameterInstantiation$1;
1080
- parent?: Node$1;
1081
- }
1082
- declare interface TSInterfaceBody$1 extends Span$1 {
1083
- type: "TSInterfaceBody";
1084
- body: Array<TSSignature>;
1085
- parent?: Node$1;
1086
- }
1087
- declare interface TSInterfaceDeclaration$1 extends Span$1 {
1088
- type: "TSInterfaceDeclaration";
1089
- id: BindingIdentifier$1;
1090
- typeParameters: TSTypeParameterDeclaration$1 | null;
1091
- extends: Array<TSInterfaceHeritage>;
1092
- body: TSInterfaceBody$1;
1093
- declare: boolean;
1094
- parent?: Node$1;
1095
- }
1096
- declare interface TSInterfaceHeritage extends Span$1 {
1097
- type: "TSInterfaceHeritage";
1098
- expression: Expression$1;
1099
- typeArguments: TSTypeParameterInstantiation$1 | null;
1100
- parent?: Node$1;
1101
- }
1102
- declare interface TSIntersectionType$1 extends Span$1 {
1103
- type: "TSIntersectionType";
1104
- types: Array<TSType$1>;
1105
- parent?: Node$1;
1106
- }
1107
- declare interface TSIntrinsicKeyword extends Span$1 {
1108
- type: "TSIntrinsicKeyword";
1109
- parent?: Node$1;
1110
- }
1111
- declare type TSLiteral = BooleanLiteral$1 | NumericLiteral$1 | BigIntLiteral$1 | StringLiteral$1 | TemplateLiteral$1 | UnaryExpression$1;
1112
- declare interface TSLiteralType$1 extends Span$1 {
1113
- type: "TSLiteralType";
1114
- literal: TSLiteral;
1115
- parent?: Node$1;
1116
- }
1117
- declare interface TSMappedType$1 extends Span$1 {
1118
- type: "TSMappedType";
1119
- key: BindingIdentifier$1;
1120
- constraint: TSType$1;
1121
- nameType: TSType$1 | null;
1122
- typeAnnotation: TSType$1 | null;
1123
- optional: TSMappedTypeModifierOperator | false;
1124
- readonly: TSMappedTypeModifierOperator | null;
1125
- parent?: Node$1;
1126
- }
1127
- declare type TSMappedTypeModifierOperator = true | "+" | "-";
1128
- declare interface TSMethodSignature$1 extends Span$1 {
1129
- type: "TSMethodSignature";
1130
- key: PropertyKey_2;
1131
- computed: boolean;
1132
- optional: boolean;
1133
- kind: TSMethodSignatureKind;
1134
- typeParameters: TSTypeParameterDeclaration$1 | null;
1135
- params: ParamPattern$1[];
1136
- returnType: TSTypeAnnotation$1 | null;
1137
- accessibility: null;
1138
- readonly: false;
1139
- static: false;
1140
- parent?: Node$1;
1141
- }
1142
- declare type TSMethodSignatureKind = "method" | "get" | "set";
1143
- declare interface TSModuleBlock$1 extends Span$1 {
1144
- type: "TSModuleBlock";
1145
- body: Array<Directive | Statement$1>;
1146
- parent?: Node$1;
1147
- }
1148
- declare interface TSModuleDeclaration$1 extends Span$1 {
1149
- type: "TSModuleDeclaration";
1150
- id: BindingIdentifier$1 | StringLiteral$1 | TSQualifiedName$1;
1151
- body: TSModuleBlock$1 | null;
1152
- kind: TSModuleDeclarationKind;
1153
- declare: boolean;
1154
- global: false;
1155
- parent?: Node$1;
1156
- }
1157
- declare type TSModuleDeclarationKind = "module" | "namespace";
1158
- declare type TSModuleReference = TSExternalModuleReference | IdentifierReference$1 | TSQualifiedName$1;
1159
- declare interface TSNamedTupleMember$1 extends Span$1 {
1160
- type: "TSNamedTupleMember";
1161
- label: IdentifierName$1;
1162
- elementType: TSTupleElement;
1163
- optional: boolean;
1164
- parent?: Node$1;
1165
- }
1166
- declare interface TSNamespaceExportDeclaration$1 extends Span$1 {
1167
- type: "TSNamespaceExportDeclaration";
1168
- id: IdentifierName$1;
1169
- parent?: Node$1;
1170
- }
1171
- declare interface TSNeverKeyword extends Span$1 {
1172
- type: "TSNeverKeyword";
1173
- parent?: Node$1;
1174
- }
1175
- declare interface TSNonNullExpression$1 extends Span$1 {
1176
- type: "TSNonNullExpression";
1177
- expression: Expression$1;
1178
- parent?: Node$1;
1179
- }
1180
- declare interface TSNullKeyword extends Span$1 {
1181
- type: "TSNullKeyword";
1182
- parent?: Node$1;
1183
- }
1184
- declare interface TSNumberKeyword extends Span$1 {
1185
- type: "TSNumberKeyword";
1186
- parent?: Node$1;
1187
- }
1188
- declare interface TSObjectKeyword extends Span$1 {
1189
- type: "TSObjectKeyword";
1190
- parent?: Node$1;
1191
- }
1192
- declare interface TSOptionalType$1 extends Span$1 {
1193
- type: "TSOptionalType";
1194
- typeAnnotation: TSType$1;
1195
- parent?: Node$1;
1196
- }
1197
- declare interface TSParameterProperty extends Span$1 {
1198
- type: "TSParameterProperty";
1199
- accessibility: TSAccessibility | null;
1200
- decorators: Array<Decorator$1>;
1201
- override: boolean;
1202
- parameter: FormalParameter;
1203
- readonly: boolean;
1204
- static: boolean;
1205
- parent?: Node$1;
1206
- }
1207
- declare interface TSParenthesizedType$1 extends Span$1 {
1208
- type: "TSParenthesizedType";
1209
- typeAnnotation: TSType$1;
1210
- parent?: Node$1;
1211
- }
1212
- declare interface TSPropertySignature$1 extends Span$1 {
1213
- type: "TSPropertySignature";
1214
- computed: boolean;
1215
- optional: boolean;
1216
- readonly: boolean;
1217
- key: PropertyKey_2;
1218
- typeAnnotation: TSTypeAnnotation$1 | null;
1219
- accessibility: null;
1220
- static: false;
1221
- parent?: Node$1;
1222
- }
1223
- declare interface TSQualifiedName$1 extends Span$1 {
1224
- type: "TSQualifiedName";
1225
- left: TSTypeName;
1226
- right: IdentifierName$1;
1227
- parent?: Node$1;
1228
- }
1229
- declare interface TSRestType$1 extends Span$1 {
1230
- type: "TSRestType";
1231
- typeAnnotation: TSType$1;
1232
- parent?: Node$1;
1233
- }
1234
- declare interface TSSatisfiesExpression$1 extends Span$1 {
1235
- type: "TSSatisfiesExpression";
1236
- expression: Expression$1;
1237
- typeAnnotation: TSType$1;
1238
- parent?: Node$1;
1239
- }
1240
- declare type TSSignature = TSIndexSignature$1 | TSPropertySignature$1 | TSCallSignatureDeclaration$1 | TSConstructSignatureDeclaration$1 | TSMethodSignature$1;
1241
- declare interface TSStringKeyword extends Span$1 {
1242
- type: "TSStringKeyword";
1243
- parent?: Node$1;
1244
- }
1245
- declare interface TSSymbolKeyword extends Span$1 {
1246
- type: "TSSymbolKeyword";
1247
- parent?: Node$1;
1248
- }
1249
- declare interface TSTemplateLiteralType$1 extends Span$1 {
1250
- type: "TSTemplateLiteralType";
1251
- quasis: Array<TemplateElement$1>;
1252
- types: Array<TSType$1>;
1253
- parent?: Node$1;
1254
- }
1255
- declare interface TSThisParameter extends Span$1 {
1256
- type: "Identifier";
1257
- decorators: [];
1258
- name: "this";
1259
- optional: false;
1260
- typeAnnotation: TSTypeAnnotation$1 | null;
1261
- parent?: Node$1;
1262
- }
1263
- declare interface TSThisType extends Span$1 {
1264
- type: "TSThisType";
1265
- parent?: Node$1;
1266
- }
1267
- declare type TSTupleElement = TSOptionalType$1 | TSRestType$1 | TSType$1;
1268
- declare interface TSTupleType$1 extends Span$1 {
1269
- type: "TSTupleType";
1270
- elementTypes: Array<TSTupleElement>;
1271
- parent?: Node$1;
1272
- }
1273
- 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;
1274
- declare interface TSTypeAliasDeclaration$1 extends Span$1 {
1275
- type: "TSTypeAliasDeclaration";
1276
- id: BindingIdentifier$1;
1277
- typeParameters: TSTypeParameterDeclaration$1 | null;
1278
- typeAnnotation: TSType$1;
1279
- declare: boolean;
1280
- parent?: Node$1;
1281
- }
1282
- declare interface TSTypeAnnotation$1 extends Span$1 {
1283
- type: "TSTypeAnnotation";
1284
- typeAnnotation: TSType$1;
1285
- parent?: Node$1;
1286
- }
1287
- declare interface TSTypeAssertion$1 extends Span$1 {
1288
- type: "TSTypeAssertion";
1289
- typeAnnotation: TSType$1;
1290
- expression: Expression$1;
1291
- parent?: Node$1;
1292
- }
1293
- declare interface TSTypeLiteral extends Span$1 {
1294
- type: "TSTypeLiteral";
1295
- members: Array<TSSignature>;
1296
- parent?: Node$1;
1297
- }
1298
- declare type TSTypeName = IdentifierReference$1 | TSQualifiedName$1 | ThisExpression$1;
1299
- declare interface TSTypeOperator$1 extends Span$1 {
1300
- type: "TSTypeOperator";
1301
- operator: TSTypeOperatorOperator;
1302
- typeAnnotation: TSType$1;
1303
- parent?: Node$1;
1304
- }
1305
- declare type TSTypeOperatorOperator = "keyof" | "unique" | "readonly";
1306
- declare interface TSTypeParameter extends Span$1 {
1307
- type: "TSTypeParameter";
1308
- name: BindingIdentifier$1;
1309
- constraint: TSType$1 | null;
1310
- default: TSType$1 | null;
1311
- in: boolean;
1312
- out: boolean;
1313
- const: boolean;
1314
- parent?: Node$1;
1315
- }
1316
- declare interface TSTypeParameterDeclaration$1 extends Span$1 {
1317
- type: "TSTypeParameterDeclaration";
1318
- params: Array<TSTypeParameter>;
1319
- parent?: Node$1;
1320
- }
1321
- declare interface TSTypeParameterInstantiation$1 extends Span$1 {
1322
- type: "TSTypeParameterInstantiation";
1323
- params: Array<TSType$1>;
1324
- parent?: Node$1;
1325
- }
1326
- declare interface TSTypePredicate$1 extends Span$1 {
1327
- type: "TSTypePredicate";
1328
- parameterName: TSTypePredicateName;
1329
- asserts: boolean;
1330
- typeAnnotation: TSTypeAnnotation$1 | null;
1331
- parent?: Node$1;
1332
- }
1333
- declare type TSTypePredicateName = IdentifierName$1 | TSThisType;
1334
- declare interface TSTypeQuery$1 extends Span$1 {
1335
- type: "TSTypeQuery";
1336
- exprName: TSTypeQueryExprName;
1337
- typeArguments: TSTypeParameterInstantiation$1 | null;
1338
- parent?: Node$1;
1339
- }
1340
- declare type TSTypeQueryExprName = TSImportType$1 | TSTypeName;
1341
- declare interface TSTypeReference$1 extends Span$1 {
1342
- type: "TSTypeReference";
1343
- typeName: TSTypeName;
1344
- typeArguments: TSTypeParameterInstantiation$1 | null;
1345
- parent?: Node$1;
1346
- }
1347
- declare interface TSUndefinedKeyword extends Span$1 {
1348
- type: "TSUndefinedKeyword";
1349
- parent?: Node$1;
1350
- }
1351
- declare interface TSUnionType$1 extends Span$1 {
1352
- type: "TSUnionType";
1353
- types: Array<TSType$1>;
1354
- parent?: Node$1;
1355
- }
1356
- declare interface TSUnknownKeyword extends Span$1 {
1357
- type: "TSUnknownKeyword";
1358
- parent?: Node$1;
1359
- }
1360
- declare interface TSVoidKeyword extends Span$1 {
1361
- type: "TSVoidKeyword";
1362
- parent?: Node$1;
1363
- }
1364
- declare interface UnaryExpression$1 extends Span$1 {
1365
- type: "UnaryExpression";
1366
- operator: UnaryOperator;
1367
- argument: Expression$1;
1368
- prefix: true;
1369
- parent?: Node$1;
1370
- }
1371
- declare type UnaryOperator = "+" | "-" | "!" | "~" | "typeof" | "void" | "delete";
1372
- declare interface UpdateExpression$1 extends Span$1 {
1373
- type: "UpdateExpression";
1374
- operator: UpdateOperator;
1375
- prefix: boolean;
1376
- argument: SimpleAssignmentTarget$1;
1377
- parent?: Node$1;
1378
- }
1379
- declare type UpdateOperator = "++" | "--";
1380
- declare interface V8IntrinsicExpression extends Span$1 {
1381
- type: "V8IntrinsicExpression";
1382
- name: IdentifierName$1;
1383
- arguments: Array<Argument$1>;
1384
- parent?: Node$1;
1385
- }
1386
- declare interface VariableDeclaration$1 extends Span$1 {
1387
- type: "VariableDeclaration";
1388
- kind: VariableDeclarationKind;
1389
- declarations: Array<VariableDeclarator$1>;
1390
- declare?: boolean;
1391
- parent?: Node$1;
1392
- }
1393
- declare type VariableDeclarationKind = "var" | "let" | "const" | "using" | "await using";
1394
- declare interface VariableDeclarator$1 extends Span$1 {
1395
- type: "VariableDeclarator";
1396
- id: BindingPattern$1;
1397
- init: Expression$1 | null;
1398
- definite?: boolean;
1399
- parent?: Node$1;
1400
- }
1401
- declare interface WhileStatement$1 extends Span$1 {
1402
- type: "WhileStatement";
1403
- test: Expression$1;
1404
- body: Statement$1;
1405
- parent?: Node$1;
1406
- }
1407
- declare interface WithStatement$1 extends Span$1 {
1408
- type: "WithStatement";
1409
- object: Expression$1;
1410
- body: Statement$1;
1411
- parent?: Node$1;
1412
- }
1413
- declare interface YieldExpression$1 extends Span$1 {
1414
- type: "YieldExpression";
1415
- delegate: boolean;
1416
- argument: Expression$1 | null;
1417
- parent?: Node$1;
1418
- }
1419
- //#endregion
1420
- //#region src/Plugins.d.ts
1421
- type PluginKind = WorkerPluginKind | 'Evaluator';
1422
- interface WorkerPluginDescriptor<K extends WorkerPluginKind = WorkerPluginKind> {
1423
- readonly kind: K;
1424
- readonly name: string;
1425
- readonly workerEntry: string;
1426
- }
1427
- interface EvaluatorPluginDescriptor {
1428
- readonly kind: 'Evaluator';
1429
- readonly name: string;
1430
- }
1431
- type AnyWorkerPluginDescriptor = { [K in WorkerPluginKind]: WorkerPluginDescriptor<K>; }[WorkerPluginKind];
1432
- type AnyPluginDescriptor = AnyWorkerPluginDescriptor | EvaluatorPluginDescriptor;
1433
- type PluginDescriptorOf<K extends PluginKind> = Extract<AnyPluginDescriptor, {
1434
- readonly kind: K;
1435
- }>;
1436
- type PluginDescriptor<K extends PluginKind = PluginKind> = PluginDescriptorOf<K>;
1437
- interface WorkerPluginSource<K extends WorkerPluginKind = WorkerPluginKind> {
1438
- readonly kind: K;
1439
- readonly name: string;
1440
- readonly modulePath: string;
1441
- readonly workerEntry: string;
1442
- }
1443
- interface EvaluatorPluginSource {
1444
- readonly kind: 'Evaluator';
1445
- readonly name: string;
1446
- readonly modulePath: string;
1447
- }
1448
- type AnyWorkerPluginSource = { [K in WorkerPluginKind]: WorkerPluginSource<K>; }[WorkerPluginKind];
1449
- type PluginSource = AnyWorkerPluginSource | EvaluatorPluginSource;
1450
- interface LoadedPlugins<A = unknown> {
1451
- readonly schemaContributions: readonly Record<string, A>[];
1452
- readonly pluginsByKind: HashMap.HashMap<PluginKind, readonly PluginDescriptor[]>;
1453
- readonly pluginModulePaths: readonly string[];
1454
- readonly pluginSources: readonly PluginSource[];
1455
- readonly ignorers: readonly Ignorer[];
1456
- }
1457
- //#endregion
1458
- //#region src/Config.schema.d.ts
1459
- declare const ConfigDocumentSchema: S.$Record<S.String, S.Unknown>;
1460
- declare const ImportedModuleSchema: S.Struct<{
1461
- readonly default: S.optional<S.Unknown>;
1462
- }>;
1463
- declare const ConfigFileNotFoundError_base: S.Class<ConfigFileNotFoundError, S.TaggedStruct<"ConfigFileNotFoundError", {
1464
- readonly file: S.String;
1465
- }>, import("effect/Cause").YieldableError>;
1466
- declare class ConfigFileNotFoundError extends ConfigFileNotFoundError_base {
1467
- readonly exitClass: 'ConfigError';
1468
- }
1469
- declare const ConfigFileUnsupportedError_base: S.Class<ConfigFileUnsupportedError, S.TaggedStruct<"ConfigFileUnsupportedError", {
1470
- readonly file: S.String;
1471
- readonly hint: S.String;
1472
- }>, import("effect/Cause").YieldableError>;
1473
- declare class ConfigFileUnsupportedError extends ConfigFileUnsupportedError_base {
1474
- readonly exitClass: 'ConfigError';
1475
- get message(): string;
1476
- }
1477
- declare const ConfigFileUnreadableError_base: S.Class<ConfigFileUnreadableError, S.TaggedStruct<"ConfigFileUnreadableError", {
1478
- readonly file: S.String;
1479
- readonly cause: S.Unknown;
1480
- }>, import("effect/Cause").YieldableError>;
1481
- declare class ConfigFileUnreadableError extends ConfigFileUnreadableError_base {
1482
- readonly exitClass: 'ConfigError';
1483
- }
1484
- declare const ConfigFileInvalidError_base: S.Class<ConfigFileInvalidError, S.TaggedStruct<"ConfigFileInvalidError", {
1485
- readonly file: S.String;
1486
- readonly cause: S.Unknown;
1487
- }>, import("effect/Cause").YieldableError>;
1488
- declare class ConfigFileInvalidError extends ConfigFileInvalidError_base {
1489
- readonly exitClass: 'ConfigError';
1490
- }
1491
- declare const ConfigError_base: S.Class<ConfigError, S.TaggedStruct<"ConfigError", {
1492
- readonly message: S.String;
1493
- }>, import("effect/Cause").YieldableError>;
1494
- declare class ConfigError extends ConfigError_base {
1495
- readonly exitClass: 'ConfigError';
1496
- }
1497
- declare const ReadConfigCommand_base: S.Class<ReadConfigCommand, S.TaggedStruct<"ReadConfigCommand", {
1498
- readonly cliOptions: S.$Record<S.String, S.Unknown>;
1499
- readonly basePath: S.String;
1500
- }>, {}>;
1501
- declare class ReadConfigCommand extends ReadConfigCommand_base {}
1502
- declare const MergeCommand_base: S.Class<MergeCommand, S.TaggedStruct<"MergeCommand", {
1503
- readonly base: S.$Record<S.String, S.Unknown>;
1504
- readonly overrides: S.$Record<S.String, S.Unknown>;
1505
- }>, {}>;
1506
- declare class MergeCommand extends MergeCommand_base {}
1507
- declare const MergeResult_base: S.Class<MergeResult, S.TaggedStruct<"MergeResult", {
1508
- readonly merged: S.$Record<S.String, S.Unknown>;
1509
- }>, {}>;
1510
- declare class MergeResult extends MergeResult_base {}
1511
- declare const ExtendsStepDocumentSchema: S.Struct<{
1512
- readonly path: S.String;
1513
- readonly options: S.$Record<S.String, S.Unknown>;
1514
- }>;
1515
- type ExtendsStepDocument = typeof ExtendsStepDocumentSchema.Type;
1516
- declare const ExtendsStepStateSchema: S.Struct<{
1517
- readonly visited: S.$Array<S.String>;
1518
- readonly documents: S.$Array<S.Struct<{
1519
- readonly path: S.String;
1520
- readonly options: S.$Record<S.String, S.Unknown>;
1521
- }>>;
1522
- }>;
1523
- type ExtendsStepState = typeof ExtendsStepStateSchema.Type;
1524
- type ExtendsRefusalReason = 'cycle' | 'non-string-extends';
1525
- declare const ExtendsStepDone_base: S.Class<ExtendsStepDone, S.TaggedStruct<"done", {
1526
- readonly options: S.$Record<S.String, S.Unknown>;
1527
- }>, {}>;
1528
- declare class ExtendsStepDone extends ExtendsStepDone_base {}
1529
- declare const ExtendsStepRead_base: S.Class<ExtendsStepRead, S.TaggedStruct<"read", {
1530
- readonly path: S.String;
1531
- readonly state: S.Struct<{
1532
- readonly visited: S.$Array<S.String>;
1533
- readonly documents: S.$Array<S.Struct<{
1534
- readonly path: S.String;
1535
- readonly options: S.$Record<S.String, S.Unknown>;
1536
- }>>;
1537
- }>;
1538
- }>, {}>;
1539
- declare class ExtendsStepRead extends ExtendsStepRead_base {}
1540
- declare const ExtendsStepResolve_base: S.Class<ExtendsStepResolve, S.TaggedStruct<"resolve", {
1541
- readonly specifier: S.String;
1542
- readonly state: S.Struct<{
1543
- readonly visited: S.$Array<S.String>;
1544
- readonly documents: S.$Array<S.Struct<{
1545
- readonly path: S.String;
1546
- readonly options: S.$Record<S.String, S.Unknown>;
1547
- }>>;
1548
- }>;
1549
- }>, {}>;
1550
- declare class ExtendsStepResolve extends ExtendsStepResolve_base {}
1551
- declare const ExtendsStepRefused_base: S.Class<ExtendsStepRefused, S.TaggedStruct<"refused", {
1552
- readonly reason: S.Literals<readonly ["cycle", "non-string-extends"]>;
1553
- readonly file: S.String;
1554
- }>, {}>;
1555
- declare class ExtendsStepRefused extends ExtendsStepRefused_base {}
1556
- type ExtendsStepDecision = ExtendsStepDone | ExtendsStepRead | ExtendsStepResolve | ExtendsStepRefused;
1557
- declare const survivorsPriorReport: S.optionalKey<S.String>;
1558
- declare const extendsPropertySchema: S.optionalKey<S.String>;
1559
- declare const forkOptionsSchema: S.StructWithRest<S.Struct<{
1560
- readonly allowConsoleColors: S.withDecodingDefaultKey<S.Boolean, never>;
1561
- readonly buildCommand: S.optional<S.String>;
1562
- readonly checkers: S.withDecodingDefaultKey<S.$Array<S.Struct<{
1563
- readonly plugin: S.String;
1564
- readonly nodeArgs: S.optional<S.$Array<S.String>>;
1565
- readonly options: S.optional<S.$Record<S.String, S.Unknown>>;
1566
- }>>, never>;
1567
- readonly checkerNodeArgs: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
1568
- readonly concurrency: S.optional<S.Union<readonly [S.Finite, S.String]>>;
1569
- readonly commandRunner: S.withDecodingDefaultKey<S.StructWithRest<S.Struct<{
1570
- readonly command: S.withDecodingDefaultKey<S.String, never>;
1571
- }>, readonly [S.$Record<S.String, S.Unknown>]>, never>;
1572
- readonly coverageAnalysis: S.withDecodingDefaultKey<S.Literals<readonly ["off", "all", "perTest"]>, never>;
1573
- readonly clearTextReporter: S.withDecodingDefaultKey<S.StructWithRest<S.Struct<{
1574
- readonly allowColor: S.withDecodingDefaultKey<S.Boolean, never>;
1575
- readonly allowEmojis: S.withDecodingDefaultKey<S.Boolean, never>;
1576
- readonly logTests: S.withDecodingDefaultKey<S.Boolean, never>;
1577
- readonly maxTestsToLog: S.withDecodingDefaultKey<S.Finite, never>;
1578
- readonly reportTests: S.withDecodingDefaultKey<S.Boolean, never>;
1579
- readonly reportMutants: S.withDecodingDefaultKey<S.Boolean, never>;
1580
- readonly reportScoreTable: S.withDecodingDefaultKey<S.Boolean, never>;
1581
- readonly skipFull: S.withDecodingDefaultKey<S.Boolean, never>;
1582
- }>, readonly [S.$Record<S.String, S.Unknown>]>, never>;
1583
- readonly dryRunOnly: S.withDecodingDefaultKey<S.Boolean, never>;
1584
- readonly ignorePatterns: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
1585
- readonly ignoreStatic: S.withDecodingDefaultKey<S.Boolean, never>;
1586
- readonly incremental: S.withDecodingDefaultKey<S.Boolean, never>;
1587
- readonly incrementalFile: S.withDecodingDefaultKey<S.String, never>;
1588
- readonly progressStreamFile: S.withDecodingDefaultKey<S.String, never>;
1589
- readonly force: S.withDecodingDefaultKey<S.Boolean, never>;
1590
- readonly fileLogLevel: S.withDecodingDefaultKey<S.Literals<readonly ["off", "fatal", "error", "warn", "info", "debug", "trace"]>, never>;
1591
- readonly inPlace: S.withDecodingDefaultKey<S.Boolean, never>;
1592
- readonly logLevel: S.withDecodingDefaultKey<S.Literals<readonly ["off", "fatal", "error", "warn", "info", "debug", "trace"]>, never>;
1593
- readonly maxConcurrentTestRunners: S.withDecodingDefaultKey<S.Finite, never>;
1594
- readonly maxTestRunnerReuse: S.withDecodingDefaultKey<S.Finite, never>;
1595
- readonly mutate: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
1596
- readonly mutator: S.withDecodingDefaultKey<S.Struct<{
1597
- readonly excludedMutations: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
1598
- readonly optInMutations: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
1599
- }>, never>;
1600
- readonly packageManager: S.optional<S.Literals<readonly ["npm", "yarn", "pnpm"]>>;
1601
- readonly plugins: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
1602
- readonly appendPlugins: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
1603
- readonly reporters: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
1604
- readonly htmlReporter: S.withDecodingDefaultKey<S.Struct<{
1605
- readonly fileName: S.withDecodingDefaultKey<S.String, never>;
1606
- }>, never>;
1607
- readonly jsonReporter: S.withDecodingDefaultKey<S.Struct<{
1608
- readonly fileName: S.withDecodingDefaultKey<S.String, never>;
1609
- }>, never>;
1610
- readonly disableTypeChecks: S.withDecodingDefaultKey<S.Union<readonly [S.Boolean, S.String]>, never>;
1611
- readonly symlinkNodeModules: S.withDecodingDefaultKey<S.Boolean, never>;
1612
- readonly tempDirName: S.withDecodingDefaultKey<S.String, never>;
1613
- readonly cleanTempDir: S.withDecodingDefaultKey<S.Literals<readonly ["always", false, true]>, never>;
1614
- readonly testRunner: S.withDecodingDefaultKey<S.Union<readonly [S.String, S.Struct<{
1615
- readonly plugin: S.String;
1616
- readonly nodeArgs: S.optional<S.$Array<S.String>>;
1617
- readonly options: S.optional<S.$Record<S.String, S.Unknown>>;
1618
- }>]>, never>;
1619
- readonly testRunnerNodeArgs: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
1620
- readonly thresholds: S.withDecodingDefaultKey<S.decodeTo<S.declare<{
1621
- readonly high: number;
1622
- readonly low: number;
1623
- readonly break: number | null;
1624
- }, {
1625
- readonly high: number;
1626
- readonly low: number;
1627
- readonly break: number | null;
1628
- }>, S.Struct<{
1629
- readonly high: S.withDecodingDefaultKey<S.Finite, never>;
1630
- readonly low: S.withDecodingDefaultKey<S.Finite, never>;
1631
- readonly break: S.withDecodingDefaultKey<S.NullOr<S.Finite>, never>;
1632
- }>, never, never>, never>;
1633
- readonly timeoutFactor: S.withDecodingDefaultKey<S.Finite, never>;
1634
- readonly timeoutMS: S.withDecodingDefaultKey<S.Finite, never>;
1635
- readonly dryRunTimeoutMinutes: S.withDecodingDefaultKey<S.Finite, never>;
1636
- readonly tsconfigFile: S.withDecodingDefaultKey<S.String, never>;
1637
- readonly warnings: S.withDecodingDefaultKey<S.Union<readonly [S.Boolean, S.StructWithRest<S.Struct<{
1638
- readonly unknownOptions: S.withDecodingDefaultKey<S.Boolean, never>;
1639
- readonly preprocessorErrors: S.withDecodingDefaultKey<S.Boolean, never>;
1640
- readonly unserializableOptions: S.withDecodingDefaultKey<S.Boolean, never>;
1641
- readonly slow: S.withDecodingDefaultKey<S.Boolean, never>;
1642
- }>, readonly [S.$Record<S.String, S.Unknown>]>]>, never>;
1643
- readonly disableBail: S.withDecodingDefaultKey<S.Boolean, never>;
1644
- readonly allowEmpty: S.withDecodingDefaultKey<S.Boolean, never>;
1645
- readonly ignorers: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
1646
- readonly testFiles: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
1647
- readonly survivorsPriorReport: S.optionalKey<S.String>;
1648
- readonly extends: S.optionalKey<S.String>;
1649
- }>, readonly [S.$Record<S.String, S.Unknown>]>;
1650
- //#endregion
1651
- //#region src/ReporterStream.d.ts
1652
- declare const ReporterStageTypeId: unique symbol;
1653
- /**
1654
- * An attached reporter stage, opaque at the engine boundary: the published
1655
- * phase types carry this handle so the attachment machinery (queues, fibers,
1656
- * the state latch) never reaches an adopter's compiler. Constructed only by
1657
- * `attachReporterFactories`.
1658
- */
1659
- interface ReporterStage {
1660
- readonly [ReporterStageTypeId]: typeof ReporterStageTypeId;
1661
- }
1662
- declare const REPORTER_EVENT_BATCH_BOUND = 128;
1663
- type ReporterWorkerClient = RpcClient.RpcClient<RpcGroup.Rpcs<typeof ReporterRpcs>, RpcClientError>;
1664
- declare const reporterWorkerFactory: (client: ReporterWorkerClient) => ReporterFactory;
1665
- interface SpawnReporterWorkerParams {
1666
- readonly entrypoint: string;
1667
- readonly projectBasePath: string;
1668
- readonly execArgv: readonly string[];
1669
- readonly options: StrykerOptions;
1670
- readonly tempDirPrefix: string;
1671
- }
1672
- declare const spawnReporterWorker: (params: SpawnReporterWorkerParams) => Effect$1.Effect<ReporterWorkerClient, WorkerBootError, Scope.Scope | WorkerLauncher>;
1673
- //#endregion
1674
- //#region src/Project.d.ts
1675
- interface ProjectFile extends FileDescription {
1676
- readonly name: string;
1677
- readonly mutate: MutateDescription;
1678
- readonly content: string | undefined;
1679
- readonly originalContent: string | undefined;
1680
- }
1681
- interface Project {
1682
- readonly fileDescriptions: FileDescriptions;
1683
- readonly incrementalReport: MutationTestResult | undefined;
1684
- readonly testFiles: readonly string[];
1685
- readonly files: MutableHashMap.MutableHashMap<string, ProjectFile>;
1686
- readonly filesToMutate: MutableHashMap.MutableHashMap<string, ProjectFile>;
1687
- }
1688
- //#endregion
1689
- //#region src/stryker-error.schema.d.ts
1690
- declare const StrykerError_base: Schema.Class<StrykerError, Schema.TaggedStruct<"StrykerError", {
1691
- readonly message: Schema.String;
1692
- readonly cause: Schema.optional<Schema.Unknown>;
1693
- }>, import("effect/Cause").YieldableError>;
1694
- declare class StrykerError extends StrykerError_base {}
1695
- //#endregion
1696
- //#region src/Sandbox.d.ts
1697
- interface SandboxHandle {
1698
- readonly workingDirectory: string;
1699
- readonly sandboxFileFor: (fileName: string) => string;
1700
- readonly originalFileFor: (sandboxFileName: string) => string;
1701
- }
1702
- //#endregion
1703
- //#region src/run/RunEnvironment.d.ts
1704
- interface RunEnvironmentShape {
1705
- readonly runId: string;
1706
- readonly resolvedMode: ResolvedMode;
1707
- readonly runStartedAt: number;
1708
- readonly basePath: string;
1709
- readonly builtinReporters: Readonly<Record<string, ReporterFactory>>;
1710
- readonly allowConsoleColors: boolean;
1711
- }
1712
- declare const RunEnvironment_base: Context.ServiceClass<RunEnvironment, "@systemfsoftware/stryker-js/run/RunEnvironment", RunEnvironmentShape>;
1713
- declare class RunEnvironment extends RunEnvironment_base {}
1714
- //#endregion
1715
- //#region src/run/prepare.cell.d.ts
1716
- interface PrepareDone {
1717
- readonly project: Project;
1718
- readonly loadedPlugins: LoadedPlugins;
1719
- readonly ignorers: readonly Ignorer[];
1720
- readonly options: StrykerOptions;
1721
- readonly temporaryDirectoryPath: string;
1722
- readonly reporterStage: ReporterStage;
1723
- }
1724
- interface PrepareExecutorArgs {
1725
- cliOptions: PartialStrykerOptions;
1726
- targetMutatePatterns: string[] | undefined;
1727
- }
1728
- //#endregion
1729
- //#region src/run/instrument.cell.d.ts
1730
- interface InstrumentDone extends PrepareDone {
1731
- readonly mutants: readonly Mutant[];
1732
- readonly sandbox: SandboxHandle;
1733
- readonly concurrency: {
1734
- readonly testRunners: number;
1735
- readonly checkers: number;
1736
- };
1737
- }
1738
- //#endregion
1739
- //#region src/run/dry-run.cell.d.ts
1740
- interface DryRunDone extends InstrumentDone {
1741
- readonly dryRunResult: CompleteDryRunResult;
1742
- readonly testCoverage: TestCoverage;
1743
- readonly timeOverhead: EffectDuration.Duration;
1744
- }
1745
- //#endregion
1746
- //#region src/run/StageServices.d.ts
1747
- type StageServices = ChildProcessSpawner.ChildProcessSpawner | FileSystem.FileSystem | IdGenerator | Path.Path | RunEnvironment | RunEvents | Scope.Scope | Stdio.Stdio | WorkerLauncher;
1748
- type EnginePorts = ChildProcessSpawner.ChildProcessSpawner | FileSystem.FileSystem | Path.Path | Stdio.Stdio | WorkerLauncher;
1749
- type RunStageServices = RunEnvironment | RunEvents | IdGenerator | Scope.Scope;
1750
- type WiredRunLayer = Layer.Layer<RunStageServices | EnginePorts, never, never>;
1751
- //#endregion
1752
- //#region src/run/mutation-test.cell.d.ts
1753
- interface MutationTestDone {
1754
- readonly results: readonly RunMutantResult[];
1755
- readonly verdict: ExitClass | null;
1756
- }
1757
- //#endregion
1758
- export { PluginKind as $, ExtendsStepDocument as A, MergeResult as B, ConfigError as C, ConfigFileUnsupportedError as D, ConfigFileUnreadableError as E, ExtendsStepResolve as F, AnyPluginDescriptor as G, extendsPropertySchema as H, ExtendsStepState as I, EvaluatorPluginDescriptor as J, AnyWorkerPluginDescriptor as K, ExtendsStepStateSchema as L, ExtendsStepDone as M, ExtendsStepRead as N, ExtendsRefusalReason as O, ExtendsStepRefused as P, PluginDescriptorOf as Q, ImportedModuleSchema as R, ConfigDocumentSchema as S, RunIdentityShape as St, ConfigFileNotFoundError as T, forkOptionsSchema as U, ReadConfigCommand as V, survivorsPriorReport as W, LoadedPlugins as X, EvaluatorPluginSource as Y, PluginDescriptor as Z, ReporterStage as _, OutOfMemoryError as _t, WiredRunLayer as a, WorkerBootError as at, reporterWorkerFactory as b, RunEvents as bt, PrepareDone as c, WorkerLauncher as ct, RunEnvironmentShape as d, connectRetry as dt, PluginSource as et, SandboxHandle as f, makeWorkerClient as ft, REPORTER_EVENT_BATCH_BOUND as g, ChildProcessCrashedError as gt, ProjectFile as h, classifyWorkerExit as ht, StageServices as i, SpawnedSocketWorker as it, ExtendsStepDocumentSchema as j, ExtendsStepDecision as k, PrepareExecutorArgs as l, WorkerLauncherShape as lt, Project as m, IdGeneratorShape as mt, EnginePorts as n, WorkerPluginSource as nt, DryRunDone as o, WorkerClientParams as ot, StrykerError as p, IdGenerator as pt, AnyWorkerPluginSource as q, RunStageServices as r, Ignorer as rt, InstrumentDone as s, WorkerExit as st, MutationTestDone as t, WorkerPluginDescriptor as tt, RunEnvironment as u, WorkerSpawnParams as ut, ReporterWorkerClient as v, WorkerBootTimeoutError as vt, ConfigFileInvalidError as w, spawnReporterWorker as x, RunIdentity as xt, SpawnReporterWorkerParams as y, TestCoverage as yt, MergeCommand as z };