@systemfsoftware/stryker-js 13.1.0 → 15.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 +62 -0
- package/README.md +30 -0
- package/dist/Run.schema-B1HZugu9.d.mts +24 -0
- package/dist/Run.schema-DuaneDGd.mjs +57 -0
- package/dist/RunEnvironment.service-B1bsWOQ9.d.mts +2927 -0
- package/dist/config.d.mts +4 -4
- package/dist/config.mjs +1 -1
- package/dist/events.d.mts +2 -2
- package/dist/events.mjs +2 -2
- package/dist/{index-Ptvmn934.d.mts → index-Cf9G6kA8.d.mts} +1683 -3073
- package/dist/index.d.mts +622 -105
- package/dist/index.mjs +1104 -26
- package/dist/main.mjs +53956 -34882
- package/dist/{merge-config-BVdwN_LJ.d.mts → merge-config-BdQdK3PM.d.mts} +4 -4
- package/dist/merge-config-zsGl1aWc.mjs +1473 -0
- package/dist/promises.d.mts +3 -3
- package/dist/promises.mjs +1 -1
- package/dist/run-stages-aBT_QAfO.mjs +20687 -0
- package/package.json +17 -17
- package/dist/Run.schema-BwLLAYqu.d.mts +0 -325
- package/dist/Run.schema-Cv2_Kup0.mjs +0 -272
- package/dist/RunEnvironment.service-rkMZ8nm1.d.mts +0 -530
- package/dist/dist-CQ7r4AaH.mjs +0 -8142
- package/dist/merge-config-DZHwEkGY.mjs +0 -63
- package/dist/run-stages.cell-rdoY0cVH.mjs +0 -8857
|
@@ -0,0 +1,2927 @@
|
|
|
1
|
+
import { a as mod_d_exports$6, c as mod_d_exports$9, d as Program$2, f as Statement, i as mod_d_exports$5, l as Ignorer$1, n as mod_d_exports$2$1, o as mod_d_exports$7, r as mod_d_exports$4, s as mod_d_exports$8, t as mod_d_exports$3 } from "./index-Cf9G6kA8.mjs";
|
|
2
|
+
import "./Run.schema-B1HZugu9.mjs";
|
|
3
|
+
import { Cell, Handle, Sandwich, Workflow } from "@systemfsoftware/effect-cell-types";
|
|
4
|
+
import * as S from "effect/Schema";
|
|
5
|
+
import * as Option$1 from "effect/Option";
|
|
6
|
+
import * as Context from "effect/Context";
|
|
7
|
+
import { Schema } from "effect";
|
|
8
|
+
import * as Effect$1 from "effect/Effect";
|
|
9
|
+
import * as RpcGroup from "effect/rpc/RpcGroup";
|
|
10
|
+
import "effect/Array";
|
|
11
|
+
import * as Result from "effect/Result";
|
|
12
|
+
import * as Cause from "effect/Cause";
|
|
13
|
+
import * as FileSystem from "effect/FileSystem";
|
|
14
|
+
import * as Path from "effect/Path";
|
|
15
|
+
import * as Stream from "effect/Stream";
|
|
16
|
+
import * as Layer from "effect/Layer";
|
|
17
|
+
import * as Queue from "effect/Queue";
|
|
18
|
+
import * as Scope from "effect/Scope";
|
|
19
|
+
import * as HashMap from "effect/HashMap";
|
|
20
|
+
import * as MutableHashMap from "effect/MutableHashMap";
|
|
21
|
+
import * as EffectDuration from "effect/Duration";
|
|
22
|
+
import * as RpcClient from "effect/rpc/RpcClient";
|
|
23
|
+
import * as Stdio from "effect/Stdio";
|
|
24
|
+
import * as ChildProcessSpawner from "effect/process/ChildProcessSpawner";
|
|
25
|
+
import { RpcClientError } from "effect/rpc/RpcClientError";
|
|
26
|
+
import * as Socket from "effect/socket/Socket";
|
|
27
|
+
import { PlatformError } from "effect/PlatformError";
|
|
28
|
+
import * as MutableHashSet from "effect/MutableHashSet";
|
|
29
|
+
import "effect/Console";
|
|
30
|
+
import "effect/Runtime";
|
|
31
|
+
//#region src/Worker.schema.d.ts
|
|
32
|
+
/**
|
|
33
|
+
* The child process hosting a worker ended when it was not supposed to.
|
|
34
|
+
*/
|
|
35
|
+
declare const WorkerExitTypeId: unique symbol;
|
|
36
|
+
type WorkerExitTypeId = typeof WorkerExitTypeId;
|
|
37
|
+
declare const ChildProcessCrashedError_base: Schema.Class<ChildProcessCrashedError, Schema.TaggedStruct<"ChildProcessCrashedError", {
|
|
38
|
+
readonly pid: Schema.Int;
|
|
39
|
+
readonly exit: Schema.Union<readonly [Schema.TaggedStruct<"Code", {
|
|
40
|
+
readonly code: Schema.Int;
|
|
41
|
+
}>, Schema.TaggedStruct<"Signal", {
|
|
42
|
+
readonly signal: Schema.NonEmptyString;
|
|
43
|
+
}>]>;
|
|
44
|
+
readonly cause: Schema.optional<Schema.String>;
|
|
45
|
+
}>, import("effect/Cause").YieldableError>;
|
|
46
|
+
declare class ChildProcessCrashedError extends ChildProcessCrashedError_base {
|
|
47
|
+
readonly [WorkerExitTypeId]: symbol;
|
|
48
|
+
readonly exitClass: 'InternalError';
|
|
49
|
+
get message(): string;
|
|
50
|
+
}
|
|
51
|
+
declare const OutOfMemoryError_base: Schema.Class<OutOfMemoryError, Schema.TaggedStruct<"OutOfMemoryError", {
|
|
52
|
+
readonly pid: Schema.Int;
|
|
53
|
+
readonly exitCode: Schema.Int;
|
|
54
|
+
}>, import("effect/Cause").YieldableError>;
|
|
55
|
+
declare class OutOfMemoryError extends OutOfMemoryError_base {
|
|
56
|
+
readonly [WorkerExitTypeId]: symbol;
|
|
57
|
+
readonly exitClass: 'RuntimeError';
|
|
58
|
+
get message(): string;
|
|
59
|
+
}
|
|
60
|
+
type WorkerExit = ChildProcessCrashedError | OutOfMemoryError;
|
|
61
|
+
type WorkerBootError = WorkerExit | WorkerBootTimeoutError;
|
|
62
|
+
declare const WorkerBootTimeoutError_base: Schema.Class<WorkerBootTimeoutError, Schema.TaggedStruct<"WorkerBootTimeoutError", {
|
|
63
|
+
readonly pid: Schema.Int;
|
|
64
|
+
}>, import("effect/Cause").YieldableError>;
|
|
65
|
+
declare class WorkerBootTimeoutError extends WorkerBootTimeoutError_base {
|
|
66
|
+
readonly exitClass: 'InternalError';
|
|
67
|
+
get message(): string;
|
|
68
|
+
}
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region src/ConfigError.schema.d.ts
|
|
71
|
+
declare const ConfigFileNotFoundError_base: S.Class<ConfigFileNotFoundError, S.TaggedStruct<"ConfigFileNotFoundError", {
|
|
72
|
+
readonly file: S.String;
|
|
73
|
+
}>, import("effect/Cause").YieldableError>;
|
|
74
|
+
declare class ConfigFileNotFoundError extends ConfigFileNotFoundError_base {
|
|
75
|
+
readonly exitClass: 'ConfigError';
|
|
76
|
+
get message(): string;
|
|
77
|
+
}
|
|
78
|
+
declare const ConfigFileUnsupportedError_base: S.Class<ConfigFileUnsupportedError, S.TaggedStruct<"ConfigFileUnsupportedError", {
|
|
79
|
+
readonly file: S.String;
|
|
80
|
+
readonly hint: S.String;
|
|
81
|
+
}>, import("effect/Cause").YieldableError>;
|
|
82
|
+
declare class ConfigFileUnsupportedError extends ConfigFileUnsupportedError_base {
|
|
83
|
+
readonly exitClass: 'ConfigError';
|
|
84
|
+
get message(): string;
|
|
85
|
+
}
|
|
86
|
+
declare const ConfigFileUnreadableError_base: S.Class<ConfigFileUnreadableError, S.TaggedStruct<"ConfigFileUnreadableError", {
|
|
87
|
+
readonly file: S.String;
|
|
88
|
+
readonly cause: S.Unknown;
|
|
89
|
+
}>, import("effect/Cause").YieldableError>;
|
|
90
|
+
declare class ConfigFileUnreadableError extends ConfigFileUnreadableError_base {
|
|
91
|
+
readonly exitClass: 'ConfigError';
|
|
92
|
+
get message(): string;
|
|
93
|
+
}
|
|
94
|
+
declare const ConfigFileInvalidError_base: S.Class<ConfigFileInvalidError, S.TaggedStruct<"ConfigFileInvalidError", {
|
|
95
|
+
readonly file: S.String;
|
|
96
|
+
readonly cause: S.Unknown;
|
|
97
|
+
}>, import("effect/Cause").YieldableError>;
|
|
98
|
+
declare class ConfigFileInvalidError extends ConfigFileInvalidError_base {
|
|
99
|
+
readonly exitClass: 'ConfigError';
|
|
100
|
+
get message(): string;
|
|
101
|
+
}
|
|
102
|
+
declare const ConfigError_base: S.Class<ConfigError, S.TaggedStruct<"ConfigError", {
|
|
103
|
+
readonly message: S.String;
|
|
104
|
+
}>, import("effect/Cause").YieldableError>;
|
|
105
|
+
declare class ConfigError extends ConfigError_base {
|
|
106
|
+
readonly exitClass: 'ConfigError';
|
|
107
|
+
}
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region src/stryker-error.schema.d.ts
|
|
110
|
+
declare const StrykerError_base: Schema.Class<StrykerError, Schema.TaggedStruct<"StrykerError", {
|
|
111
|
+
readonly message: Schema.String;
|
|
112
|
+
readonly cause: Schema.optional<Schema.Unknown>;
|
|
113
|
+
}>, import("effect/Cause").YieldableError>;
|
|
114
|
+
declare class StrykerError extends StrykerError_base {}
|
|
115
|
+
//#endregion
|
|
116
|
+
//#region ../stryker-js-cli-contract/dist/index.d.mts
|
|
117
|
+
//#region src/output-mode.schema.d.ts
|
|
118
|
+
declare const OutputMode: S.Literals<readonly ["human", "machine"]>;
|
|
119
|
+
type OutputMode = typeof OutputMode.Type;
|
|
120
|
+
declare const ModeSignal: S.Literals<readonly ["flag", "env", "tty", "agent", "tool"]>;
|
|
121
|
+
type ModeSignal = typeof ModeSignal.Type;
|
|
122
|
+
declare namespace mod_d_exports {
|
|
123
|
+
export { ModeSignal, OutputMode };
|
|
124
|
+
}
|
|
125
|
+
//#endregion
|
|
126
|
+
//#region src/plugin-load-failure-reason.schema.d.ts
|
|
127
|
+
declare const PluginLoadFailureReason: Schema.Union<readonly [Schema.TaggedStruct<"PeerMissing", {
|
|
128
|
+
readonly peer: Schema.String;
|
|
129
|
+
}>, Schema.TaggedStruct<"PeerVersionUnsupported", {
|
|
130
|
+
readonly peer: Schema.String;
|
|
131
|
+
readonly detail: Schema.String;
|
|
132
|
+
}>, Schema.TaggedStruct<"PeerUnrecognized", {
|
|
133
|
+
readonly peer: Schema.String;
|
|
134
|
+
}>, Schema.TaggedStruct<"InvalidContribution", {
|
|
135
|
+
readonly detail: Schema.String;
|
|
136
|
+
}>, Schema.TaggedStruct<"ImportFailed", {
|
|
137
|
+
readonly cause: Schema.Unknown;
|
|
138
|
+
}>]>;
|
|
139
|
+
type PluginLoadFailureReason = typeof PluginLoadFailureReason.Type;
|
|
140
|
+
//#endregion
|
|
141
|
+
//#region src/run-event.schema.d.ts
|
|
142
|
+
declare const RunPhase: S.Literals<readonly ["prepare", "instrument", "dry-run", "mutation-test"]>;
|
|
143
|
+
type RunPhase = typeof RunPhase.Type;
|
|
144
|
+
declare const RunId: S.brand<S.String, "RunId">;
|
|
145
|
+
type RunId = typeof RunId.Type;
|
|
146
|
+
declare const RunStarted_base: S.Class<RunStarted, S.TaggedStruct<"stream", {
|
|
147
|
+
readonly schemaVersion: S.Literal<"2.0">;
|
|
148
|
+
readonly runId: S.brand<S.String, "RunId">;
|
|
149
|
+
readonly mode: S.Literals<readonly ["human", "machine"]>;
|
|
150
|
+
readonly signal: S.Literals<readonly ["flag", "env", "tty", "agent", "tool"]>;
|
|
151
|
+
}>, {}>;
|
|
152
|
+
declare class RunStarted extends RunStarted_base {}
|
|
153
|
+
declare const PhaseEntered_base: S.Class<PhaseEntered, S.TaggedStruct<"phase", {
|
|
154
|
+
readonly phase: S.Literals<readonly ["prepare", "instrument", "dry-run", "mutation-test"]>;
|
|
155
|
+
readonly elapsedMs: S.Finite;
|
|
156
|
+
}>, {}>;
|
|
157
|
+
declare class PhaseEntered extends PhaseEntered_base {}
|
|
158
|
+
declare const PlanKnown_base: S.Class<PlanKnown, S.TaggedStruct<"plan", {
|
|
159
|
+
readonly total: S.Int;
|
|
160
|
+
}>, {}>;
|
|
161
|
+
declare class PlanKnown extends PlanKnown_base {}
|
|
162
|
+
declare const MutantCost: S.Struct<{
|
|
163
|
+
readonly fixedOverheadMs: S.Finite;
|
|
164
|
+
readonly testBodyMs: S.Finite;
|
|
165
|
+
readonly testsExecuted: S.Int;
|
|
166
|
+
readonly shared: S.Boolean;
|
|
167
|
+
}>;
|
|
168
|
+
type MutantCost = typeof MutantCost.Type;
|
|
169
|
+
declare const RunMutantTestedEvent_base: S.Class<RunMutantTestedEvent, S.TaggedStruct<"mutantTested", {
|
|
170
|
+
readonly id: S.brand<S.String, "MutantId">;
|
|
171
|
+
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
172
|
+
readonly fileName: S.decodeTo<S.brand<S.String, "CanonicalFileName">, S.String, never, never>;
|
|
173
|
+
readonly location: S.decodeTo<S.declare<{
|
|
174
|
+
readonly start: {
|
|
175
|
+
readonly line: number;
|
|
176
|
+
readonly column: number;
|
|
177
|
+
};
|
|
178
|
+
readonly end: {
|
|
179
|
+
readonly line: number;
|
|
180
|
+
readonly column: number;
|
|
181
|
+
};
|
|
182
|
+
}, {
|
|
183
|
+
readonly start: {
|
|
184
|
+
readonly line: number;
|
|
185
|
+
readonly column: number;
|
|
186
|
+
};
|
|
187
|
+
readonly end: {
|
|
188
|
+
readonly line: number;
|
|
189
|
+
readonly column: number;
|
|
190
|
+
};
|
|
191
|
+
}>, S.Struct<{
|
|
192
|
+
readonly start: S.Struct<{
|
|
193
|
+
readonly line: S.Int;
|
|
194
|
+
readonly column: S.Int;
|
|
195
|
+
}>;
|
|
196
|
+
readonly end: S.Struct<{
|
|
197
|
+
readonly line: S.Int;
|
|
198
|
+
readonly column: S.Int;
|
|
199
|
+
}>;
|
|
200
|
+
}>, never, never>;
|
|
201
|
+
readonly mutatorName: S.brand<S.String, "MutatorName">;
|
|
202
|
+
readonly replacement: S.NullOr<S.String>;
|
|
203
|
+
readonly completed: S.Int;
|
|
204
|
+
readonly total: S.Int;
|
|
205
|
+
readonly static: S.Boolean;
|
|
206
|
+
readonly cost: S.NullOr<S.Struct<{
|
|
207
|
+
readonly fixedOverheadMs: S.Finite;
|
|
208
|
+
readonly testBodyMs: S.Finite;
|
|
209
|
+
readonly testsExecuted: S.Int;
|
|
210
|
+
readonly shared: S.Boolean;
|
|
211
|
+
}>>;
|
|
212
|
+
}>, {}>;
|
|
213
|
+
/**
|
|
214
|
+
* The machine-stream line a tested mutant is published as. Its wire shape is a
|
|
215
|
+
* published contract: the `mutant` tag and the `file`/`mutator` keys must not
|
|
216
|
+
* change. The line carries the verified fields of `Reporter.MutantTested` plus
|
|
217
|
+
* the static classification (R24) and the measured cost breakdown (R39).
|
|
218
|
+
*/
|
|
219
|
+
declare class RunMutantTestedEvent extends RunMutantTestedEvent_base {}
|
|
220
|
+
type RunMutantTested = RunMutantTestedEvent;
|
|
221
|
+
declare const MutantTestedWireSchema: S.TaggedStruct<"mutant", {
|
|
222
|
+
readonly id: S.brand<S.String, "MutantId">;
|
|
223
|
+
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
224
|
+
readonly file: S.toType<S.decodeTo<S.brand<S.String, "CanonicalFileName">, S.String, never, never>>;
|
|
225
|
+
readonly location: S.decodeTo<S.declare<{
|
|
226
|
+
readonly start: {
|
|
227
|
+
readonly line: number;
|
|
228
|
+
readonly column: number;
|
|
229
|
+
};
|
|
230
|
+
readonly end: {
|
|
231
|
+
readonly line: number;
|
|
232
|
+
readonly column: number;
|
|
233
|
+
};
|
|
234
|
+
}, {
|
|
235
|
+
readonly start: {
|
|
236
|
+
readonly line: number;
|
|
237
|
+
readonly column: number;
|
|
238
|
+
};
|
|
239
|
+
readonly end: {
|
|
240
|
+
readonly line: number;
|
|
241
|
+
readonly column: number;
|
|
242
|
+
};
|
|
243
|
+
}>, S.Struct<{
|
|
244
|
+
readonly start: S.Struct<{
|
|
245
|
+
readonly line: S.Int;
|
|
246
|
+
readonly column: S.Int;
|
|
247
|
+
}>;
|
|
248
|
+
readonly end: S.Struct<{
|
|
249
|
+
readonly line: S.Int;
|
|
250
|
+
readonly column: S.Int;
|
|
251
|
+
}>;
|
|
252
|
+
}>, never, never>;
|
|
253
|
+
readonly mutator: S.brand<S.String, "MutatorName">;
|
|
254
|
+
readonly replacement: S.NullOr<S.String>;
|
|
255
|
+
readonly completed: S.Int;
|
|
256
|
+
readonly total: S.Int;
|
|
257
|
+
readonly static: S.Boolean;
|
|
258
|
+
readonly cost: S.NullOr<S.Struct<{
|
|
259
|
+
readonly fixedOverheadMs: S.Finite;
|
|
260
|
+
readonly testBodyMs: S.Finite;
|
|
261
|
+
readonly testsExecuted: S.Int;
|
|
262
|
+
readonly shared: S.Boolean;
|
|
263
|
+
}>>;
|
|
264
|
+
}>;
|
|
265
|
+
declare const RunMutantTested: S.Codec<RunMutantTested, typeof MutantTestedWireSchema.Encoded>;
|
|
266
|
+
declare const Heartbeat_base: S.Class<Heartbeat, S.TaggedStruct<"tick", {
|
|
267
|
+
readonly elapsedMs: S.Finite;
|
|
268
|
+
readonly completed: S.Int;
|
|
269
|
+
readonly total: S.NullOr<S.Int>;
|
|
270
|
+
}>, {}>;
|
|
271
|
+
declare class Heartbeat extends Heartbeat_base {}
|
|
272
|
+
declare const VerdictLocation: S.Struct<{
|
|
273
|
+
readonly start: S.Struct<{
|
|
274
|
+
readonly line: S.Int;
|
|
275
|
+
readonly column: S.Int;
|
|
276
|
+
}>;
|
|
277
|
+
readonly end: S.Struct<{
|
|
278
|
+
readonly line: S.Int;
|
|
279
|
+
readonly column: S.Int;
|
|
280
|
+
}>;
|
|
281
|
+
}>;
|
|
282
|
+
type VerdictLocation = typeof VerdictLocation.Type;
|
|
283
|
+
declare const VerdictThresholds: S.Struct<{
|
|
284
|
+
readonly high: S.Finite;
|
|
285
|
+
readonly low: S.Finite;
|
|
286
|
+
readonly break: S.NullOr<S.Finite>;
|
|
287
|
+
}>;
|
|
288
|
+
type VerdictThresholds = typeof VerdictThresholds.Type;
|
|
289
|
+
declare const VerdictMutant: S.Struct<{
|
|
290
|
+
readonly id: S.String;
|
|
291
|
+
readonly file: S.String;
|
|
292
|
+
readonly location: S.Struct<{
|
|
293
|
+
readonly start: S.Struct<{
|
|
294
|
+
readonly line: S.Int;
|
|
295
|
+
readonly column: S.Int;
|
|
296
|
+
}>;
|
|
297
|
+
readonly end: S.Struct<{
|
|
298
|
+
readonly line: S.Int;
|
|
299
|
+
readonly column: S.Int;
|
|
300
|
+
}>;
|
|
301
|
+
}>;
|
|
302
|
+
readonly mutator: S.String;
|
|
303
|
+
readonly replacement: S.NullOr<S.String>;
|
|
304
|
+
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
305
|
+
}>;
|
|
306
|
+
type VerdictMutant = typeof VerdictMutant.Type;
|
|
307
|
+
type VerdictCounts = mod_d_exports$7.Metrics;
|
|
308
|
+
declare const RunScope: S.Literals<readonly ["full", "diff"]>;
|
|
309
|
+
type RunScope = typeof RunScope.Type;
|
|
310
|
+
declare const MutantSetPolicy: S.Literals<readonly ["default", "full"]>;
|
|
311
|
+
type MutantSetPolicy = typeof MutantSetPolicy.Type;
|
|
312
|
+
declare const PhaseDurations: S.Struct<{
|
|
313
|
+
readonly prepare: S.Finite;
|
|
314
|
+
readonly instrument: S.Finite;
|
|
315
|
+
readonly 'dry-run': S.Finite;
|
|
316
|
+
readonly 'mutation-test': S.Finite;
|
|
317
|
+
}>;
|
|
318
|
+
type PhaseDurations = typeof PhaseDurations.Type;
|
|
319
|
+
declare const StaticVerdict: S.Struct<{
|
|
320
|
+
readonly count: S.Int;
|
|
321
|
+
readonly costMs: S.Finite;
|
|
322
|
+
}>;
|
|
323
|
+
type StaticVerdict = typeof StaticVerdict.Type;
|
|
324
|
+
declare const VerdictReached_base: S.Class<VerdictReached, S.TaggedStruct<"verdict", {
|
|
325
|
+
readonly schemaVersion: S.Literal<"2.0">;
|
|
326
|
+
readonly runId: S.brand<S.String, "RunId">;
|
|
327
|
+
readonly mode: S.Literals<readonly ["human", "machine"]>;
|
|
328
|
+
readonly signal: S.Literals<readonly ["flag", "env", "tty", "agent", "tool"]>;
|
|
329
|
+
readonly score: S.NullOr<S.Finite>;
|
|
330
|
+
readonly thresholds: S.Struct<{
|
|
331
|
+
readonly high: S.Finite;
|
|
332
|
+
readonly low: S.Finite;
|
|
333
|
+
readonly break: S.NullOr<S.Finite>;
|
|
334
|
+
}>;
|
|
335
|
+
readonly reportFile: S.NullOr<S.String>;
|
|
336
|
+
readonly counts: typeof mod_d_exports$7.Metrics;
|
|
337
|
+
readonly mutants: S.$Array<S.Struct<{
|
|
338
|
+
readonly id: S.String;
|
|
339
|
+
readonly file: S.String;
|
|
340
|
+
readonly location: S.Struct<{
|
|
341
|
+
readonly start: S.Struct<{
|
|
342
|
+
readonly line: S.Int;
|
|
343
|
+
readonly column: S.Int;
|
|
344
|
+
}>;
|
|
345
|
+
readonly end: S.Struct<{
|
|
346
|
+
readonly line: S.Int;
|
|
347
|
+
readonly column: S.Int;
|
|
348
|
+
}>;
|
|
349
|
+
}>;
|
|
350
|
+
readonly mutator: S.String;
|
|
351
|
+
readonly replacement: S.NullOr<S.String>;
|
|
352
|
+
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
353
|
+
}>>;
|
|
354
|
+
readonly scope: S.Literals<readonly ["full", "diff"]>;
|
|
355
|
+
readonly mutantSetPolicy: S.Literals<readonly ["default", "full"]>;
|
|
356
|
+
readonly phaseDurations: S.NullOr<S.Struct<{
|
|
357
|
+
readonly prepare: S.Finite;
|
|
358
|
+
readonly instrument: S.Finite;
|
|
359
|
+
readonly 'dry-run': S.Finite;
|
|
360
|
+
readonly 'mutation-test': S.Finite;
|
|
361
|
+
}>>;
|
|
362
|
+
readonly static: S.NullOr<S.Struct<{
|
|
363
|
+
readonly count: S.Int;
|
|
364
|
+
readonly costMs: S.Finite;
|
|
365
|
+
}>>;
|
|
366
|
+
}>, {}>;
|
|
367
|
+
declare class VerdictReached extends VerdictReached_base {}
|
|
368
|
+
declare const FrameworkContributionRow: S.Struct<{
|
|
369
|
+
readonly name: S.String;
|
|
370
|
+
readonly formatId: S.String;
|
|
371
|
+
readonly extensions: S.$Array<S.String>;
|
|
372
|
+
}>;
|
|
373
|
+
type FrameworkContributionRow = typeof FrameworkContributionRow.Type;
|
|
374
|
+
declare const FrameworkModuleRow: S.Struct<{
|
|
375
|
+
readonly moduleName: S.String;
|
|
376
|
+
readonly contributions: S.$Array<S.Struct<{
|
|
377
|
+
readonly name: S.String;
|
|
378
|
+
readonly formatId: S.String;
|
|
379
|
+
readonly extensions: S.$Array<S.String>;
|
|
380
|
+
}>>;
|
|
381
|
+
}>;
|
|
382
|
+
type FrameworkModuleRow = typeof FrameworkModuleRow.Type;
|
|
383
|
+
declare const FormatClaimShadowingRow: S.Struct<{
|
|
384
|
+
readonly extension: S.String;
|
|
385
|
+
readonly winner: S.String;
|
|
386
|
+
readonly loser: S.String;
|
|
387
|
+
}>;
|
|
388
|
+
type FormatClaimShadowingRow = typeof FormatClaimShadowingRow.Type;
|
|
389
|
+
declare const PluginsReported_base: S.Class<PluginsReported, S.TaggedStruct<"plugins", {
|
|
390
|
+
readonly modules: S.$Array<S.Struct<{
|
|
391
|
+
readonly moduleName: S.String;
|
|
392
|
+
readonly contributions: S.$Array<S.Struct<{
|
|
393
|
+
readonly name: S.String;
|
|
394
|
+
readonly formatId: S.String;
|
|
395
|
+
readonly extensions: S.$Array<S.String>;
|
|
396
|
+
}>>;
|
|
397
|
+
}>>;
|
|
398
|
+
readonly shadowings: S.$Array<S.Struct<{
|
|
399
|
+
readonly extension: S.String;
|
|
400
|
+
readonly winner: S.String;
|
|
401
|
+
readonly loser: S.String;
|
|
402
|
+
}>>;
|
|
403
|
+
}>, {}>;
|
|
404
|
+
declare class PluginsReported extends PluginsReported_base {}
|
|
405
|
+
declare const FormatRegistryRow: S.Struct<{
|
|
406
|
+
readonly extension: S.String;
|
|
407
|
+
readonly formatId: S.String;
|
|
408
|
+
readonly ownerModule: S.String;
|
|
409
|
+
readonly language: S.String;
|
|
410
|
+
}>;
|
|
411
|
+
type FormatRegistryRow = typeof FormatRegistryRow.Type;
|
|
412
|
+
declare const FormatRegistryResolved_base: S.Class<FormatRegistryResolved, S.TaggedStruct<"formats", {
|
|
413
|
+
readonly rows: S.$Array<S.Struct<{
|
|
414
|
+
readonly extension: S.String;
|
|
415
|
+
readonly formatId: S.String;
|
|
416
|
+
readonly ownerModule: S.String;
|
|
417
|
+
readonly language: S.String;
|
|
418
|
+
}>>;
|
|
419
|
+
}>, {}>;
|
|
420
|
+
declare class FormatRegistryResolved extends FormatRegistryResolved_base {}
|
|
421
|
+
declare const SkippedFileRow: S.Struct<{
|
|
422
|
+
readonly file: S.String;
|
|
423
|
+
readonly extension: S.String;
|
|
424
|
+
readonly reason: S.String;
|
|
425
|
+
}>;
|
|
426
|
+
type SkippedFileRow = typeof SkippedFileRow.Type;
|
|
427
|
+
declare const SkippedReported_base: S.Class<SkippedReported, S.TaggedStruct<"skipped", {
|
|
428
|
+
readonly files: S.$Array<S.Struct<{
|
|
429
|
+
readonly file: S.String;
|
|
430
|
+
readonly extension: S.String;
|
|
431
|
+
readonly reason: S.String;
|
|
432
|
+
}>>;
|
|
433
|
+
}>, {}>;
|
|
434
|
+
declare class SkippedReported extends SkippedReported_base {}
|
|
435
|
+
declare const ReuseRefusals: S.Struct<{
|
|
436
|
+
readonly semanticsChanged: S.Int;
|
|
437
|
+
readonly policyChanged: S.Int;
|
|
438
|
+
readonly runInputsChanged: S.Int;
|
|
439
|
+
readonly closureChanged: S.Int;
|
|
440
|
+
readonly timeoutUnreproduced: S.Int;
|
|
441
|
+
readonly flakyDependency: S.Int;
|
|
442
|
+
readonly noPriorRecord: S.Int;
|
|
443
|
+
}>;
|
|
444
|
+
type ReuseRefusals = typeof ReuseRefusals.Type;
|
|
445
|
+
declare const ReuseReported_base: S.Class<ReuseReported, S.TaggedStruct<"reuse", {
|
|
446
|
+
readonly reused: S.Int;
|
|
447
|
+
readonly ran: S.Int;
|
|
448
|
+
readonly refused: S.Struct<{
|
|
449
|
+
readonly semanticsChanged: S.Int;
|
|
450
|
+
readonly policyChanged: S.Int;
|
|
451
|
+
readonly runInputsChanged: S.Int;
|
|
452
|
+
readonly closureChanged: S.Int;
|
|
453
|
+
readonly timeoutUnreproduced: S.Int;
|
|
454
|
+
readonly flakyDependency: S.Int;
|
|
455
|
+
readonly noPriorRecord: S.Int;
|
|
456
|
+
}>;
|
|
457
|
+
}>, {}>;
|
|
458
|
+
declare class ReuseReported extends ReuseReported_base {}
|
|
459
|
+
declare const MutantDetailReported_base: S.Class<MutantDetailReported, S.TaggedStruct<"mutant-detail", {
|
|
460
|
+
readonly id: S.brand<S.String, "MutantId">;
|
|
461
|
+
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
462
|
+
readonly coveringTests: S.$Array<S.String>;
|
|
463
|
+
readonly killedBy: S.NullOr<S.String>;
|
|
464
|
+
readonly reproducer: S.NullOr<S.String>;
|
|
465
|
+
}>, {}>;
|
|
466
|
+
declare class MutantDetailReported extends MutantDetailReported_base {}
|
|
467
|
+
declare const FeedbackJudgment: S.Literals<readonly ["useful", "not-useful"]>;
|
|
468
|
+
type FeedbackJudgment = typeof FeedbackJudgment.Type;
|
|
469
|
+
declare const FeedbackReported_base: S.Class<FeedbackReported, S.TaggedStruct<"feedback", {
|
|
470
|
+
readonly id: S.brand<S.String, "MutantId">;
|
|
471
|
+
readonly judgment: S.Literals<readonly ["useful", "not-useful"]>;
|
|
472
|
+
readonly reason: S.NullOr<S.String>;
|
|
473
|
+
}>, {}>;
|
|
474
|
+
declare class FeedbackReported extends FeedbackReported_base {}
|
|
475
|
+
declare const RunFailed_base: S.Class<RunFailed, S.TaggedStruct<"error", {
|
|
476
|
+
readonly schemaVersion: S.Literal<"2.0">;
|
|
477
|
+
readonly code: S.Int;
|
|
478
|
+
readonly error: S.String;
|
|
479
|
+
readonly remediation: S.String;
|
|
480
|
+
readonly reason: S.NullOr<S.Union<readonly [S.TaggedStruct<"PeerMissing", {
|
|
481
|
+
readonly peer: S.String;
|
|
482
|
+
}>, S.TaggedStruct<"PeerVersionUnsupported", {
|
|
483
|
+
readonly peer: S.String;
|
|
484
|
+
readonly detail: S.String;
|
|
485
|
+
}>, S.TaggedStruct<"PeerUnrecognized", {
|
|
486
|
+
readonly peer: S.String;
|
|
487
|
+
}>, S.TaggedStruct<"InvalidContribution", {
|
|
488
|
+
readonly detail: S.String;
|
|
489
|
+
}>, S.TaggedStruct<"ImportFailed", {
|
|
490
|
+
readonly cause: S.Unknown;
|
|
491
|
+
}>]>>;
|
|
492
|
+
}>, {}>;
|
|
493
|
+
declare class RunFailed extends RunFailed_base {}
|
|
494
|
+
declare const HelpRendered_base: S.Class<HelpRendered, S.TaggedStruct<"help", {
|
|
495
|
+
readonly schemaVersion: S.Literal<"2.0">;
|
|
496
|
+
readonly code: S.Literals<readonly [0]>;
|
|
497
|
+
readonly help: S.String;
|
|
498
|
+
}>, {}>;
|
|
499
|
+
declare class HelpRendered extends HelpRendered_base {}
|
|
500
|
+
declare const RunEvent: S.Union<readonly [typeof RunStarted, typeof PhaseEntered, typeof PlanKnown, S.Codec<RunMutantTestedEvent, {
|
|
501
|
+
readonly _tag: "mutant";
|
|
502
|
+
readonly id: string;
|
|
503
|
+
readonly status: "CompileError" | "Ignored" | "Killed" | "NoCoverage" | "Pending" | "RuntimeError" | "Survived" | "Timeout";
|
|
504
|
+
readonly file: string & import("effect/Brand").Brand<"CanonicalFileName">;
|
|
505
|
+
readonly location: {
|
|
506
|
+
readonly start: {
|
|
507
|
+
readonly line: number;
|
|
508
|
+
readonly column: number;
|
|
509
|
+
};
|
|
510
|
+
readonly end: {
|
|
511
|
+
readonly line: number;
|
|
512
|
+
readonly column: number;
|
|
513
|
+
};
|
|
514
|
+
};
|
|
515
|
+
readonly mutator: string;
|
|
516
|
+
readonly replacement: string | null;
|
|
517
|
+
readonly completed: number;
|
|
518
|
+
readonly total: number;
|
|
519
|
+
readonly static: boolean;
|
|
520
|
+
readonly cost: {
|
|
521
|
+
readonly fixedOverheadMs: number;
|
|
522
|
+
readonly testBodyMs: number;
|
|
523
|
+
readonly testsExecuted: number;
|
|
524
|
+
readonly shared: boolean;
|
|
525
|
+
} | null;
|
|
526
|
+
}, never, never>, typeof Heartbeat, typeof PluginsReported, typeof FormatRegistryResolved, typeof SkippedReported, typeof ReuseReported, typeof MutantDetailReported, typeof FeedbackReported, typeof VerdictReached, typeof RunFailed, typeof HelpRendered]> & {
|
|
527
|
+
QUEUE_BOUND: number;
|
|
528
|
+
};
|
|
529
|
+
type RunEvent = typeof RunEvent.Type;
|
|
530
|
+
type RunTerminalEvent = VerdictReached | RunFailed | HelpRendered;
|
|
531
|
+
//#endregion
|
|
532
|
+
//#region src/run-event-wire.schema.d.ts
|
|
533
|
+
declare const RunEventWireLine: S.decodeTo<S.fromJsonString<S.Union<readonly [typeof RunStarted, typeof PhaseEntered, typeof PlanKnown, S.Codec<RunMutantTestedEvent, {
|
|
534
|
+
readonly _tag: "mutant";
|
|
535
|
+
readonly id: string;
|
|
536
|
+
readonly status: "CompileError" | "Ignored" | "Killed" | "NoCoverage" | "Pending" | "RuntimeError" | "Survived" | "Timeout";
|
|
537
|
+
readonly file: string & import("effect/Brand").Brand<"CanonicalFileName">;
|
|
538
|
+
readonly location: {
|
|
539
|
+
readonly start: {
|
|
540
|
+
readonly line: number;
|
|
541
|
+
readonly column: number;
|
|
542
|
+
};
|
|
543
|
+
readonly end: {
|
|
544
|
+
readonly line: number;
|
|
545
|
+
readonly column: number;
|
|
546
|
+
};
|
|
547
|
+
};
|
|
548
|
+
readonly mutator: string;
|
|
549
|
+
readonly replacement: string | null;
|
|
550
|
+
readonly completed: number;
|
|
551
|
+
readonly total: number;
|
|
552
|
+
readonly static: boolean;
|
|
553
|
+
readonly cost: {
|
|
554
|
+
readonly fixedOverheadMs: number;
|
|
555
|
+
readonly testBodyMs: number;
|
|
556
|
+
readonly testsExecuted: number;
|
|
557
|
+
readonly shared: boolean;
|
|
558
|
+
} | null;
|
|
559
|
+
}, never, never>, typeof Heartbeat, typeof PluginsReported, typeof FormatRegistryResolved, typeof SkippedReported, typeof ReuseReported, typeof MutantDetailReported, typeof FeedbackReported, typeof VerdictReached, typeof RunFailed, typeof HelpRendered]> & {
|
|
560
|
+
QUEUE_BOUND: number;
|
|
561
|
+
}>, S.String, never, never>;
|
|
562
|
+
type RunEventWireLine = typeof RunEventWireLine.Type;
|
|
563
|
+
//#endregion
|
|
564
|
+
//#region src/stream-version.schema.d.ts
|
|
565
|
+
declare const StreamSchemaVersion: S.Literal<"2.0">;
|
|
566
|
+
type StreamSchemaVersion = typeof StreamSchemaVersion.Type;
|
|
567
|
+
declare namespace mod_d_exports$1$1 {
|
|
568
|
+
export { FeedbackJudgment, FeedbackReported, FormatClaimShadowingRow, FormatRegistryResolved, FormatRegistryRow, FrameworkContributionRow, FrameworkModuleRow, Heartbeat, HelpRendered, MutantCost, MutantDetailReported, MutantSetPolicy, PhaseDurations, PhaseEntered, PlanKnown, PluginLoadFailureReason, PluginsReported, ReuseRefusals, ReuseReported, RunEvent, RunEventWireLine, RunFailed, RunId, RunMutantTested, RunMutantTestedEvent, RunPhase, RunScope, RunStarted, RunTerminalEvent, SkippedFileRow, SkippedReported, StaticVerdict, StreamSchemaVersion, VerdictCounts, VerdictLocation, VerdictMutant, VerdictReached, VerdictThresholds };
|
|
569
|
+
}
|
|
570
|
+
//#endregion
|
|
571
|
+
//#region src/run/phase-clock.service.d.ts
|
|
572
|
+
interface PhaseClockShape {
|
|
573
|
+
readonly markAt: (phase: mod_d_exports$1$1.RunPhase, elapsedMs: number) => Effect$1.Effect<void>;
|
|
574
|
+
readonly durations: Effect$1.Effect<Option$1.Option<mod_d_exports$1$1.PhaseDurations>>;
|
|
575
|
+
}
|
|
576
|
+
declare const PhaseClock_base: Context.ServiceClass<PhaseClock, "@systemfsoftware/stryker-js/run/phase-clock.service/PhaseClock", PhaseClockShape>;
|
|
577
|
+
declare class PhaseClock extends PhaseClock_base {
|
|
578
|
+
static readonly layer: (runStartedAt: number) => Layer.Layer<PhaseClock>;
|
|
579
|
+
}
|
|
580
|
+
//#endregion
|
|
581
|
+
//#region src/output-mode.schema.d.ts
|
|
582
|
+
declare const ResolvedMode: S.Struct<{
|
|
583
|
+
readonly mode: S.Literals<readonly ["human", "machine"]>;
|
|
584
|
+
readonly signal: S.Literals<readonly ["flag", "env", "tty", "agent", "tool"]>;
|
|
585
|
+
readonly stdoutIsTTY: S.Boolean;
|
|
586
|
+
}>;
|
|
587
|
+
type ResolvedMode = typeof ResolvedMode.Type;
|
|
588
|
+
//#endregion
|
|
589
|
+
//#region src/frame-run-event.workflow.d.ts
|
|
590
|
+
declare const ResolvedModeInput: S.Struct<{
|
|
591
|
+
readonly mode: S.Literals<readonly ["human", "machine"]>;
|
|
592
|
+
readonly signal: S.Literals<readonly ["flag", "env", "tty", "agent", "tool"]>;
|
|
593
|
+
}>;
|
|
594
|
+
type ResolvedModeInput = typeof ResolvedModeInput.Type;
|
|
595
|
+
//#endregion
|
|
596
|
+
//#region src/run-event-stream.service.d.ts
|
|
597
|
+
type FramedDrain = (framed: Stream.Stream<string, never, never>, toStdout: boolean) => Effect$1.Effect<void, never, never>;
|
|
598
|
+
interface RunEventDrainShape {
|
|
599
|
+
readonly drainFramed: FramedDrain;
|
|
600
|
+
readonly setProgressStreamFile: (fileName: string) => Effect$1.Effect<void, never, never>;
|
|
601
|
+
}
|
|
602
|
+
declare const RunEventDrain_base: Context.ServiceClass<RunEventDrain, "@systemfsoftware/stryker-js/run-event-stream.service/RunEventDrain", RunEventDrainShape>;
|
|
603
|
+
declare class RunEventDrain extends RunEventDrain_base {
|
|
604
|
+
static readonly layer: Layer.Layer<RunEventDrain, never, Stdio.Stdio>;
|
|
605
|
+
static readonly DefaultProgressStreamFile = "reports/mutation-stream.jsonl";
|
|
606
|
+
static readonly fileLayer: Layer.Layer<RunEventDrain, never, Stdio.Stdio | FileSystem.FileSystem | Path.Path>;
|
|
607
|
+
}
|
|
608
|
+
declare const RunEventDrainLive: Layer.Layer<RunEventDrain, never, Stdio.Stdio>;
|
|
609
|
+
interface RunEventStream {
|
|
610
|
+
readonly queue: Queue.Queue<mod_d_exports$1$1.RunEvent, Cause.Done>;
|
|
611
|
+
readonly runId: mod_d_exports$1$1.RunId;
|
|
612
|
+
readonly startedAt: number;
|
|
613
|
+
readonly isOpen: Effect$1.Effect<boolean, never, never>;
|
|
614
|
+
readonly ensureOpen: (openResolved: ResolvedModeInput) => Effect$1.Effect<void, never, never>;
|
|
615
|
+
readonly open: Effect$1.Effect<void, never, never>;
|
|
616
|
+
readonly closeAndDrain: Effect$1.Effect<void, never, never>;
|
|
617
|
+
}
|
|
618
|
+
declare const makeRunEventStream: (resolved: {
|
|
619
|
+
readonly mode: "human" | "machine";
|
|
620
|
+
readonly signal: "agent" | "env" | "flag" | "tool" | "tty";
|
|
621
|
+
}) => Effect$1.Effect<{
|
|
622
|
+
queue: Queue.Queue<mod_d_exports$1$1.FeedbackReported | mod_d_exports$1$1.FormatRegistryResolved | mod_d_exports$1$1.Heartbeat | mod_d_exports$1$1.HelpRendered | mod_d_exports$1$1.MutantDetailReported | mod_d_exports$1$1.PhaseEntered | mod_d_exports$1$1.PlanKnown | mod_d_exports$1$1.PluginsReported | mod_d_exports$1$1.ReuseReported | mod_d_exports$1$1.RunFailed | mod_d_exports$1$1.RunMutantTestedEvent | mod_d_exports$1$1.RunStarted | mod_d_exports$1$1.SkippedReported | mod_d_exports$1$1.VerdictReached, Cause.Done<void>>;
|
|
623
|
+
runId: string & import("effect/Brand").Brand<"RunId">;
|
|
624
|
+
startedAt: number;
|
|
625
|
+
isOpen: Effect$1.Effect<boolean, never, never>;
|
|
626
|
+
ensureOpen: (openResolved: ResolvedModeInput) => Effect$1.Effect<void, never, never>;
|
|
627
|
+
open: Effect$1.Effect<void, never, never>;
|
|
628
|
+
closeAndDrain: Effect$1.Effect<void, never, never>;
|
|
629
|
+
}, never, RunEventDrain | Stdio.Stdio>;
|
|
630
|
+
//#endregion
|
|
631
|
+
//#region src/run-events.service.d.ts
|
|
632
|
+
declare const RunEvents_base: Context.ServiceClass<RunEvents, "@systemfsoftware/stryker-js/run-events.service/RunEvents", Queue.Queue<mod_d_exports$1$1.FeedbackReported | mod_d_exports$1$1.FormatRegistryResolved | mod_d_exports$1$1.Heartbeat | mod_d_exports$1$1.HelpRendered | mod_d_exports$1$1.MutantDetailReported | mod_d_exports$1$1.PhaseEntered | mod_d_exports$1$1.PlanKnown | mod_d_exports$1$1.PluginsReported | mod_d_exports$1$1.ReuseReported | mod_d_exports$1$1.RunFailed | mod_d_exports$1$1.RunMutantTestedEvent | mod_d_exports$1$1.RunStarted | mod_d_exports$1$1.SkippedReported | mod_d_exports$1$1.VerdictReached, Cause.Done<void>>>;
|
|
633
|
+
declare class RunEvents extends RunEvents_base {}
|
|
634
|
+
interface RunIdentityShape {
|
|
635
|
+
readonly runId: string;
|
|
636
|
+
readonly basePath: string;
|
|
637
|
+
}
|
|
638
|
+
declare const RunIdentity_base: Context.ServiceClass<RunIdentity, "@systemfsoftware/stryker-js/run-events.service/RunIdentity", RunIdentityShape>;
|
|
639
|
+
declare class RunIdentity extends RunIdentity_base {}
|
|
640
|
+
declare namespace git_diff_schema_d_exports {
|
|
641
|
+
export { DiffHunk, DiffScopeCommand, DiffScopeDecision, DiffScoped, FullScope, GitCommandFailed, GitDiffError, GitDiffResult, GitRefUnresolved };
|
|
642
|
+
}
|
|
643
|
+
declare const DiffScopeTypeId: unique symbol;
|
|
644
|
+
type DiffScopeTypeId = typeof DiffScopeTypeId;
|
|
645
|
+
declare const DiffHunk: S.Struct<{
|
|
646
|
+
readonly file: S.String;
|
|
647
|
+
readonly startLine: S.Int;
|
|
648
|
+
readonly lineCount: S.Int;
|
|
649
|
+
}>;
|
|
650
|
+
type DiffHunk = typeof DiffHunk.Type;
|
|
651
|
+
declare const GitDiffResult: S.Struct<{
|
|
652
|
+
readonly ref: S.String;
|
|
653
|
+
readonly base: S.String;
|
|
654
|
+
readonly hunks: S.$Array<S.Struct<{
|
|
655
|
+
readonly file: S.String;
|
|
656
|
+
readonly startLine: S.Int;
|
|
657
|
+
readonly lineCount: S.Int;
|
|
658
|
+
}>>;
|
|
659
|
+
readonly untrackedFiles: S.$Array<S.String>;
|
|
660
|
+
}>;
|
|
661
|
+
type GitDiffResult = typeof GitDiffResult.Type;
|
|
662
|
+
declare const GitRefUnresolved_base: S.Class<GitRefUnresolved, S.TaggedStruct<"GitRefUnresolved", {
|
|
663
|
+
readonly ref: S.String;
|
|
664
|
+
readonly detail: S.String;
|
|
665
|
+
}>, import("effect/Cause").YieldableError>;
|
|
666
|
+
declare class GitRefUnresolved extends GitRefUnresolved_base {
|
|
667
|
+
get message(): string;
|
|
668
|
+
}
|
|
669
|
+
declare const GitCommandFailed_base: S.Class<GitCommandFailed, S.TaggedStruct<"GitCommandFailed", {
|
|
670
|
+
readonly command: S.String;
|
|
671
|
+
readonly detail: S.String;
|
|
672
|
+
}>, import("effect/Cause").YieldableError>;
|
|
673
|
+
declare class GitCommandFailed extends GitCommandFailed_base {
|
|
674
|
+
get message(): string;
|
|
675
|
+
}
|
|
676
|
+
type GitDiffError = GitRefUnresolved | GitCommandFailed;
|
|
677
|
+
declare const DiffScopeCommand_base: S.Class<DiffScopeCommand, S.TaggedStruct<"DiffScopeCommand", {
|
|
678
|
+
readonly hunks: S.$Array<S.Struct<{
|
|
679
|
+
readonly file: S.String;
|
|
680
|
+
readonly startLine: S.Int;
|
|
681
|
+
readonly lineCount: S.Int;
|
|
682
|
+
}>>;
|
|
683
|
+
readonly untrackedFiles: S.$Array<S.String>;
|
|
684
|
+
}>, {}>;
|
|
685
|
+
declare class DiffScopeCommand extends DiffScopeCommand_base {
|
|
686
|
+
static readonly [Workflow.InstrumentationBrand]: {};
|
|
687
|
+
}
|
|
688
|
+
declare const DiffScoped_base: S.Class<DiffScoped, S.TaggedStruct<"DiffScoped", {
|
|
689
|
+
readonly ranges: S.$Array<S.String>;
|
|
690
|
+
}>, {}>;
|
|
691
|
+
declare class DiffScoped extends DiffScoped_base {
|
|
692
|
+
readonly [DiffScopeTypeId]: symbol;
|
|
693
|
+
}
|
|
694
|
+
declare const FullScope_base: S.Class<FullScope, S.TaggedStruct<"FullScope", {
|
|
695
|
+
readonly reason: S.String;
|
|
696
|
+
}>, {}>;
|
|
697
|
+
declare class FullScope extends FullScope_base {
|
|
698
|
+
readonly [DiffScopeTypeId]: symbol;
|
|
699
|
+
}
|
|
700
|
+
declare const DiffScopeDecision: S.Union<readonly [typeof DiffScoped, typeof FullScope]>;
|
|
701
|
+
type DiffScopeDecision = typeof DiffScopeDecision.Type;
|
|
702
|
+
declare namespace git_diff_service_d_exports {
|
|
703
|
+
export { GitDiff, GitDiffInput, GitDiffShape };
|
|
704
|
+
}
|
|
705
|
+
interface GitDiffInput {
|
|
706
|
+
readonly cwd: string;
|
|
707
|
+
readonly ref: string;
|
|
708
|
+
}
|
|
709
|
+
interface GitDiffShape {
|
|
710
|
+
readonly changedSince: (input: GitDiffInput) => Effect$1.Effect<GitDiffResult, GitDiffError, ChildProcessSpawner.ChildProcessSpawner | Scope.Scope>;
|
|
711
|
+
}
|
|
712
|
+
declare const GitDiff_base: Context.ServiceClass<GitDiff, "@systemfsoftware/stryker-js/git-diff.service/GitDiff", GitDiffShape>;
|
|
713
|
+
declare class GitDiff extends GitDiff_base {
|
|
714
|
+
static readonly layer: Layer.Layer<GitDiff>;
|
|
715
|
+
}
|
|
716
|
+
//#endregion
|
|
717
|
+
//#region ../frameworks/interface/dist/index.d.ts
|
|
718
|
+
declare interface EmbeddedDocument {
|
|
719
|
+
readonly formatId: FormatId;
|
|
720
|
+
readonly rawContent: string;
|
|
721
|
+
readonly regions: readonly ScriptRegion[];
|
|
722
|
+
}
|
|
723
|
+
declare type FormatId = string;
|
|
724
|
+
declare interface Framework {
|
|
725
|
+
readonly kind: 'Framework';
|
|
726
|
+
readonly name: string;
|
|
727
|
+
readonly claim: FrameworkClaim;
|
|
728
|
+
readonly parse: (rawContent: string, context: FrameworkContext) => FrameworkParseResult<EmbeddedDocument>;
|
|
729
|
+
readonly transform: (document: EmbeddedDocument, context: FrameworkContext) => EmbeddedDocument;
|
|
730
|
+
readonly print: (document: EmbeddedDocument, context: FrameworkContext) => string;
|
|
731
|
+
readonly disableTypeChecks: (rawContent: string) => FrameworkParseResult<string>;
|
|
732
|
+
}
|
|
733
|
+
declare interface FrameworkClaim {
|
|
734
|
+
readonly formatId: FormatId;
|
|
735
|
+
readonly extensions: readonly string[];
|
|
736
|
+
readonly language: string;
|
|
737
|
+
readonly ownerVersion: string;
|
|
738
|
+
readonly contractVersion: FrameworkContractVersion;
|
|
739
|
+
}
|
|
740
|
+
declare interface FrameworkContext {
|
|
741
|
+
readonly parseScript: (source: string, scriptFormat: ScriptFormat$1) => Program$2;
|
|
742
|
+
readonly printScript: (script: Program$2) => string;
|
|
743
|
+
readonly instrumentationHeader: () => readonly Statement[];
|
|
744
|
+
}
|
|
745
|
+
declare type FrameworkContractVersion = '1';
|
|
746
|
+
declare type FrameworkParseResult<A> = {
|
|
747
|
+
readonly kind: 'Parsed';
|
|
748
|
+
readonly value: A;
|
|
749
|
+
} | {
|
|
750
|
+
readonly kind: 'ParseFailed';
|
|
751
|
+
readonly message: string;
|
|
752
|
+
};
|
|
753
|
+
declare type ScriptFormat$1 = 'js' | 'ts' | 'tsx';
|
|
754
|
+
declare interface ScriptRegion {
|
|
755
|
+
readonly start: number;
|
|
756
|
+
readonly end: number;
|
|
757
|
+
readonly isExpression: boolean;
|
|
758
|
+
readonly scriptAst: Program$2;
|
|
759
|
+
}
|
|
760
|
+
//#endregion
|
|
761
|
+
//#region ../stryker-js-instrumenter/dist/index.d.mts
|
|
762
|
+
//#endregion
|
|
763
|
+
//#region ../ignorers/interface/dist/index.d.ts
|
|
764
|
+
declare interface AccessorProperty$1 extends Span$1 {
|
|
765
|
+
type: AccessorPropertyType;
|
|
766
|
+
decorators: Array<Decorator$1>;
|
|
767
|
+
key: PropertyKey_2;
|
|
768
|
+
typeAnnotation?: TSTypeAnnotation$1 | null;
|
|
769
|
+
value: Expression$1 | null;
|
|
770
|
+
computed: boolean;
|
|
771
|
+
static: boolean;
|
|
772
|
+
override?: boolean;
|
|
773
|
+
definite?: boolean;
|
|
774
|
+
accessibility?: TSAccessibility | null;
|
|
775
|
+
declare?: false;
|
|
776
|
+
optional?: false;
|
|
777
|
+
readonly?: false;
|
|
778
|
+
parent?: Node$1;
|
|
779
|
+
}
|
|
780
|
+
declare type AccessorPropertyType = "AccessorProperty" | "TSAbstractAccessorProperty";
|
|
781
|
+
declare type Argument$1 = SpreadElement$1 | Expression$1;
|
|
782
|
+
declare interface ArrayAssignmentTarget extends Span$1 {
|
|
783
|
+
type: "ArrayPattern";
|
|
784
|
+
decorators?: [];
|
|
785
|
+
elements: Array<AssignmentTargetMaybeDefault | AssignmentTargetRest | null>;
|
|
786
|
+
optional?: false;
|
|
787
|
+
typeAnnotation?: null;
|
|
788
|
+
parent?: Node$1;
|
|
789
|
+
}
|
|
790
|
+
declare interface ArrayExpression$1 extends Span$1 {
|
|
791
|
+
type: "ArrayExpression";
|
|
792
|
+
elements: Array<ArrayExpressionElement>;
|
|
793
|
+
parent?: Node$1;
|
|
794
|
+
}
|
|
795
|
+
declare type ArrayExpressionElement = SpreadElement$1 | null | Expression$1;
|
|
796
|
+
declare interface ArrayPattern$1 extends Span$1 {
|
|
797
|
+
type: "ArrayPattern";
|
|
798
|
+
decorators?: [];
|
|
799
|
+
elements: Array<BindingPattern$1 | BindingRestElement$1 | null>;
|
|
800
|
+
optional?: false;
|
|
801
|
+
typeAnnotation?: TSTypeAnnotation$1 | null;
|
|
802
|
+
parent?: Node$1;
|
|
803
|
+
}
|
|
804
|
+
declare interface ArrowFunctionExpression$1 extends Span$1 {
|
|
805
|
+
type: "ArrowFunctionExpression";
|
|
806
|
+
expression: boolean;
|
|
807
|
+
async: boolean;
|
|
808
|
+
typeParameters?: TSTypeParameterDeclaration$1 | null;
|
|
809
|
+
params: ParamPattern$1[];
|
|
810
|
+
returnType?: TSTypeAnnotation$1 | null;
|
|
811
|
+
body: FunctionBody | Expression$1;
|
|
812
|
+
id: null;
|
|
813
|
+
generator: false;
|
|
814
|
+
parent?: Node$1;
|
|
815
|
+
}
|
|
816
|
+
declare interface AssignmentExpression$1 extends Span$1 {
|
|
817
|
+
type: "AssignmentExpression";
|
|
818
|
+
operator: AssignmentOperator;
|
|
819
|
+
left: AssignmentTarget;
|
|
820
|
+
right: Expression$1;
|
|
821
|
+
parent?: Node$1;
|
|
822
|
+
}
|
|
823
|
+
declare type AssignmentOperator = "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "**=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "||=" | "&&=" | "??=";
|
|
824
|
+
declare interface AssignmentPattern$1 extends Span$1 {
|
|
825
|
+
type: "AssignmentPattern";
|
|
826
|
+
decorators?: [];
|
|
827
|
+
left: BindingPattern$1;
|
|
828
|
+
right: Expression$1;
|
|
829
|
+
optional?: false;
|
|
830
|
+
typeAnnotation?: null;
|
|
831
|
+
parent?: Node$1;
|
|
832
|
+
}
|
|
833
|
+
declare type AssignmentTarget = SimpleAssignmentTarget$1 | AssignmentTargetPattern;
|
|
834
|
+
declare type AssignmentTargetMaybeDefault = AssignmentTargetWithDefault | AssignmentTarget;
|
|
835
|
+
declare type AssignmentTargetPattern = ArrayAssignmentTarget | ObjectAssignmentTarget;
|
|
836
|
+
declare type AssignmentTargetProperty = AssignmentTargetPropertyIdentifier | AssignmentTargetPropertyProperty;
|
|
837
|
+
declare interface AssignmentTargetPropertyIdentifier extends Span$1 {
|
|
838
|
+
type: "Property";
|
|
839
|
+
kind: "init";
|
|
840
|
+
key: IdentifierReference$1;
|
|
841
|
+
value: IdentifierReference$1 | AssignmentTargetWithDefault;
|
|
842
|
+
method: false;
|
|
843
|
+
shorthand: true;
|
|
844
|
+
computed: false;
|
|
845
|
+
optional?: false;
|
|
846
|
+
parent?: Node$1;
|
|
847
|
+
}
|
|
848
|
+
declare interface AssignmentTargetPropertyProperty extends Span$1 {
|
|
849
|
+
type: "Property";
|
|
850
|
+
kind: "init";
|
|
851
|
+
key: PropertyKey_2;
|
|
852
|
+
value: AssignmentTargetMaybeDefault;
|
|
853
|
+
method: false;
|
|
854
|
+
shorthand: false;
|
|
855
|
+
computed: boolean;
|
|
856
|
+
optional?: false;
|
|
857
|
+
parent?: Node$1;
|
|
858
|
+
}
|
|
859
|
+
declare interface AssignmentTargetRest extends Span$1 {
|
|
860
|
+
type: "RestElement";
|
|
861
|
+
decorators?: [];
|
|
862
|
+
argument: AssignmentTarget;
|
|
863
|
+
optional?: false;
|
|
864
|
+
typeAnnotation?: null;
|
|
865
|
+
value?: null;
|
|
866
|
+
parent?: Node$1;
|
|
867
|
+
}
|
|
868
|
+
declare interface AssignmentTargetWithDefault extends Span$1 {
|
|
869
|
+
type: "AssignmentPattern";
|
|
870
|
+
decorators?: [];
|
|
871
|
+
left: AssignmentTarget;
|
|
872
|
+
right: Expression$1;
|
|
873
|
+
optional?: false;
|
|
874
|
+
typeAnnotation?: null;
|
|
875
|
+
parent?: Node$1;
|
|
876
|
+
}
|
|
877
|
+
declare interface AwaitExpression extends Span$1 {
|
|
878
|
+
type: "AwaitExpression";
|
|
879
|
+
argument: Expression$1;
|
|
880
|
+
parent?: Node$1;
|
|
881
|
+
}
|
|
882
|
+
declare interface BigIntLiteral$1 extends Span$1 {
|
|
883
|
+
type: "Literal";
|
|
884
|
+
value: bigint;
|
|
885
|
+
raw: string | null;
|
|
886
|
+
bigint: string;
|
|
887
|
+
parent?: Node$1;
|
|
888
|
+
}
|
|
889
|
+
declare interface BinaryExpression$1 extends Span$1 {
|
|
890
|
+
type: "BinaryExpression";
|
|
891
|
+
left: Expression$1;
|
|
892
|
+
operator: BinaryOperator;
|
|
893
|
+
right: Expression$1;
|
|
894
|
+
parent?: Node$1;
|
|
895
|
+
}
|
|
896
|
+
declare type BinaryOperator = "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "+" | "-" | "*" | "/" | "%" | "**" | "<<" | ">>" | ">>>" | "|" | "^" | "&" | "in" | "instanceof";
|
|
897
|
+
declare interface BindingIdentifier$1 extends Span$1 {
|
|
898
|
+
type: "Identifier";
|
|
899
|
+
decorators?: [];
|
|
900
|
+
name: string;
|
|
901
|
+
optional?: false;
|
|
902
|
+
typeAnnotation?: TSTypeAnnotation$1 | null;
|
|
903
|
+
parent?: Node$1;
|
|
904
|
+
}
|
|
905
|
+
declare type BindingPattern$1 = BindingIdentifier$1 | ObjectPattern | ArrayPattern$1 | AssignmentPattern$1;
|
|
906
|
+
declare interface BindingProperty$1 extends Span$1 {
|
|
907
|
+
type: "Property";
|
|
908
|
+
kind: "init";
|
|
909
|
+
key: PropertyKey_2;
|
|
910
|
+
value: BindingPattern$1;
|
|
911
|
+
method: false;
|
|
912
|
+
shorthand: boolean;
|
|
913
|
+
computed: boolean;
|
|
914
|
+
optional?: false;
|
|
915
|
+
parent?: Node$1;
|
|
916
|
+
}
|
|
917
|
+
declare interface BindingRestElement$1 extends Span$1 {
|
|
918
|
+
type: "RestElement";
|
|
919
|
+
decorators?: [];
|
|
920
|
+
argument: BindingPattern$1;
|
|
921
|
+
optional?: false;
|
|
922
|
+
typeAnnotation?: TSTypeAnnotation$1 | null;
|
|
923
|
+
value?: null;
|
|
924
|
+
parent?: Node$1;
|
|
925
|
+
}
|
|
926
|
+
declare interface BlockStatement$1 extends Span$1 {
|
|
927
|
+
type: "BlockStatement";
|
|
928
|
+
body: Array<Statement$1>;
|
|
929
|
+
parent?: Node$1;
|
|
930
|
+
}
|
|
931
|
+
declare interface BooleanLiteral$1 extends Span$1 {
|
|
932
|
+
type: "Literal";
|
|
933
|
+
value: boolean;
|
|
934
|
+
raw: string | null;
|
|
935
|
+
parent?: Node$1;
|
|
936
|
+
}
|
|
937
|
+
declare interface BreakStatement$1 extends Span$1 {
|
|
938
|
+
type: "BreakStatement";
|
|
939
|
+
label: LabelIdentifier$1 | null;
|
|
940
|
+
parent?: Node$1;
|
|
941
|
+
}
|
|
942
|
+
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;
|
|
943
|
+
declare interface CallExpression$1 extends Span$1 {
|
|
944
|
+
type: "CallExpression";
|
|
945
|
+
callee: Expression$1;
|
|
946
|
+
typeArguments?: TSTypeParameterInstantiation$1 | null;
|
|
947
|
+
arguments: Array<Argument$1>;
|
|
948
|
+
optional: boolean;
|
|
949
|
+
parent?: Node$1;
|
|
950
|
+
}
|
|
951
|
+
declare interface CatchClause$1 extends Span$1 {
|
|
952
|
+
type: "CatchClause";
|
|
953
|
+
param: BindingPattern$1 | null;
|
|
954
|
+
body: BlockStatement$1;
|
|
955
|
+
parent?: Node$1;
|
|
956
|
+
}
|
|
957
|
+
declare type ChainElement = CallExpression$1 | TSNonNullExpression$1 | MemberExpression$1;
|
|
958
|
+
declare interface ChainExpression$1 extends Span$1 {
|
|
959
|
+
type: "ChainExpression";
|
|
960
|
+
expression: ChainElement;
|
|
961
|
+
parent?: Node$1;
|
|
962
|
+
}
|
|
963
|
+
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;
|
|
964
|
+
declare interface Class$1 extends Span$1 {
|
|
965
|
+
type: ClassType;
|
|
966
|
+
decorators: Array<Decorator$1>;
|
|
967
|
+
id: BindingIdentifier$1 | null;
|
|
968
|
+
typeParameters?: TSTypeParameterDeclaration$1 | null;
|
|
969
|
+
superClass: Expression$1 | null;
|
|
970
|
+
superTypeArguments?: TSTypeParameterInstantiation$1 | null;
|
|
971
|
+
implements?: Array<TSClassImplements>;
|
|
972
|
+
body: ClassBody$1;
|
|
973
|
+
abstract?: boolean;
|
|
974
|
+
declare?: boolean;
|
|
975
|
+
parent?: Node$1;
|
|
976
|
+
}
|
|
977
|
+
declare interface ClassBody$1 extends Span$1 {
|
|
978
|
+
type: "ClassBody";
|
|
979
|
+
body: Array<ClassElement>;
|
|
980
|
+
parent?: Node$1;
|
|
981
|
+
}
|
|
982
|
+
declare type ClassElement = StaticBlock$1 | MethodDefinition$1 | PropertyDefinition$1 | AccessorProperty$1 | TSIndexSignature$1;
|
|
983
|
+
declare type ClassType = "ClassDeclaration" | "ClassExpression";
|
|
984
|
+
declare interface ComputedMemberExpression extends Span$1 {
|
|
985
|
+
type: "MemberExpression";
|
|
986
|
+
object: Expression$1;
|
|
987
|
+
property: Expression$1;
|
|
988
|
+
optional: boolean;
|
|
989
|
+
computed: true;
|
|
990
|
+
parent?: Node$1;
|
|
991
|
+
}
|
|
992
|
+
declare interface ConditionalExpression$1 extends Span$1 {
|
|
993
|
+
type: "ConditionalExpression";
|
|
994
|
+
test: Expression$1;
|
|
995
|
+
consequent: Expression$1;
|
|
996
|
+
alternate: Expression$1;
|
|
997
|
+
parent?: Node$1;
|
|
998
|
+
}
|
|
999
|
+
declare interface ContinueStatement$1 extends Span$1 {
|
|
1000
|
+
type: "ContinueStatement";
|
|
1001
|
+
label: LabelIdentifier$1 | null;
|
|
1002
|
+
parent?: Node$1;
|
|
1003
|
+
}
|
|
1004
|
+
declare interface DebuggerStatement extends Span$1 {
|
|
1005
|
+
type: "DebuggerStatement";
|
|
1006
|
+
parent?: Node$1;
|
|
1007
|
+
}
|
|
1008
|
+
declare type Declaration = VariableDeclaration$1 | Function$1 | Class$1 | TSTypeAliasDeclaration$1 | TSInterfaceDeclaration$1 | TSEnumDeclaration$1 | TSModuleDeclaration$1 | TSGlobalDeclaration | TSImportEqualsDeclaration$1;
|
|
1009
|
+
declare interface Decorator$1 extends Span$1 {
|
|
1010
|
+
type: "Decorator";
|
|
1011
|
+
expression: Expression$1;
|
|
1012
|
+
parent?: Node$1;
|
|
1013
|
+
}
|
|
1014
|
+
declare interface Directive extends Span$1 {
|
|
1015
|
+
type: "ExpressionStatement";
|
|
1016
|
+
expression: StringLiteral$1;
|
|
1017
|
+
directive: string;
|
|
1018
|
+
parent?: Node$1;
|
|
1019
|
+
}
|
|
1020
|
+
declare interface DoWhileStatement$1 extends Span$1 {
|
|
1021
|
+
type: "DoWhileStatement";
|
|
1022
|
+
body: Statement$1;
|
|
1023
|
+
test: Expression$1;
|
|
1024
|
+
parent?: Node$1;
|
|
1025
|
+
}
|
|
1026
|
+
declare interface EmptyStatement$1 extends Span$1 {
|
|
1027
|
+
type: "EmptyStatement";
|
|
1028
|
+
parent?: Node$1;
|
|
1029
|
+
}
|
|
1030
|
+
declare interface ExportAllDeclaration$1 extends Span$1 {
|
|
1031
|
+
type: "ExportAllDeclaration";
|
|
1032
|
+
exported: ModuleExportName | null;
|
|
1033
|
+
source: StringLiteral$1;
|
|
1034
|
+
attributes: Array<ImportAttribute$1>;
|
|
1035
|
+
exportKind?: ImportOrExportKind;
|
|
1036
|
+
parent?: Node$1;
|
|
1037
|
+
}
|
|
1038
|
+
declare interface ExportDefaultDeclaration$1 extends Span$1 {
|
|
1039
|
+
type: "ExportDefaultDeclaration";
|
|
1040
|
+
declaration: ExportDefaultDeclarationKind;
|
|
1041
|
+
exportKind?: "value";
|
|
1042
|
+
parent?: Node$1;
|
|
1043
|
+
}
|
|
1044
|
+
declare type ExportDefaultDeclarationKind = Function$1 | Class$1 | TSInterfaceDeclaration$1 | Expression$1;
|
|
1045
|
+
declare interface ExportNamedDeclaration$1 extends Span$1 {
|
|
1046
|
+
type: "ExportNamedDeclaration";
|
|
1047
|
+
declaration: Declaration | null;
|
|
1048
|
+
specifiers: Array<ExportSpecifier>;
|
|
1049
|
+
source: StringLiteral$1 | null;
|
|
1050
|
+
exportKind?: ImportOrExportKind;
|
|
1051
|
+
attributes: Array<ImportAttribute$1>;
|
|
1052
|
+
parent?: Node$1;
|
|
1053
|
+
}
|
|
1054
|
+
declare interface ExportSpecifier extends Span$1 {
|
|
1055
|
+
type: "ExportSpecifier";
|
|
1056
|
+
local: ModuleExportName;
|
|
1057
|
+
exported: ModuleExportName;
|
|
1058
|
+
exportKind?: ImportOrExportKind;
|
|
1059
|
+
parent?: Node$1;
|
|
1060
|
+
}
|
|
1061
|
+
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;
|
|
1062
|
+
declare interface ExpressionStatement$1 extends Span$1 {
|
|
1063
|
+
type: "ExpressionStatement";
|
|
1064
|
+
expression: Expression$1;
|
|
1065
|
+
directive?: string | null;
|
|
1066
|
+
parent?: Node$1;
|
|
1067
|
+
}
|
|
1068
|
+
declare interface ForInStatement$1 extends Span$1 {
|
|
1069
|
+
type: "ForInStatement";
|
|
1070
|
+
left: ForStatementLeft;
|
|
1071
|
+
right: Expression$1;
|
|
1072
|
+
body: Statement$1;
|
|
1073
|
+
parent?: Node$1;
|
|
1074
|
+
}
|
|
1075
|
+
declare type FormalParameter = {
|
|
1076
|
+
decorators?: Array<Decorator$1>;
|
|
1077
|
+
} & BindingPattern$1;
|
|
1078
|
+
declare interface FormalParameterRest extends Span$1 {
|
|
1079
|
+
type: "RestElement";
|
|
1080
|
+
argument: BindingPattern$1;
|
|
1081
|
+
decorators?: Array<Decorator$1>;
|
|
1082
|
+
optional?: boolean;
|
|
1083
|
+
typeAnnotation?: TSTypeAnnotation$1 | null;
|
|
1084
|
+
value?: null;
|
|
1085
|
+
parent?: Node$1;
|
|
1086
|
+
}
|
|
1087
|
+
declare interface ForOfStatement$1 extends Span$1 {
|
|
1088
|
+
type: "ForOfStatement";
|
|
1089
|
+
await: boolean;
|
|
1090
|
+
left: ForStatementLeft;
|
|
1091
|
+
right: Expression$1;
|
|
1092
|
+
body: Statement$1;
|
|
1093
|
+
parent?: Node$1;
|
|
1094
|
+
}
|
|
1095
|
+
declare interface ForStatement$1 extends Span$1 {
|
|
1096
|
+
type: "ForStatement";
|
|
1097
|
+
init: ForStatementInit | null;
|
|
1098
|
+
test: Expression$1 | null;
|
|
1099
|
+
update: Expression$1 | null;
|
|
1100
|
+
body: Statement$1;
|
|
1101
|
+
parent?: Node$1;
|
|
1102
|
+
}
|
|
1103
|
+
declare type ForStatementInit = VariableDeclaration$1 | Expression$1;
|
|
1104
|
+
declare type ForStatementLeft = VariableDeclaration$1 | AssignmentTarget;
|
|
1105
|
+
declare interface Function$1 extends Span$1 {
|
|
1106
|
+
type: FunctionType;
|
|
1107
|
+
id: BindingIdentifier$1 | null;
|
|
1108
|
+
generator: boolean;
|
|
1109
|
+
async: boolean;
|
|
1110
|
+
declare?: boolean;
|
|
1111
|
+
typeParameters?: TSTypeParameterDeclaration$1 | null;
|
|
1112
|
+
params: ParamPattern$1[];
|
|
1113
|
+
returnType?: TSTypeAnnotation$1 | null;
|
|
1114
|
+
body: FunctionBody | null;
|
|
1115
|
+
expression: false;
|
|
1116
|
+
parent?: Node$1;
|
|
1117
|
+
}
|
|
1118
|
+
declare interface FunctionBody extends Span$1 {
|
|
1119
|
+
type: "BlockStatement";
|
|
1120
|
+
body: Array<Directive | Statement$1>;
|
|
1121
|
+
parent?: Node$1;
|
|
1122
|
+
}
|
|
1123
|
+
declare type FunctionType = "FunctionDeclaration" | "FunctionExpression" | "TSDeclareFunction" | "TSEmptyBodyFunctionExpression";
|
|
1124
|
+
declare interface Hashbang extends Span$1 {
|
|
1125
|
+
type: "Hashbang";
|
|
1126
|
+
value: string;
|
|
1127
|
+
parent?: Node$1;
|
|
1128
|
+
}
|
|
1129
|
+
declare interface IdentifierName$1 extends Span$1 {
|
|
1130
|
+
type: "Identifier";
|
|
1131
|
+
decorators?: [];
|
|
1132
|
+
name: string;
|
|
1133
|
+
optional?: false;
|
|
1134
|
+
typeAnnotation?: null;
|
|
1135
|
+
parent?: Node$1;
|
|
1136
|
+
}
|
|
1137
|
+
declare interface IdentifierReference$1 extends Span$1 {
|
|
1138
|
+
type: "Identifier";
|
|
1139
|
+
decorators?: [];
|
|
1140
|
+
name: string;
|
|
1141
|
+
optional?: false;
|
|
1142
|
+
typeAnnotation?: null;
|
|
1143
|
+
parent?: Node$1;
|
|
1144
|
+
}
|
|
1145
|
+
declare interface IfStatement$1 extends Span$1 {
|
|
1146
|
+
type: "IfStatement";
|
|
1147
|
+
test: Expression$1;
|
|
1148
|
+
consequent: Statement$1;
|
|
1149
|
+
alternate: Statement$1 | null;
|
|
1150
|
+
parent?: Node$1;
|
|
1151
|
+
}
|
|
1152
|
+
declare interface Ignorer {
|
|
1153
|
+
readonly name: string;
|
|
1154
|
+
shouldIgnore(node: Node_2, ancestors: readonly Node_2[]): string | undefined;
|
|
1155
|
+
}
|
|
1156
|
+
declare interface ImportAttribute$1 extends Span$1 {
|
|
1157
|
+
type: "ImportAttribute";
|
|
1158
|
+
key: ImportAttributeKey;
|
|
1159
|
+
value: StringLiteral$1;
|
|
1160
|
+
parent?: Node$1;
|
|
1161
|
+
}
|
|
1162
|
+
declare type ImportAttributeKey = IdentifierName$1 | StringLiteral$1;
|
|
1163
|
+
declare interface ImportDeclaration$1 extends Span$1 {
|
|
1164
|
+
type: "ImportDeclaration";
|
|
1165
|
+
specifiers: Array<ImportDeclarationSpecifier>;
|
|
1166
|
+
source: StringLiteral$1;
|
|
1167
|
+
phase: ImportPhase | null;
|
|
1168
|
+
attributes: Array<ImportAttribute$1>;
|
|
1169
|
+
importKind?: ImportOrExportKind;
|
|
1170
|
+
parent?: Node$1;
|
|
1171
|
+
}
|
|
1172
|
+
declare type ImportDeclarationSpecifier = ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier;
|
|
1173
|
+
declare interface ImportDefaultSpecifier extends Span$1 {
|
|
1174
|
+
type: "ImportDefaultSpecifier";
|
|
1175
|
+
local: BindingIdentifier$1;
|
|
1176
|
+
parent?: Node$1;
|
|
1177
|
+
}
|
|
1178
|
+
declare interface ImportExpression$1 extends Span$1 {
|
|
1179
|
+
type: "ImportExpression";
|
|
1180
|
+
source: Expression$1;
|
|
1181
|
+
options: Expression$1 | null;
|
|
1182
|
+
phase: ImportPhase | null;
|
|
1183
|
+
parent?: Node$1;
|
|
1184
|
+
}
|
|
1185
|
+
declare interface ImportNamespaceSpecifier extends Span$1 {
|
|
1186
|
+
type: "ImportNamespaceSpecifier";
|
|
1187
|
+
local: BindingIdentifier$1;
|
|
1188
|
+
parent?: Node$1;
|
|
1189
|
+
}
|
|
1190
|
+
declare type ImportOrExportKind = "value" | "type";
|
|
1191
|
+
declare type ImportPhase = "source" | "defer";
|
|
1192
|
+
declare interface ImportSpecifier extends Span$1 {
|
|
1193
|
+
type: "ImportSpecifier";
|
|
1194
|
+
imported: ModuleExportName;
|
|
1195
|
+
local: BindingIdentifier$1;
|
|
1196
|
+
importKind?: ImportOrExportKind;
|
|
1197
|
+
parent?: Node$1;
|
|
1198
|
+
}
|
|
1199
|
+
declare interface JSDocNonNullableType$1 extends Span$1 {
|
|
1200
|
+
type: "TSJSDocNonNullableType";
|
|
1201
|
+
typeAnnotation: TSType$1;
|
|
1202
|
+
postfix: boolean;
|
|
1203
|
+
parent?: Node$1;
|
|
1204
|
+
}
|
|
1205
|
+
declare interface JSDocNullableType$1 extends Span$1 {
|
|
1206
|
+
type: "TSJSDocNullableType";
|
|
1207
|
+
typeAnnotation: TSType$1;
|
|
1208
|
+
postfix: boolean;
|
|
1209
|
+
parent?: Node$1;
|
|
1210
|
+
}
|
|
1211
|
+
declare interface JSDocUnknownType extends Span$1 {
|
|
1212
|
+
type: "TSJSDocUnknownType";
|
|
1213
|
+
parent?: Node$1;
|
|
1214
|
+
}
|
|
1215
|
+
declare interface JSXAttribute$1 extends Span$1 {
|
|
1216
|
+
type: "JSXAttribute";
|
|
1217
|
+
name: JSXAttributeName;
|
|
1218
|
+
value: JSXAttributeValue | null;
|
|
1219
|
+
parent?: Node$1;
|
|
1220
|
+
}
|
|
1221
|
+
declare type JSXAttributeItem = JSXAttribute$1 | JSXSpreadAttribute$1;
|
|
1222
|
+
declare type JSXAttributeName = JSXIdentifier$1 | JSXNamespacedName$1;
|
|
1223
|
+
declare type JSXAttributeValue = StringLiteral$1 | JSXExpressionContainer$1 | JSXElement$1 | JSXFragment$1;
|
|
1224
|
+
declare type JSXChild = JSXText$1 | JSXElement$1 | JSXFragment$1 | JSXExpressionContainer$1 | JSXSpreadChild$1;
|
|
1225
|
+
declare interface JSXClosingElement extends Span$1 {
|
|
1226
|
+
type: "JSXClosingElement";
|
|
1227
|
+
name: JSXElementName;
|
|
1228
|
+
parent?: Node$1;
|
|
1229
|
+
}
|
|
1230
|
+
declare interface JSXClosingFragment extends Span$1 {
|
|
1231
|
+
type: "JSXClosingFragment";
|
|
1232
|
+
parent?: Node$1;
|
|
1233
|
+
}
|
|
1234
|
+
declare interface JSXElement$1 extends Span$1 {
|
|
1235
|
+
type: "JSXElement";
|
|
1236
|
+
openingElement: JSXOpeningElement$1;
|
|
1237
|
+
children: Array<JSXChild>;
|
|
1238
|
+
closingElement: JSXClosingElement | null;
|
|
1239
|
+
parent?: Node$1;
|
|
1240
|
+
}
|
|
1241
|
+
declare type JSXElementName = JSXIdentifier$1 | JSXNamespacedName$1 | JSXMemberExpression$1;
|
|
1242
|
+
declare interface JSXEmptyExpression extends Span$1 {
|
|
1243
|
+
type: "JSXEmptyExpression";
|
|
1244
|
+
parent?: Node$1;
|
|
1245
|
+
}
|
|
1246
|
+
declare type JSXExpression = JSXEmptyExpression | Expression$1;
|
|
1247
|
+
declare interface JSXExpressionContainer$1 extends Span$1 {
|
|
1248
|
+
type: "JSXExpressionContainer";
|
|
1249
|
+
expression: JSXExpression;
|
|
1250
|
+
parent?: Node$1;
|
|
1251
|
+
}
|
|
1252
|
+
declare interface JSXFragment$1 extends Span$1 {
|
|
1253
|
+
type: "JSXFragment";
|
|
1254
|
+
openingFragment: JSXOpeningFragment;
|
|
1255
|
+
children: Array<JSXChild>;
|
|
1256
|
+
closingFragment: JSXClosingFragment;
|
|
1257
|
+
parent?: Node$1;
|
|
1258
|
+
}
|
|
1259
|
+
declare interface JSXIdentifier$1 extends Span$1 {
|
|
1260
|
+
type: "JSXIdentifier";
|
|
1261
|
+
name: string;
|
|
1262
|
+
parent?: Node$1;
|
|
1263
|
+
}
|
|
1264
|
+
declare interface JSXMemberExpression$1 extends Span$1 {
|
|
1265
|
+
type: "JSXMemberExpression";
|
|
1266
|
+
object: JSXMemberExpressionObject;
|
|
1267
|
+
property: JSXIdentifier$1;
|
|
1268
|
+
parent?: Node$1;
|
|
1269
|
+
}
|
|
1270
|
+
declare type JSXMemberExpressionObject = JSXIdentifier$1 | JSXMemberExpression$1;
|
|
1271
|
+
declare interface JSXNamespacedName$1 extends Span$1 {
|
|
1272
|
+
type: "JSXNamespacedName";
|
|
1273
|
+
namespace: JSXIdentifier$1;
|
|
1274
|
+
name: JSXIdentifier$1;
|
|
1275
|
+
parent?: Node$1;
|
|
1276
|
+
}
|
|
1277
|
+
declare interface JSXOpeningElement$1 extends Span$1 {
|
|
1278
|
+
type: "JSXOpeningElement";
|
|
1279
|
+
name: JSXElementName;
|
|
1280
|
+
typeArguments?: TSTypeParameterInstantiation$1 | null;
|
|
1281
|
+
attributes: Array<JSXAttributeItem>;
|
|
1282
|
+
selfClosing: boolean;
|
|
1283
|
+
parent?: Node$1;
|
|
1284
|
+
}
|
|
1285
|
+
declare interface JSXOpeningFragment extends Span$1 {
|
|
1286
|
+
type: "JSXOpeningFragment";
|
|
1287
|
+
attributes?: [];
|
|
1288
|
+
selfClosing?: false;
|
|
1289
|
+
parent?: Node$1;
|
|
1290
|
+
}
|
|
1291
|
+
declare interface JSXSpreadAttribute$1 extends Span$1 {
|
|
1292
|
+
type: "JSXSpreadAttribute";
|
|
1293
|
+
argument: Expression$1;
|
|
1294
|
+
parent?: Node$1;
|
|
1295
|
+
}
|
|
1296
|
+
declare interface JSXSpreadChild$1 extends Span$1 {
|
|
1297
|
+
type: "JSXSpreadChild";
|
|
1298
|
+
expression: Expression$1;
|
|
1299
|
+
parent?: Node$1;
|
|
1300
|
+
}
|
|
1301
|
+
declare interface JSXText$1 extends Span$1 {
|
|
1302
|
+
type: "JSXText";
|
|
1303
|
+
value: string;
|
|
1304
|
+
raw: string | null;
|
|
1305
|
+
parent?: Node$1;
|
|
1306
|
+
}
|
|
1307
|
+
declare interface LabeledStatement$1 extends Span$1 {
|
|
1308
|
+
type: "LabeledStatement";
|
|
1309
|
+
label: LabelIdentifier$1;
|
|
1310
|
+
body: Statement$1;
|
|
1311
|
+
parent?: Node$1;
|
|
1312
|
+
}
|
|
1313
|
+
declare interface LabelIdentifier$1 extends Span$1 {
|
|
1314
|
+
type: "Identifier";
|
|
1315
|
+
decorators?: [];
|
|
1316
|
+
name: string;
|
|
1317
|
+
optional?: false;
|
|
1318
|
+
typeAnnotation?: null;
|
|
1319
|
+
parent?: Node$1;
|
|
1320
|
+
}
|
|
1321
|
+
declare interface LogicalExpression$1 extends Span$1 {
|
|
1322
|
+
type: "LogicalExpression";
|
|
1323
|
+
left: Expression$1;
|
|
1324
|
+
operator: LogicalOperator;
|
|
1325
|
+
right: Expression$1;
|
|
1326
|
+
parent?: Node$1;
|
|
1327
|
+
}
|
|
1328
|
+
declare type LogicalOperator = "||" | "&&" | "??";
|
|
1329
|
+
declare type MemberExpression$1 = ComputedMemberExpression | StaticMemberExpression$1 | PrivateFieldExpression;
|
|
1330
|
+
declare interface MetaProperty$1 extends Span$1 {
|
|
1331
|
+
type: "MetaProperty";
|
|
1332
|
+
meta: IdentifierName$1;
|
|
1333
|
+
property: IdentifierName$1;
|
|
1334
|
+
parent?: Node$1;
|
|
1335
|
+
}
|
|
1336
|
+
declare interface MethodDefinition$1 extends Span$1 {
|
|
1337
|
+
type: MethodDefinitionType;
|
|
1338
|
+
decorators: Array<Decorator$1>;
|
|
1339
|
+
key: PropertyKey_2;
|
|
1340
|
+
value: Function$1;
|
|
1341
|
+
kind: MethodDefinitionKind;
|
|
1342
|
+
computed: boolean;
|
|
1343
|
+
static: boolean;
|
|
1344
|
+
override?: boolean;
|
|
1345
|
+
optional?: boolean;
|
|
1346
|
+
accessibility?: TSAccessibility | null;
|
|
1347
|
+
parent?: Node$1;
|
|
1348
|
+
}
|
|
1349
|
+
declare type MethodDefinitionKind = "constructor" | "method" | "get" | "set";
|
|
1350
|
+
declare type MethodDefinitionType = "MethodDefinition" | "TSAbstractMethodDefinition";
|
|
1351
|
+
declare type ModuleDeclaration = ImportDeclaration$1 | ExportAllDeclaration$1 | ExportDefaultDeclaration$1 | ExportNamedDeclaration$1 | TSExportAssignment$1 | TSNamespaceExportDeclaration$1;
|
|
1352
|
+
declare type ModuleExportName = IdentifierName$1 | IdentifierReference$1 | StringLiteral$1;
|
|
1353
|
+
declare type ModuleKind = "script" | "module" | "commonjs";
|
|
1354
|
+
declare interface NewExpression$1 extends Span$1 {
|
|
1355
|
+
type: "NewExpression";
|
|
1356
|
+
callee: Expression$1;
|
|
1357
|
+
typeArguments?: TSTypeParameterInstantiation$1 | null;
|
|
1358
|
+
arguments: Array<Argument$1>;
|
|
1359
|
+
parent?: Node$1;
|
|
1360
|
+
}
|
|
1361
|
+
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;
|
|
1362
|
+
declare type Node_2 = Simplify<Built<Node$1>> | Node$1;
|
|
1363
|
+
declare interface NullLiteral$1 extends Span$1 {
|
|
1364
|
+
type: "Literal";
|
|
1365
|
+
value: null;
|
|
1366
|
+
raw: "null" | null;
|
|
1367
|
+
parent?: Node$1;
|
|
1368
|
+
}
|
|
1369
|
+
declare interface NumericLiteral$1 extends Span$1 {
|
|
1370
|
+
type: "Literal";
|
|
1371
|
+
value: number;
|
|
1372
|
+
raw: string | null;
|
|
1373
|
+
parent?: Node$1;
|
|
1374
|
+
}
|
|
1375
|
+
declare interface ObjectAssignmentTarget extends Span$1 {
|
|
1376
|
+
type: "ObjectPattern";
|
|
1377
|
+
decorators?: [];
|
|
1378
|
+
properties: Array<AssignmentTargetProperty | AssignmentTargetRest>;
|
|
1379
|
+
optional?: false;
|
|
1380
|
+
typeAnnotation?: null;
|
|
1381
|
+
parent?: Node$1;
|
|
1382
|
+
}
|
|
1383
|
+
declare interface ObjectExpression$1 extends Span$1 {
|
|
1384
|
+
type: "ObjectExpression";
|
|
1385
|
+
properties: Array<ObjectPropertyKind>;
|
|
1386
|
+
parent?: Node$1;
|
|
1387
|
+
}
|
|
1388
|
+
declare interface ObjectPattern extends Span$1 {
|
|
1389
|
+
type: "ObjectPattern";
|
|
1390
|
+
decorators?: [];
|
|
1391
|
+
properties: Array<BindingProperty$1 | BindingRestElement$1>;
|
|
1392
|
+
optional?: false;
|
|
1393
|
+
typeAnnotation?: TSTypeAnnotation$1 | null;
|
|
1394
|
+
parent?: Node$1;
|
|
1395
|
+
}
|
|
1396
|
+
declare interface ObjectProperty$1 extends Span$1 {
|
|
1397
|
+
type: "Property";
|
|
1398
|
+
kind: PropertyKind;
|
|
1399
|
+
key: PropertyKey_2;
|
|
1400
|
+
value: Expression$1;
|
|
1401
|
+
method: boolean;
|
|
1402
|
+
shorthand: boolean;
|
|
1403
|
+
computed: boolean;
|
|
1404
|
+
optional?: false;
|
|
1405
|
+
parent?: Node$1;
|
|
1406
|
+
}
|
|
1407
|
+
declare type ObjectPropertyKind = ObjectProperty$1 | SpreadElement$1;
|
|
1408
|
+
declare type ParamPattern$1 = FormalParameter | TSParameterProperty | FormalParameterRest;
|
|
1409
|
+
declare interface ParenthesizedExpression extends Span$1 {
|
|
1410
|
+
type: "ParenthesizedExpression";
|
|
1411
|
+
expression: Expression$1;
|
|
1412
|
+
parent?: Node$1;
|
|
1413
|
+
}
|
|
1414
|
+
declare interface PrivateFieldExpression extends Span$1 {
|
|
1415
|
+
type: "MemberExpression";
|
|
1416
|
+
object: Expression$1;
|
|
1417
|
+
property: PrivateIdentifier$1;
|
|
1418
|
+
optional: boolean;
|
|
1419
|
+
computed: false;
|
|
1420
|
+
parent?: Node$1;
|
|
1421
|
+
}
|
|
1422
|
+
declare interface PrivateIdentifier$1 extends Span$1 {
|
|
1423
|
+
type: "PrivateIdentifier";
|
|
1424
|
+
name: string;
|
|
1425
|
+
parent?: Node$1;
|
|
1426
|
+
}
|
|
1427
|
+
declare interface PrivateInExpression$1 extends Span$1 {
|
|
1428
|
+
type: "BinaryExpression";
|
|
1429
|
+
left: PrivateIdentifier$1;
|
|
1430
|
+
operator: "in";
|
|
1431
|
+
right: Expression$1;
|
|
1432
|
+
parent?: Node$1;
|
|
1433
|
+
}
|
|
1434
|
+
declare interface Program$1 extends Span$1 {
|
|
1435
|
+
type: "Program";
|
|
1436
|
+
body: Array<Directive | Statement$1>;
|
|
1437
|
+
sourceType: ModuleKind;
|
|
1438
|
+
hashbang: Hashbang | null;
|
|
1439
|
+
parent?: null;
|
|
1440
|
+
}
|
|
1441
|
+
declare type Program = Simplify<Built<Program$1>>;
|
|
1442
|
+
declare interface PropertyDefinition$1 extends Span$1 {
|
|
1443
|
+
type: PropertyDefinitionType;
|
|
1444
|
+
decorators: Array<Decorator$1>;
|
|
1445
|
+
key: PropertyKey_2;
|
|
1446
|
+
typeAnnotation?: TSTypeAnnotation$1 | null;
|
|
1447
|
+
value: Expression$1 | null;
|
|
1448
|
+
computed: boolean;
|
|
1449
|
+
static: boolean;
|
|
1450
|
+
declare?: boolean;
|
|
1451
|
+
override?: boolean;
|
|
1452
|
+
optional?: boolean;
|
|
1453
|
+
definite?: boolean;
|
|
1454
|
+
readonly?: boolean;
|
|
1455
|
+
accessibility?: TSAccessibility | null;
|
|
1456
|
+
parent?: Node$1;
|
|
1457
|
+
}
|
|
1458
|
+
declare type PropertyDefinitionType = "PropertyDefinition" | "TSAbstractPropertyDefinition";
|
|
1459
|
+
declare type PropertyKey_2 = IdentifierName$1 | PrivateIdentifier$1 | Expression$1;
|
|
1460
|
+
declare type PropertyKind = "init" | "get" | "set";
|
|
1461
|
+
declare interface RegExpLiteral$1 extends Span$1 {
|
|
1462
|
+
type: "Literal";
|
|
1463
|
+
value: RegExp | null;
|
|
1464
|
+
raw: string | null;
|
|
1465
|
+
regex: {
|
|
1466
|
+
pattern: string;
|
|
1467
|
+
flags: string;
|
|
1468
|
+
};
|
|
1469
|
+
parent?: Node$1;
|
|
1470
|
+
}
|
|
1471
|
+
declare interface ReturnStatement$1 extends Span$1 {
|
|
1472
|
+
type: "ReturnStatement";
|
|
1473
|
+
argument: Expression$1 | null;
|
|
1474
|
+
parent?: Node$1;
|
|
1475
|
+
}
|
|
1476
|
+
declare interface SequenceExpression$1 extends Span$1 {
|
|
1477
|
+
type: "SequenceExpression";
|
|
1478
|
+
expressions: Array<Expression$1>;
|
|
1479
|
+
parent?: Node$1;
|
|
1480
|
+
}
|
|
1481
|
+
declare type SimpleAssignmentTarget$1 = IdentifierReference$1 | TSAsExpression$1 | TSSatisfiesExpression$1 | TSNonNullExpression$1 | TSTypeAssertion$1 | MemberExpression$1;
|
|
1482
|
+
declare type Simplify<T> = { [K in keyof T]: T[K]; } & {};
|
|
1483
|
+
declare interface Span$1 {
|
|
1484
|
+
start: number;
|
|
1485
|
+
end: number;
|
|
1486
|
+
range?: [number, number];
|
|
1487
|
+
}
|
|
1488
|
+
declare interface SpreadElement$1 extends Span$1 {
|
|
1489
|
+
type: "SpreadElement";
|
|
1490
|
+
argument: Expression$1;
|
|
1491
|
+
parent?: Node$1;
|
|
1492
|
+
}
|
|
1493
|
+
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;
|
|
1494
|
+
declare interface StaticBlock$1 extends Span$1 {
|
|
1495
|
+
type: "StaticBlock";
|
|
1496
|
+
body: Array<Statement$1>;
|
|
1497
|
+
parent?: Node$1;
|
|
1498
|
+
}
|
|
1499
|
+
declare interface StaticMemberExpression$1 extends Span$1 {
|
|
1500
|
+
type: "MemberExpression";
|
|
1501
|
+
object: Expression$1;
|
|
1502
|
+
property: IdentifierName$1;
|
|
1503
|
+
optional: boolean;
|
|
1504
|
+
computed: false;
|
|
1505
|
+
parent?: Node$1;
|
|
1506
|
+
}
|
|
1507
|
+
declare interface StringLiteral$1 extends Span$1 {
|
|
1508
|
+
type: "Literal";
|
|
1509
|
+
value: string;
|
|
1510
|
+
raw: string | null;
|
|
1511
|
+
parent?: Node$1;
|
|
1512
|
+
}
|
|
1513
|
+
declare interface Super$1 extends Span$1 {
|
|
1514
|
+
type: "Super";
|
|
1515
|
+
parent?: Node$1;
|
|
1516
|
+
}
|
|
1517
|
+
declare interface SwitchCase$1 extends Span$1 {
|
|
1518
|
+
type: "SwitchCase";
|
|
1519
|
+
test: Expression$1 | null;
|
|
1520
|
+
consequent: Array<Statement$1>;
|
|
1521
|
+
parent?: Node$1;
|
|
1522
|
+
}
|
|
1523
|
+
declare interface SwitchStatement$1 extends Span$1 {
|
|
1524
|
+
type: "SwitchStatement";
|
|
1525
|
+
discriminant: Expression$1;
|
|
1526
|
+
cases: Array<SwitchCase$1>;
|
|
1527
|
+
parent?: Node$1;
|
|
1528
|
+
}
|
|
1529
|
+
declare interface TaggedTemplateExpression$1 extends Span$1 {
|
|
1530
|
+
type: "TaggedTemplateExpression";
|
|
1531
|
+
tag: Expression$1;
|
|
1532
|
+
typeArguments?: TSTypeParameterInstantiation$1 | null;
|
|
1533
|
+
quasi: TemplateLiteral$1;
|
|
1534
|
+
parent?: Node$1;
|
|
1535
|
+
}
|
|
1536
|
+
declare interface TemplateElement$1 extends Span$1 {
|
|
1537
|
+
type: "TemplateElement";
|
|
1538
|
+
value: TemplateElementValue;
|
|
1539
|
+
tail: boolean;
|
|
1540
|
+
parent?: Node$1;
|
|
1541
|
+
}
|
|
1542
|
+
declare interface TemplateElementValue {
|
|
1543
|
+
raw: string;
|
|
1544
|
+
cooked: string | null;
|
|
1545
|
+
}
|
|
1546
|
+
declare interface TemplateLiteral$1 extends Span$1 {
|
|
1547
|
+
type: "TemplateLiteral";
|
|
1548
|
+
quasis: Array<TemplateElement$1>;
|
|
1549
|
+
expressions: Array<Expression$1>;
|
|
1550
|
+
parent?: Node$1;
|
|
1551
|
+
}
|
|
1552
|
+
declare interface ThisExpression$1 extends Span$1 {
|
|
1553
|
+
type: "ThisExpression";
|
|
1554
|
+
parent?: Node$1;
|
|
1555
|
+
}
|
|
1556
|
+
declare interface ThrowStatement$1 extends Span$1 {
|
|
1557
|
+
type: "ThrowStatement";
|
|
1558
|
+
argument: Expression$1;
|
|
1559
|
+
parent?: Node$1;
|
|
1560
|
+
}
|
|
1561
|
+
declare interface TryStatement$1 extends Span$1 {
|
|
1562
|
+
type: "TryStatement";
|
|
1563
|
+
block: BlockStatement$1;
|
|
1564
|
+
handler: CatchClause$1 | null;
|
|
1565
|
+
finalizer: BlockStatement$1 | null;
|
|
1566
|
+
parent?: Node$1;
|
|
1567
|
+
}
|
|
1568
|
+
declare type TSAccessibility = "private" | "protected" | "public";
|
|
1569
|
+
declare interface TSAnyKeyword extends Span$1 {
|
|
1570
|
+
type: "TSAnyKeyword";
|
|
1571
|
+
parent?: Node$1;
|
|
1572
|
+
}
|
|
1573
|
+
declare interface TSArrayType$1 extends Span$1 {
|
|
1574
|
+
type: "TSArrayType";
|
|
1575
|
+
elementType: TSType$1;
|
|
1576
|
+
parent?: Node$1;
|
|
1577
|
+
}
|
|
1578
|
+
declare interface TSAsExpression$1 extends Span$1 {
|
|
1579
|
+
type: "TSAsExpression";
|
|
1580
|
+
expression: Expression$1;
|
|
1581
|
+
typeAnnotation: TSType$1;
|
|
1582
|
+
parent?: Node$1;
|
|
1583
|
+
}
|
|
1584
|
+
declare interface TSBigIntKeyword extends Span$1 {
|
|
1585
|
+
type: "TSBigIntKeyword";
|
|
1586
|
+
parent?: Node$1;
|
|
1587
|
+
}
|
|
1588
|
+
declare interface TSBooleanKeyword extends Span$1 {
|
|
1589
|
+
type: "TSBooleanKeyword";
|
|
1590
|
+
parent?: Node$1;
|
|
1591
|
+
}
|
|
1592
|
+
declare interface TSCallSignatureDeclaration$1 extends Span$1 {
|
|
1593
|
+
type: "TSCallSignatureDeclaration";
|
|
1594
|
+
typeParameters: TSTypeParameterDeclaration$1 | null;
|
|
1595
|
+
params: ParamPattern$1[];
|
|
1596
|
+
returnType: TSTypeAnnotation$1 | null;
|
|
1597
|
+
parent?: Node$1;
|
|
1598
|
+
}
|
|
1599
|
+
declare interface TSClassImplements extends Span$1 {
|
|
1600
|
+
type: "TSClassImplements";
|
|
1601
|
+
expression: IdentifierReference$1 | ThisExpression$1 | MemberExpression$1;
|
|
1602
|
+
typeArguments: TSTypeParameterInstantiation$1 | null;
|
|
1603
|
+
parent?: Node$1;
|
|
1604
|
+
}
|
|
1605
|
+
declare interface TSConditionalType$1 extends Span$1 {
|
|
1606
|
+
type: "TSConditionalType";
|
|
1607
|
+
checkType: TSType$1;
|
|
1608
|
+
extendsType: TSType$1;
|
|
1609
|
+
trueType: TSType$1;
|
|
1610
|
+
falseType: TSType$1;
|
|
1611
|
+
parent?: Node$1;
|
|
1612
|
+
}
|
|
1613
|
+
declare interface TSConstructorType$1 extends Span$1 {
|
|
1614
|
+
type: "TSConstructorType";
|
|
1615
|
+
abstract: boolean;
|
|
1616
|
+
typeParameters: TSTypeParameterDeclaration$1 | null;
|
|
1617
|
+
params: ParamPattern$1[];
|
|
1618
|
+
returnType: TSTypeAnnotation$1;
|
|
1619
|
+
parent?: Node$1;
|
|
1620
|
+
}
|
|
1621
|
+
declare interface TSConstructSignatureDeclaration$1 extends Span$1 {
|
|
1622
|
+
type: "TSConstructSignatureDeclaration";
|
|
1623
|
+
typeParameters: TSTypeParameterDeclaration$1 | null;
|
|
1624
|
+
params: ParamPattern$1[];
|
|
1625
|
+
returnType: TSTypeAnnotation$1 | null;
|
|
1626
|
+
parent?: Node$1;
|
|
1627
|
+
}
|
|
1628
|
+
declare interface TSEnumBody extends Span$1 {
|
|
1629
|
+
type: "TSEnumBody";
|
|
1630
|
+
members: Array<TSEnumMember>;
|
|
1631
|
+
parent?: Node$1;
|
|
1632
|
+
}
|
|
1633
|
+
declare interface TSEnumDeclaration$1 extends Span$1 {
|
|
1634
|
+
type: "TSEnumDeclaration";
|
|
1635
|
+
id: BindingIdentifier$1;
|
|
1636
|
+
body: TSEnumBody;
|
|
1637
|
+
const: boolean;
|
|
1638
|
+
declare: boolean;
|
|
1639
|
+
parent?: Node$1;
|
|
1640
|
+
}
|
|
1641
|
+
declare interface TSEnumMember extends Span$1 {
|
|
1642
|
+
type: "TSEnumMember";
|
|
1643
|
+
id: TSEnumMemberName;
|
|
1644
|
+
initializer: Expression$1 | null;
|
|
1645
|
+
computed: boolean;
|
|
1646
|
+
parent?: Node$1;
|
|
1647
|
+
}
|
|
1648
|
+
declare type TSEnumMemberName = IdentifierName$1 | StringLiteral$1 | TemplateLiteral$1;
|
|
1649
|
+
declare interface TSExportAssignment$1 extends Span$1 {
|
|
1650
|
+
type: "TSExportAssignment";
|
|
1651
|
+
expression: Expression$1;
|
|
1652
|
+
parent?: Node$1;
|
|
1653
|
+
}
|
|
1654
|
+
declare interface TSExternalModuleReference extends Span$1 {
|
|
1655
|
+
type: "TSExternalModuleReference";
|
|
1656
|
+
expression: StringLiteral$1;
|
|
1657
|
+
parent?: Node$1;
|
|
1658
|
+
}
|
|
1659
|
+
declare interface TSFunctionType$1 extends Span$1 {
|
|
1660
|
+
type: "TSFunctionType";
|
|
1661
|
+
typeParameters: TSTypeParameterDeclaration$1 | null;
|
|
1662
|
+
params: ParamPattern$1[];
|
|
1663
|
+
returnType: TSTypeAnnotation$1;
|
|
1664
|
+
parent?: Node$1;
|
|
1665
|
+
}
|
|
1666
|
+
declare interface TSGlobalDeclaration extends Span$1 {
|
|
1667
|
+
type: "TSModuleDeclaration";
|
|
1668
|
+
id: IdentifierName$1;
|
|
1669
|
+
body: TSModuleBlock$1;
|
|
1670
|
+
kind: "global";
|
|
1671
|
+
declare: boolean;
|
|
1672
|
+
global: true;
|
|
1673
|
+
parent?: Node$1;
|
|
1674
|
+
}
|
|
1675
|
+
declare interface TSImportEqualsDeclaration$1 extends Span$1 {
|
|
1676
|
+
type: "TSImportEqualsDeclaration";
|
|
1677
|
+
id: BindingIdentifier$1;
|
|
1678
|
+
moduleReference: TSModuleReference;
|
|
1679
|
+
importKind: ImportOrExportKind;
|
|
1680
|
+
parent?: Node$1;
|
|
1681
|
+
}
|
|
1682
|
+
declare interface TSImportType$1 extends Span$1 {
|
|
1683
|
+
type: "TSImportType";
|
|
1684
|
+
source: StringLiteral$1;
|
|
1685
|
+
options: ObjectExpression$1 | null;
|
|
1686
|
+
qualifier: TSImportTypeQualifier | null;
|
|
1687
|
+
typeArguments: TSTypeParameterInstantiation$1 | null;
|
|
1688
|
+
parent?: Node$1;
|
|
1689
|
+
}
|
|
1690
|
+
declare interface TSImportTypeQualifiedName extends Span$1 {
|
|
1691
|
+
type: "TSQualifiedName";
|
|
1692
|
+
left: TSImportTypeQualifier;
|
|
1693
|
+
right: IdentifierName$1;
|
|
1694
|
+
parent?: Node$1;
|
|
1695
|
+
}
|
|
1696
|
+
declare type TSImportTypeQualifier = IdentifierName$1 | TSImportTypeQualifiedName;
|
|
1697
|
+
declare interface TSIndexedAccessType$1 extends Span$1 {
|
|
1698
|
+
type: "TSIndexedAccessType";
|
|
1699
|
+
objectType: TSType$1;
|
|
1700
|
+
indexType: TSType$1;
|
|
1701
|
+
parent?: Node$1;
|
|
1702
|
+
}
|
|
1703
|
+
declare interface TSIndexSignature$1 extends Span$1 {
|
|
1704
|
+
type: "TSIndexSignature";
|
|
1705
|
+
parameters: Array<TSIndexSignatureName>;
|
|
1706
|
+
typeAnnotation: TSTypeAnnotation$1;
|
|
1707
|
+
readonly: boolean;
|
|
1708
|
+
static: boolean;
|
|
1709
|
+
accessibility: null;
|
|
1710
|
+
parent?: Node$1;
|
|
1711
|
+
}
|
|
1712
|
+
declare interface TSIndexSignatureName extends Span$1 {
|
|
1713
|
+
type: "Identifier";
|
|
1714
|
+
decorators: [];
|
|
1715
|
+
name: string;
|
|
1716
|
+
optional: false;
|
|
1717
|
+
typeAnnotation: TSTypeAnnotation$1;
|
|
1718
|
+
parent?: Node$1;
|
|
1719
|
+
}
|
|
1720
|
+
declare interface TSInferType$1 extends Span$1 {
|
|
1721
|
+
type: "TSInferType";
|
|
1722
|
+
typeParameter: TSTypeParameter;
|
|
1723
|
+
parent?: Node$1;
|
|
1724
|
+
}
|
|
1725
|
+
declare interface TSInstantiationExpression$1 extends Span$1 {
|
|
1726
|
+
type: "TSInstantiationExpression";
|
|
1727
|
+
expression: Expression$1;
|
|
1728
|
+
typeArguments: TSTypeParameterInstantiation$1;
|
|
1729
|
+
parent?: Node$1;
|
|
1730
|
+
}
|
|
1731
|
+
declare interface TSInterfaceBody$1 extends Span$1 {
|
|
1732
|
+
type: "TSInterfaceBody";
|
|
1733
|
+
body: Array<TSSignature>;
|
|
1734
|
+
parent?: Node$1;
|
|
1735
|
+
}
|
|
1736
|
+
declare interface TSInterfaceDeclaration$1 extends Span$1 {
|
|
1737
|
+
type: "TSInterfaceDeclaration";
|
|
1738
|
+
id: BindingIdentifier$1;
|
|
1739
|
+
typeParameters: TSTypeParameterDeclaration$1 | null;
|
|
1740
|
+
extends: Array<TSInterfaceHeritage>;
|
|
1741
|
+
body: TSInterfaceBody$1;
|
|
1742
|
+
declare: boolean;
|
|
1743
|
+
parent?: Node$1;
|
|
1744
|
+
}
|
|
1745
|
+
declare interface TSInterfaceHeritage extends Span$1 {
|
|
1746
|
+
type: "TSInterfaceHeritage";
|
|
1747
|
+
expression: Expression$1;
|
|
1748
|
+
typeArguments: TSTypeParameterInstantiation$1 | null;
|
|
1749
|
+
parent?: Node$1;
|
|
1750
|
+
}
|
|
1751
|
+
declare interface TSIntersectionType$1 extends Span$1 {
|
|
1752
|
+
type: "TSIntersectionType";
|
|
1753
|
+
types: Array<TSType$1>;
|
|
1754
|
+
parent?: Node$1;
|
|
1755
|
+
}
|
|
1756
|
+
declare interface TSIntrinsicKeyword extends Span$1 {
|
|
1757
|
+
type: "TSIntrinsicKeyword";
|
|
1758
|
+
parent?: Node$1;
|
|
1759
|
+
}
|
|
1760
|
+
declare type TSLiteral = BooleanLiteral$1 | NumericLiteral$1 | BigIntLiteral$1 | StringLiteral$1 | TemplateLiteral$1 | UnaryExpression$1;
|
|
1761
|
+
declare interface TSLiteralType$1 extends Span$1 {
|
|
1762
|
+
type: "TSLiteralType";
|
|
1763
|
+
literal: TSLiteral;
|
|
1764
|
+
parent?: Node$1;
|
|
1765
|
+
}
|
|
1766
|
+
declare interface TSMappedType$1 extends Span$1 {
|
|
1767
|
+
type: "TSMappedType";
|
|
1768
|
+
key: BindingIdentifier$1;
|
|
1769
|
+
constraint: TSType$1;
|
|
1770
|
+
nameType: TSType$1 | null;
|
|
1771
|
+
typeAnnotation: TSType$1 | null;
|
|
1772
|
+
optional: TSMappedTypeModifierOperator | false;
|
|
1773
|
+
readonly: TSMappedTypeModifierOperator | null;
|
|
1774
|
+
parent?: Node$1;
|
|
1775
|
+
}
|
|
1776
|
+
declare type TSMappedTypeModifierOperator = true | "+" | "-";
|
|
1777
|
+
declare interface TSMethodSignature$1 extends Span$1 {
|
|
1778
|
+
type: "TSMethodSignature";
|
|
1779
|
+
key: PropertyKey_2;
|
|
1780
|
+
computed: boolean;
|
|
1781
|
+
optional: boolean;
|
|
1782
|
+
kind: TSMethodSignatureKind;
|
|
1783
|
+
typeParameters: TSTypeParameterDeclaration$1 | null;
|
|
1784
|
+
params: ParamPattern$1[];
|
|
1785
|
+
returnType: TSTypeAnnotation$1 | null;
|
|
1786
|
+
accessibility: null;
|
|
1787
|
+
readonly: false;
|
|
1788
|
+
static: false;
|
|
1789
|
+
parent?: Node$1;
|
|
1790
|
+
}
|
|
1791
|
+
declare type TSMethodSignatureKind = "method" | "get" | "set";
|
|
1792
|
+
declare interface TSModuleBlock$1 extends Span$1 {
|
|
1793
|
+
type: "TSModuleBlock";
|
|
1794
|
+
body: Array<Directive | Statement$1>;
|
|
1795
|
+
parent?: Node$1;
|
|
1796
|
+
}
|
|
1797
|
+
declare interface TSModuleDeclaration$1 extends Span$1 {
|
|
1798
|
+
type: "TSModuleDeclaration";
|
|
1799
|
+
id: BindingIdentifier$1 | StringLiteral$1 | TSQualifiedName$1;
|
|
1800
|
+
body: TSModuleBlock$1 | null;
|
|
1801
|
+
kind: TSModuleDeclarationKind;
|
|
1802
|
+
declare: boolean;
|
|
1803
|
+
global: false;
|
|
1804
|
+
parent?: Node$1;
|
|
1805
|
+
}
|
|
1806
|
+
declare type TSModuleDeclarationKind = "module" | "namespace";
|
|
1807
|
+
declare type TSModuleReference = TSExternalModuleReference | IdentifierReference$1 | TSQualifiedName$1;
|
|
1808
|
+
declare interface TSNamedTupleMember$1 extends Span$1 {
|
|
1809
|
+
type: "TSNamedTupleMember";
|
|
1810
|
+
label: IdentifierName$1;
|
|
1811
|
+
elementType: TSTupleElement;
|
|
1812
|
+
optional: boolean;
|
|
1813
|
+
parent?: Node$1;
|
|
1814
|
+
}
|
|
1815
|
+
declare interface TSNamespaceExportDeclaration$1 extends Span$1 {
|
|
1816
|
+
type: "TSNamespaceExportDeclaration";
|
|
1817
|
+
id: IdentifierName$1;
|
|
1818
|
+
parent?: Node$1;
|
|
1819
|
+
}
|
|
1820
|
+
declare interface TSNeverKeyword extends Span$1 {
|
|
1821
|
+
type: "TSNeverKeyword";
|
|
1822
|
+
parent?: Node$1;
|
|
1823
|
+
}
|
|
1824
|
+
declare interface TSNonNullExpression$1 extends Span$1 {
|
|
1825
|
+
type: "TSNonNullExpression";
|
|
1826
|
+
expression: Expression$1;
|
|
1827
|
+
parent?: Node$1;
|
|
1828
|
+
}
|
|
1829
|
+
declare interface TSNullKeyword extends Span$1 {
|
|
1830
|
+
type: "TSNullKeyword";
|
|
1831
|
+
parent?: Node$1;
|
|
1832
|
+
}
|
|
1833
|
+
declare interface TSNumberKeyword extends Span$1 {
|
|
1834
|
+
type: "TSNumberKeyword";
|
|
1835
|
+
parent?: Node$1;
|
|
1836
|
+
}
|
|
1837
|
+
declare interface TSObjectKeyword extends Span$1 {
|
|
1838
|
+
type: "TSObjectKeyword";
|
|
1839
|
+
parent?: Node$1;
|
|
1840
|
+
}
|
|
1841
|
+
declare interface TSOptionalType$1 extends Span$1 {
|
|
1842
|
+
type: "TSOptionalType";
|
|
1843
|
+
typeAnnotation: TSType$1;
|
|
1844
|
+
parent?: Node$1;
|
|
1845
|
+
}
|
|
1846
|
+
declare interface TSParameterProperty extends Span$1 {
|
|
1847
|
+
type: "TSParameterProperty";
|
|
1848
|
+
accessibility: TSAccessibility | null;
|
|
1849
|
+
decorators: Array<Decorator$1>;
|
|
1850
|
+
override: boolean;
|
|
1851
|
+
parameter: FormalParameter;
|
|
1852
|
+
readonly: boolean;
|
|
1853
|
+
static: boolean;
|
|
1854
|
+
parent?: Node$1;
|
|
1855
|
+
}
|
|
1856
|
+
declare interface TSParenthesizedType$1 extends Span$1 {
|
|
1857
|
+
type: "TSParenthesizedType";
|
|
1858
|
+
typeAnnotation: TSType$1;
|
|
1859
|
+
parent?: Node$1;
|
|
1860
|
+
}
|
|
1861
|
+
declare interface TSPropertySignature$1 extends Span$1 {
|
|
1862
|
+
type: "TSPropertySignature";
|
|
1863
|
+
computed: boolean;
|
|
1864
|
+
optional: boolean;
|
|
1865
|
+
readonly: boolean;
|
|
1866
|
+
key: PropertyKey_2;
|
|
1867
|
+
typeAnnotation: TSTypeAnnotation$1 | null;
|
|
1868
|
+
accessibility: null;
|
|
1869
|
+
static: false;
|
|
1870
|
+
parent?: Node$1;
|
|
1871
|
+
}
|
|
1872
|
+
declare interface TSQualifiedName$1 extends Span$1 {
|
|
1873
|
+
type: "TSQualifiedName";
|
|
1874
|
+
left: TSTypeName;
|
|
1875
|
+
right: IdentifierName$1;
|
|
1876
|
+
parent?: Node$1;
|
|
1877
|
+
}
|
|
1878
|
+
declare interface TSRestType$1 extends Span$1 {
|
|
1879
|
+
type: "TSRestType";
|
|
1880
|
+
typeAnnotation: TSType$1;
|
|
1881
|
+
parent?: Node$1;
|
|
1882
|
+
}
|
|
1883
|
+
declare interface TSSatisfiesExpression$1 extends Span$1 {
|
|
1884
|
+
type: "TSSatisfiesExpression";
|
|
1885
|
+
expression: Expression$1;
|
|
1886
|
+
typeAnnotation: TSType$1;
|
|
1887
|
+
parent?: Node$1;
|
|
1888
|
+
}
|
|
1889
|
+
declare type TSSignature = TSIndexSignature$1 | TSPropertySignature$1 | TSCallSignatureDeclaration$1 | TSConstructSignatureDeclaration$1 | TSMethodSignature$1;
|
|
1890
|
+
declare interface TSStringKeyword extends Span$1 {
|
|
1891
|
+
type: "TSStringKeyword";
|
|
1892
|
+
parent?: Node$1;
|
|
1893
|
+
}
|
|
1894
|
+
declare interface TSSymbolKeyword extends Span$1 {
|
|
1895
|
+
type: "TSSymbolKeyword";
|
|
1896
|
+
parent?: Node$1;
|
|
1897
|
+
}
|
|
1898
|
+
declare interface TSTemplateLiteralType$1 extends Span$1 {
|
|
1899
|
+
type: "TSTemplateLiteralType";
|
|
1900
|
+
quasis: Array<TemplateElement$1>;
|
|
1901
|
+
types: Array<TSType$1>;
|
|
1902
|
+
parent?: Node$1;
|
|
1903
|
+
}
|
|
1904
|
+
declare interface TSThisParameter extends Span$1 {
|
|
1905
|
+
type: "Identifier";
|
|
1906
|
+
decorators: [];
|
|
1907
|
+
name: "this";
|
|
1908
|
+
optional: false;
|
|
1909
|
+
typeAnnotation: TSTypeAnnotation$1 | null;
|
|
1910
|
+
parent?: Node$1;
|
|
1911
|
+
}
|
|
1912
|
+
declare interface TSThisType extends Span$1 {
|
|
1913
|
+
type: "TSThisType";
|
|
1914
|
+
parent?: Node$1;
|
|
1915
|
+
}
|
|
1916
|
+
declare type TSTupleElement = TSOptionalType$1 | TSRestType$1 | TSType$1;
|
|
1917
|
+
declare interface TSTupleType$1 extends Span$1 {
|
|
1918
|
+
type: "TSTupleType";
|
|
1919
|
+
elementTypes: Array<TSTupleElement>;
|
|
1920
|
+
parent?: Node$1;
|
|
1921
|
+
}
|
|
1922
|
+
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;
|
|
1923
|
+
declare interface TSTypeAliasDeclaration$1 extends Span$1 {
|
|
1924
|
+
type: "TSTypeAliasDeclaration";
|
|
1925
|
+
id: BindingIdentifier$1;
|
|
1926
|
+
typeParameters: TSTypeParameterDeclaration$1 | null;
|
|
1927
|
+
typeAnnotation: TSType$1;
|
|
1928
|
+
declare: boolean;
|
|
1929
|
+
parent?: Node$1;
|
|
1930
|
+
}
|
|
1931
|
+
declare interface TSTypeAnnotation$1 extends Span$1 {
|
|
1932
|
+
type: "TSTypeAnnotation";
|
|
1933
|
+
typeAnnotation: TSType$1;
|
|
1934
|
+
parent?: Node$1;
|
|
1935
|
+
}
|
|
1936
|
+
declare interface TSTypeAssertion$1 extends Span$1 {
|
|
1937
|
+
type: "TSTypeAssertion";
|
|
1938
|
+
typeAnnotation: TSType$1;
|
|
1939
|
+
expression: Expression$1;
|
|
1940
|
+
parent?: Node$1;
|
|
1941
|
+
}
|
|
1942
|
+
declare interface TSTypeLiteral extends Span$1 {
|
|
1943
|
+
type: "TSTypeLiteral";
|
|
1944
|
+
members: Array<TSSignature>;
|
|
1945
|
+
parent?: Node$1;
|
|
1946
|
+
}
|
|
1947
|
+
declare type TSTypeName = IdentifierReference$1 | TSQualifiedName$1 | ThisExpression$1;
|
|
1948
|
+
declare interface TSTypeOperator$1 extends Span$1 {
|
|
1949
|
+
type: "TSTypeOperator";
|
|
1950
|
+
operator: TSTypeOperatorOperator;
|
|
1951
|
+
typeAnnotation: TSType$1;
|
|
1952
|
+
parent?: Node$1;
|
|
1953
|
+
}
|
|
1954
|
+
declare type TSTypeOperatorOperator = "keyof" | "unique" | "readonly";
|
|
1955
|
+
declare interface TSTypeParameter extends Span$1 {
|
|
1956
|
+
type: "TSTypeParameter";
|
|
1957
|
+
name: BindingIdentifier$1;
|
|
1958
|
+
constraint: TSType$1 | null;
|
|
1959
|
+
default: TSType$1 | null;
|
|
1960
|
+
in: boolean;
|
|
1961
|
+
out: boolean;
|
|
1962
|
+
const: boolean;
|
|
1963
|
+
parent?: Node$1;
|
|
1964
|
+
}
|
|
1965
|
+
declare interface TSTypeParameterDeclaration$1 extends Span$1 {
|
|
1966
|
+
type: "TSTypeParameterDeclaration";
|
|
1967
|
+
params: Array<TSTypeParameter>;
|
|
1968
|
+
parent?: Node$1;
|
|
1969
|
+
}
|
|
1970
|
+
declare interface TSTypeParameterInstantiation$1 extends Span$1 {
|
|
1971
|
+
type: "TSTypeParameterInstantiation";
|
|
1972
|
+
params: Array<TSType$1>;
|
|
1973
|
+
parent?: Node$1;
|
|
1974
|
+
}
|
|
1975
|
+
declare interface TSTypePredicate$1 extends Span$1 {
|
|
1976
|
+
type: "TSTypePredicate";
|
|
1977
|
+
parameterName: TSTypePredicateName;
|
|
1978
|
+
asserts: boolean;
|
|
1979
|
+
typeAnnotation: TSTypeAnnotation$1 | null;
|
|
1980
|
+
parent?: Node$1;
|
|
1981
|
+
}
|
|
1982
|
+
declare type TSTypePredicateName = IdentifierName$1 | TSThisType;
|
|
1983
|
+
declare interface TSTypeQuery$1 extends Span$1 {
|
|
1984
|
+
type: "TSTypeQuery";
|
|
1985
|
+
exprName: TSTypeQueryExprName;
|
|
1986
|
+
typeArguments: TSTypeParameterInstantiation$1 | null;
|
|
1987
|
+
parent?: Node$1;
|
|
1988
|
+
}
|
|
1989
|
+
declare type TSTypeQueryExprName = TSImportType$1 | TSTypeName;
|
|
1990
|
+
declare interface TSTypeReference$1 extends Span$1 {
|
|
1991
|
+
type: "TSTypeReference";
|
|
1992
|
+
typeName: TSTypeName;
|
|
1993
|
+
typeArguments: TSTypeParameterInstantiation$1 | null;
|
|
1994
|
+
parent?: Node$1;
|
|
1995
|
+
}
|
|
1996
|
+
declare interface TSUndefinedKeyword extends Span$1 {
|
|
1997
|
+
type: "TSUndefinedKeyword";
|
|
1998
|
+
parent?: Node$1;
|
|
1999
|
+
}
|
|
2000
|
+
declare interface TSUnionType$1 extends Span$1 {
|
|
2001
|
+
type: "TSUnionType";
|
|
2002
|
+
types: Array<TSType$1>;
|
|
2003
|
+
parent?: Node$1;
|
|
2004
|
+
}
|
|
2005
|
+
declare interface TSUnknownKeyword extends Span$1 {
|
|
2006
|
+
type: "TSUnknownKeyword";
|
|
2007
|
+
parent?: Node$1;
|
|
2008
|
+
}
|
|
2009
|
+
declare interface TSVoidKeyword extends Span$1 {
|
|
2010
|
+
type: "TSVoidKeyword";
|
|
2011
|
+
parent?: Node$1;
|
|
2012
|
+
}
|
|
2013
|
+
declare interface UnaryExpression$1 extends Span$1 {
|
|
2014
|
+
type: "UnaryExpression";
|
|
2015
|
+
operator: UnaryOperator;
|
|
2016
|
+
argument: Expression$1;
|
|
2017
|
+
prefix: true;
|
|
2018
|
+
parent?: Node$1;
|
|
2019
|
+
}
|
|
2020
|
+
declare type UnaryOperator = "+" | "-" | "!" | "~" | "typeof" | "void" | "delete";
|
|
2021
|
+
declare interface UpdateExpression$1 extends Span$1 {
|
|
2022
|
+
type: "UpdateExpression";
|
|
2023
|
+
operator: UpdateOperator;
|
|
2024
|
+
prefix: boolean;
|
|
2025
|
+
argument: SimpleAssignmentTarget$1;
|
|
2026
|
+
parent?: Node$1;
|
|
2027
|
+
}
|
|
2028
|
+
declare type UpdateOperator = "++" | "--";
|
|
2029
|
+
declare interface V8IntrinsicExpression extends Span$1 {
|
|
2030
|
+
type: "V8IntrinsicExpression";
|
|
2031
|
+
name: IdentifierName$1;
|
|
2032
|
+
arguments: Array<Argument$1>;
|
|
2033
|
+
parent?: Node$1;
|
|
2034
|
+
}
|
|
2035
|
+
declare interface VariableDeclaration$1 extends Span$1 {
|
|
2036
|
+
type: "VariableDeclaration";
|
|
2037
|
+
kind: VariableDeclarationKind;
|
|
2038
|
+
declarations: Array<VariableDeclarator$1>;
|
|
2039
|
+
declare?: boolean;
|
|
2040
|
+
parent?: Node$1;
|
|
2041
|
+
}
|
|
2042
|
+
declare type VariableDeclarationKind = "var" | "let" | "const" | "using" | "await using";
|
|
2043
|
+
declare interface VariableDeclarator$1 extends Span$1 {
|
|
2044
|
+
type: "VariableDeclarator";
|
|
2045
|
+
id: BindingPattern$1;
|
|
2046
|
+
init: Expression$1 | null;
|
|
2047
|
+
definite?: boolean;
|
|
2048
|
+
parent?: Node$1;
|
|
2049
|
+
}
|
|
2050
|
+
declare interface WhileStatement$1 extends Span$1 {
|
|
2051
|
+
type: "WhileStatement";
|
|
2052
|
+
test: Expression$1;
|
|
2053
|
+
body: Statement$1;
|
|
2054
|
+
parent?: Node$1;
|
|
2055
|
+
}
|
|
2056
|
+
declare interface WithStatement$1 extends Span$1 {
|
|
2057
|
+
type: "WithStatement";
|
|
2058
|
+
object: Expression$1;
|
|
2059
|
+
body: Statement$1;
|
|
2060
|
+
parent?: Node$1;
|
|
2061
|
+
}
|
|
2062
|
+
declare interface YieldExpression$1 extends Span$1 {
|
|
2063
|
+
type: "YieldExpression";
|
|
2064
|
+
delegate: boolean;
|
|
2065
|
+
argument: Expression$1 | null;
|
|
2066
|
+
parent?: Node$1;
|
|
2067
|
+
}
|
|
2068
|
+
declare const ScriptOrigin: S.Struct<{
|
|
2069
|
+
readonly line: S.Int;
|
|
2070
|
+
readonly columnShift: S.Int;
|
|
2071
|
+
}>;
|
|
2072
|
+
type ScriptOrigin = typeof ScriptOrigin.Type;
|
|
2073
|
+
//#endregion
|
|
2074
|
+
//#region src/Syntax.schema.d.ts
|
|
2075
|
+
declare const AstFormat: S.Literals<readonly ["js", "ts", "tsx"]>;
|
|
2076
|
+
type AstFormat = typeof AstFormat.Type;
|
|
2077
|
+
//#endregion
|
|
2078
|
+
//#region src/Ast.schema.d.ts
|
|
2079
|
+
interface SpannedComment {
|
|
2080
|
+
readonly type: 'Line' | 'Block';
|
|
2081
|
+
readonly value: string;
|
|
2082
|
+
readonly start: number;
|
|
2083
|
+
readonly end: number;
|
|
2084
|
+
}
|
|
2085
|
+
type ScriptFormat = Extract<AstFormat, 'js' | 'ts' | 'tsx'>;
|
|
2086
|
+
interface BaseAst {
|
|
2087
|
+
originFileName: string;
|
|
2088
|
+
rawContent: string;
|
|
2089
|
+
root: Program;
|
|
2090
|
+
offset?: ScriptOrigin;
|
|
2091
|
+
}
|
|
2092
|
+
interface EmbeddedAst {
|
|
2093
|
+
format: 'embedded';
|
|
2094
|
+
formatId: FormatId;
|
|
2095
|
+
originFileName: string;
|
|
2096
|
+
rawContent: string;
|
|
2097
|
+
document: EmbeddedDocument;
|
|
2098
|
+
readonly context: FrameworkContext;
|
|
2099
|
+
scripts: readonly EmbeddedScript[];
|
|
2100
|
+
}
|
|
2101
|
+
interface EmbeddedScript {
|
|
2102
|
+
readonly region: number;
|
|
2103
|
+
readonly ast: ScriptAst;
|
|
2104
|
+
}
|
|
2105
|
+
interface JSAst extends BaseAst {
|
|
2106
|
+
format: 'js';
|
|
2107
|
+
root: Program;
|
|
2108
|
+
comments: readonly SpannedComment[];
|
|
2109
|
+
}
|
|
2110
|
+
interface TSAst extends BaseAst {
|
|
2111
|
+
format: 'ts';
|
|
2112
|
+
root: Program;
|
|
2113
|
+
comments: readonly SpannedComment[];
|
|
2114
|
+
}
|
|
2115
|
+
interface TsxAst extends BaseAst {
|
|
2116
|
+
format: 'tsx';
|
|
2117
|
+
root: Program;
|
|
2118
|
+
comments: readonly SpannedComment[];
|
|
2119
|
+
}
|
|
2120
|
+
type ScriptAst = JSAst | TSAst | TsxAst;
|
|
2121
|
+
type Ast = JSAst | TSAst | TsxAst | EmbeddedAst;
|
|
2122
|
+
//#endregion
|
|
2123
|
+
//#region src/Mutator.service.d.ts
|
|
2124
|
+
interface Mutable {
|
|
2125
|
+
mutatorName: string;
|
|
2126
|
+
ignoreReason?: string | undefined;
|
|
2127
|
+
replacement: Node_2;
|
|
2128
|
+
}
|
|
2129
|
+
interface Mutant$1 extends Mutable {
|
|
2130
|
+
readonly id: mod_d_exports$2$1.MutantId;
|
|
2131
|
+
readonly fileName: string;
|
|
2132
|
+
readonly original: Node_2;
|
|
2133
|
+
readonly location: mod_d_exports$2$1.Location;
|
|
2134
|
+
readonly replacementCode: string;
|
|
2135
|
+
}
|
|
2136
|
+
interface MutatorContext {
|
|
2137
|
+
readonly parent: Node_2 | undefined;
|
|
2138
|
+
readonly grandParent: Node_2 | undefined;
|
|
2139
|
+
readonly ancestors: readonly Node_2[];
|
|
2140
|
+
readonly mutantSetPolicy: mod_d_exports$5.MutantSetPolicyType;
|
|
2141
|
+
}
|
|
2142
|
+
/**
|
|
2143
|
+
* One mutator: a pure function from a node to the mutants it produces.
|
|
2144
|
+
*
|
|
2145
|
+
* A function, not an object with a `mutate` method and a `name` field. The name
|
|
2146
|
+
* lived inside every mutator AND as its position in a hand-written list, so the
|
|
2147
|
+
* two could disagree; the registry's key is now the only place a name is
|
|
2148
|
+
* written.
|
|
2149
|
+
*/
|
|
2150
|
+
type Mutator = (node: Node_2, context: MutatorContext) => Iterable<Node_2>;
|
|
2151
|
+
interface MutatorOptions {
|
|
2152
|
+
excludedMutations: string[];
|
|
2153
|
+
mutators: MutatorSelection;
|
|
2154
|
+
mutantSetPolicy: mod_d_exports$5.MutantSetPolicyType;
|
|
2155
|
+
noHeader?: boolean;
|
|
2156
|
+
}
|
|
2157
|
+
type MutatorEntry = readonly [name: string, mutate: Mutator];
|
|
2158
|
+
interface MutatorSelection {
|
|
2159
|
+
/** Every default, then each opt-in the run named, in the registry's declared order. */
|
|
2160
|
+
readonly active: readonly MutatorEntry[];
|
|
2161
|
+
/** Every name a `Stryker disable` directive may reference, selected or not. */
|
|
2162
|
+
readonly known: readonly string[];
|
|
2163
|
+
}
|
|
2164
|
+
//#endregion
|
|
2165
|
+
//#region src/Instrument.schema.d.ts
|
|
2166
|
+
declare const InstrumentError_base: S.Class<InstrumentError, S.TaggedStruct<"InstrumentError", {
|
|
2167
|
+
readonly message: S.String;
|
|
2168
|
+
readonly cause: S.Defect;
|
|
2169
|
+
}>, import("effect/Cause").YieldableError>;
|
|
2170
|
+
declare class InstrumentError extends InstrumentError_base {
|
|
2171
|
+
get message(): string;
|
|
2172
|
+
}
|
|
2173
|
+
declare const MutateDescriptionSchema: S.Union<readonly [S.Boolean, S.$Array<S.decodeTo<S.declare<{
|
|
2174
|
+
readonly start: {
|
|
2175
|
+
readonly line: number;
|
|
2176
|
+
readonly column: number;
|
|
2177
|
+
};
|
|
2178
|
+
readonly end: {
|
|
2179
|
+
readonly line: number;
|
|
2180
|
+
readonly column: number;
|
|
2181
|
+
};
|
|
2182
|
+
}, {
|
|
2183
|
+
readonly start: {
|
|
2184
|
+
readonly line: number;
|
|
2185
|
+
readonly column: number;
|
|
2186
|
+
};
|
|
2187
|
+
readonly end: {
|
|
2188
|
+
readonly line: number;
|
|
2189
|
+
readonly column: number;
|
|
2190
|
+
};
|
|
2191
|
+
}>, S.Struct<{
|
|
2192
|
+
readonly start: S.Struct<{
|
|
2193
|
+
readonly line: S.Int;
|
|
2194
|
+
readonly column: S.Int;
|
|
2195
|
+
}>;
|
|
2196
|
+
readonly end: S.Struct<{
|
|
2197
|
+
readonly line: S.Int;
|
|
2198
|
+
readonly column: S.Int;
|
|
2199
|
+
}>;
|
|
2200
|
+
}>, never, never>>]>;
|
|
2201
|
+
type MutateDescription = typeof MutateDescriptionSchema.Type;
|
|
2202
|
+
interface FileDescription {
|
|
2203
|
+
readonly mutate: MutateDescription;
|
|
2204
|
+
}
|
|
2205
|
+
type FileDescriptions = Record<string, FileDescription>;
|
|
2206
|
+
declare const InstrumenterOptionsSchema: S.Struct<{
|
|
2207
|
+
readonly excludedMutations: S.$Array<S.String>;
|
|
2208
|
+
readonly ignorers: S.$Array<S.Unknown>;
|
|
2209
|
+
readonly mutators: S.Unknown;
|
|
2210
|
+
readonly mutantSetPolicy: S.Literals<readonly ["default", "full"]>;
|
|
2211
|
+
readonly noHeader: S.optional<S.Boolean>;
|
|
2212
|
+
}>;
|
|
2213
|
+
type InstrumenterOptions = Omit<typeof InstrumenterOptionsSchema.Type, 'mutators'> & {
|
|
2214
|
+
readonly mutators: MutatorSelection;
|
|
2215
|
+
};
|
|
2216
|
+
declare const InstrumentFileSkip_base: S.Class<InstrumentFileSkip, S.TaggedStruct<"InstrumentFileSkip", {
|
|
2217
|
+
readonly file: S.String;
|
|
2218
|
+
readonly extension: S.String;
|
|
2219
|
+
readonly reason: S.String;
|
|
2220
|
+
}>, {}>;
|
|
2221
|
+
declare class InstrumentFileSkip extends InstrumentFileSkip_base {}
|
|
2222
|
+
declare const InstrumentResult_base: S.Class<InstrumentResult$1, S.TaggedStruct<"InstrumentResult", {
|
|
2223
|
+
readonly files: S.$Array<S.Struct<{
|
|
2224
|
+
readonly name: S.decodeTo<S.brand<S.String, "CanonicalFileName">, S.String, never, never>;
|
|
2225
|
+
readonly content: S.String;
|
|
2226
|
+
readonly mutate: S.Union<readonly [S.Boolean, S.$Array<S.decodeTo<S.declare<{
|
|
2227
|
+
readonly start: {
|
|
2228
|
+
readonly line: number;
|
|
2229
|
+
readonly column: number;
|
|
2230
|
+
};
|
|
2231
|
+
readonly end: {
|
|
2232
|
+
readonly line: number;
|
|
2233
|
+
readonly column: number;
|
|
2234
|
+
};
|
|
2235
|
+
}, {
|
|
2236
|
+
readonly start: {
|
|
2237
|
+
readonly line: number;
|
|
2238
|
+
readonly column: number;
|
|
2239
|
+
};
|
|
2240
|
+
readonly end: {
|
|
2241
|
+
readonly line: number;
|
|
2242
|
+
readonly column: number;
|
|
2243
|
+
};
|
|
2244
|
+
}>, S.Struct<{
|
|
2245
|
+
readonly start: S.Struct<{
|
|
2246
|
+
readonly line: S.Int;
|
|
2247
|
+
readonly column: S.Int;
|
|
2248
|
+
}>;
|
|
2249
|
+
readonly end: S.Struct<{
|
|
2250
|
+
readonly line: S.Int;
|
|
2251
|
+
readonly column: S.Int;
|
|
2252
|
+
}>;
|
|
2253
|
+
}>, never, never>>]>;
|
|
2254
|
+
}>>;
|
|
2255
|
+
readonly mutants: S.$Array<S.Struct<{
|
|
2256
|
+
readonly _tag: S.tag<"Mutant">;
|
|
2257
|
+
readonly id: S.brand<S.String, "MutantId">;
|
|
2258
|
+
readonly fileName: S.decodeTo<S.brand<S.String, "CanonicalFileName">, S.String, never, never>;
|
|
2259
|
+
readonly mutatorName: S.brand<S.String, "MutatorName">;
|
|
2260
|
+
readonly replacement: S.String;
|
|
2261
|
+
readonly location: S.decodeTo<S.declare<{
|
|
2262
|
+
readonly start: {
|
|
2263
|
+
readonly line: number;
|
|
2264
|
+
readonly column: number;
|
|
2265
|
+
};
|
|
2266
|
+
readonly end: {
|
|
2267
|
+
readonly line: number;
|
|
2268
|
+
readonly column: number;
|
|
2269
|
+
};
|
|
2270
|
+
}, {
|
|
2271
|
+
readonly start: {
|
|
2272
|
+
readonly line: number;
|
|
2273
|
+
readonly column: number;
|
|
2274
|
+
};
|
|
2275
|
+
readonly end: {
|
|
2276
|
+
readonly line: number;
|
|
2277
|
+
readonly column: number;
|
|
2278
|
+
};
|
|
2279
|
+
}>, S.Struct<{
|
|
2280
|
+
readonly start: S.Struct<{
|
|
2281
|
+
readonly line: S.Int;
|
|
2282
|
+
readonly column: S.Int;
|
|
2283
|
+
}>;
|
|
2284
|
+
readonly end: S.Struct<{
|
|
2285
|
+
readonly line: S.Int;
|
|
2286
|
+
readonly column: S.Int;
|
|
2287
|
+
}>;
|
|
2288
|
+
}>, never, never>;
|
|
2289
|
+
readonly status: S.optional<S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>>;
|
|
2290
|
+
readonly statusReason: S.optional<S.String>;
|
|
2291
|
+
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
2292
|
+
readonly static: S.optional<S.Boolean>;
|
|
2293
|
+
readonly testsCompleted: S.optional<S.Finite>;
|
|
2294
|
+
readonly description: S.optional<S.String>;
|
|
2295
|
+
}>>;
|
|
2296
|
+
readonly skipped: S.$Array<typeof InstrumentFileSkip>;
|
|
2297
|
+
}>, {}>;
|
|
2298
|
+
declare class InstrumentResult$1 extends InstrumentResult_base {}
|
|
2299
|
+
//#endregion
|
|
2300
|
+
//#region src/Parser.schema.d.ts
|
|
2301
|
+
declare const ParseFailed_base: S.Class<ParseFailed, S.TaggedStruct<"ParseFailed", {
|
|
2302
|
+
readonly fileName: S.String;
|
|
2303
|
+
readonly message: S.String;
|
|
2304
|
+
readonly location: S.Struct<{
|
|
2305
|
+
readonly line: S.Int;
|
|
2306
|
+
readonly column: S.Int;
|
|
2307
|
+
}>;
|
|
2308
|
+
readonly cause: S.Defect;
|
|
2309
|
+
}>, import("effect/Cause").YieldableError>;
|
|
2310
|
+
declare class ParseFailed extends ParseFailed_base {
|
|
2311
|
+
get message(): string;
|
|
2312
|
+
}
|
|
2313
|
+
//#endregion
|
|
2314
|
+
//#region src/Parser.service.d.ts
|
|
2315
|
+
interface ParserOptions {}
|
|
2316
|
+
interface ParserContext {
|
|
2317
|
+
parse: (code: string, fileName: string, scriptFormat: ScriptFormat) => Effect$1.Effect<ScriptAst, ParseFailed>;
|
|
2318
|
+
}
|
|
2319
|
+
//#endregion
|
|
2320
|
+
//#region src/print/PrintFailed.schema.d.ts
|
|
2321
|
+
declare const PrintFailed_base: S.Class<PrintFailed, S.TaggedStruct<"PrintFailed", {
|
|
2322
|
+
readonly message: S.String;
|
|
2323
|
+
}>, import("effect/Cause").YieldableError>;
|
|
2324
|
+
declare class PrintFailed extends PrintFailed_base {}
|
|
2325
|
+
//#endregion
|
|
2326
|
+
//#region src/Printer.d.ts
|
|
2327
|
+
interface PrinterContext {
|
|
2328
|
+
print: (file: Ast, context: PrinterContext) => Result.Result<string, PrintFailed>;
|
|
2329
|
+
}
|
|
2330
|
+
//#endregion
|
|
2331
|
+
//#region src/MutantIdentity.d.ts
|
|
2332
|
+
interface MutantTuple {
|
|
2333
|
+
readonly fileName: string;
|
|
2334
|
+
readonly mutatorName: string;
|
|
2335
|
+
readonly originalCode: string;
|
|
2336
|
+
readonly replacementCode: string;
|
|
2337
|
+
}
|
|
2338
|
+
//#endregion
|
|
2339
|
+
//#region src/Transformer.service.d.ts
|
|
2340
|
+
interface TransformerOptions extends MutatorOptions {
|
|
2341
|
+
ignorers: readonly Ignorer[];
|
|
2342
|
+
}
|
|
2343
|
+
interface MutantCollector {
|
|
2344
|
+
/** 0-based, counting this collector's earlier occurrences of the same tuple. */
|
|
2345
|
+
readonly ordinalOf: (tuple: MutantTuple) => number;
|
|
2346
|
+
readonly append: (mutants: readonly Mutant$1[]) => void;
|
|
2347
|
+
readonly map: <A>(transform: (mutant: Mutant$1) => A) => readonly A[];
|
|
2348
|
+
}
|
|
2349
|
+
type AstTransformer<T extends Ast = Ast> = (ast: T, mutantCollector: MutantCollector, context: TransformerContext) => Effect$1.Effect<readonly string[], ParseFailed | InstrumentError>;
|
|
2350
|
+
interface TransformerContext {
|
|
2351
|
+
transform: AstTransformer;
|
|
2352
|
+
options: TransformerOptions;
|
|
2353
|
+
mutateDescription: MutateDescription;
|
|
2354
|
+
registry: FormatRegistry;
|
|
2355
|
+
readonly basePath?: string | undefined;
|
|
2356
|
+
}
|
|
2357
|
+
//#endregion
|
|
2358
|
+
//#region src/Format.schema.d.ts
|
|
2359
|
+
type FormatKind = 'script' | 'embedded';
|
|
2360
|
+
interface FormatClaim<Kind extends FormatKind = FormatKind> {
|
|
2361
|
+
readonly formatId: FormatId;
|
|
2362
|
+
readonly extensions: readonly string[];
|
|
2363
|
+
readonly language: string;
|
|
2364
|
+
readonly kind: Kind;
|
|
2365
|
+
}
|
|
2366
|
+
interface ScriptHooks {
|
|
2367
|
+
readonly parse: (text: string, fileName: string, context: ParserContext) => Effect$1.Effect<Ast, ParseFailed | InstrumentError>;
|
|
2368
|
+
readonly transform: AstTransformer;
|
|
2369
|
+
readonly print: (ast: Ast, context: PrinterContext) => string;
|
|
2370
|
+
readonly disableTypeChecks: (ast: Ast) => Effect$1.Effect<string, InstrumentError>;
|
|
2371
|
+
}
|
|
2372
|
+
interface FormatHooks extends ScriptHooks {
|
|
2373
|
+
readonly owner: string;
|
|
2374
|
+
readonly ownerVersion: string;
|
|
2375
|
+
}
|
|
2376
|
+
interface ScriptFormatEntry extends FormatHooks {
|
|
2377
|
+
readonly claim: FormatClaim<'script'>;
|
|
2378
|
+
readonly scriptFormat: ScriptFormat;
|
|
2379
|
+
}
|
|
2380
|
+
interface EmbeddedFormatEntry extends FormatHooks {
|
|
2381
|
+
readonly claim: FormatClaim<'embedded'>;
|
|
2382
|
+
}
|
|
2383
|
+
type FormatEntry = ScriptFormatEntry | EmbeddedFormatEntry;
|
|
2384
|
+
type EntryForFormat = (formatId: string) => Option$1.Option<FormatEntry>;
|
|
2385
|
+
interface FormatRegistry {
|
|
2386
|
+
readonly entries: readonly FormatEntry[];
|
|
2387
|
+
readonly entryForFormat: EntryForFormat;
|
|
2388
|
+
readonly entryForExtension: (extension: string) => Option$1.Option<FormatEntry>;
|
|
2389
|
+
}
|
|
2390
|
+
//#endregion
|
|
2391
|
+
//#region src/Format.d.ts
|
|
2392
|
+
declare const extensionOf: (fileName: string) => string;
|
|
2393
|
+
declare const registerEntries: {
|
|
2394
|
+
(registry: FormatRegistry, additions: readonly FormatEntry[]): FormatRegistry;
|
|
2395
|
+
(additions: readonly FormatEntry[]): (registry: FormatRegistry) => FormatRegistry;
|
|
2396
|
+
};
|
|
2397
|
+
declare const coreFormatRegistry: FormatRegistry;
|
|
2398
|
+
//#endregion
|
|
2399
|
+
//#region src/FrameworkEntry.d.ts
|
|
2400
|
+
declare const frameworkEntryOf: {
|
|
2401
|
+
(moduleName: string, framework: Framework): EmbeddedFormatEntry;
|
|
2402
|
+
(framework: Framework): (moduleName: string) => EmbeddedFormatEntry;
|
|
2403
|
+
};
|
|
2404
|
+
declare namespace mod_d_exports$1 {
|
|
2405
|
+
export { EmbeddedFormatEntry, FormatClaim, FormatEntry, FormatHooks, FormatKind, FormatRegistry, ScriptFormatEntry, coreFormatRegistry, extensionOf, frameworkEntryOf, registerEntries };
|
|
2406
|
+
}
|
|
2407
|
+
//#endregion
|
|
2408
|
+
//#region src/Instrument.service.d.ts
|
|
2409
|
+
interface File extends FileDescription {
|
|
2410
|
+
name: string;
|
|
2411
|
+
content: string;
|
|
2412
|
+
}
|
|
2413
|
+
interface InstrumentResult {
|
|
2414
|
+
files: readonly File[];
|
|
2415
|
+
mutants: readonly mod_d_exports$2$1.Mutant[];
|
|
2416
|
+
skipped: readonly InstrumentFileSkip[];
|
|
2417
|
+
}
|
|
2418
|
+
declare const instrument: {
|
|
2419
|
+
(files: readonly File[], options: InstrumenterOptions, registry?: FormatRegistry): Effect$1.Effect<InstrumentResult$1, InstrumentError>;
|
|
2420
|
+
(options: InstrumenterOptions, registry?: FormatRegistry): (files: readonly File[]) => Effect$1.Effect<InstrumentResult$1, InstrumentError>;
|
|
2421
|
+
};
|
|
2422
|
+
declare const disableTypeChecks: {
|
|
2423
|
+
(file: File, registry?: FormatRegistry): Effect$1.Effect<File, InstrumentError>;
|
|
2424
|
+
(registry?: FormatRegistry): (file: File) => Effect$1.Effect<File, InstrumentError>;
|
|
2425
|
+
};
|
|
2426
|
+
//#endregion
|
|
2427
|
+
//#region src/InstrumentContext.schema.d.ts
|
|
2428
|
+
declare const InstrumenterContext_base: S.Class<InstrumenterContext, S.Struct<{
|
|
2429
|
+
readonly activeMutant: S.optional<S.String>;
|
|
2430
|
+
readonly currentTestId: S.optional<S.String>;
|
|
2431
|
+
readonly mutantCoverage: S.optional<S.Struct<{
|
|
2432
|
+
readonly perTest: S.$Record<S.String, S.decodeTo<S.$Record<S.brand<S.String, "MutantId">, S.Int>, S.$Record<S.String, S.Int>, never, never>>;
|
|
2433
|
+
readonly static: S.decodeTo<S.$Record<S.brand<S.String, "MutantId">, S.Int>, S.$Record<S.String, S.Int>, never, never>;
|
|
2434
|
+
}>>;
|
|
2435
|
+
readonly hitCount: S.optional<S.Int>;
|
|
2436
|
+
readonly hitLimit: S.optional<S.Int>;
|
|
2437
|
+
}>, {}>;
|
|
2438
|
+
declare class InstrumenterContext extends InstrumenterContext_base {
|
|
2439
|
+
static readonly NAMESPACE = "__stryker__";
|
|
2440
|
+
static readonly MUTATION_COVERAGE_OBJECT = "mutantCoverage";
|
|
2441
|
+
static readonly ACTIVE_MUTANT = "activeMutant";
|
|
2442
|
+
static readonly CURRENT_TEST_ID = "currentTestId";
|
|
2443
|
+
static readonly HIT_COUNT = "hitCount";
|
|
2444
|
+
static readonly HIT_LIMIT = "hitLimit";
|
|
2445
|
+
static readonly ACTIVE_MUTANT_ENV_VARIABLE = "__STRYKER_ACTIVE_MUTANT__";
|
|
2446
|
+
}
|
|
2447
|
+
declare namespace mod_d_exports$2 {
|
|
2448
|
+
export { File, FileDescription, FileDescriptions, InstrumentError, InstrumentFileSkip, InstrumentResult, InstrumenterContext, InstrumenterOptions, MutateDescription, ParserOptions, disableTypeChecks, instrument };
|
|
2449
|
+
}
|
|
2450
|
+
//#endregion
|
|
2451
|
+
//#region src/IncrementalDiff.schema.d.ts
|
|
2452
|
+
declare const TimeoutEvidenceSchema: S.Struct<{
|
|
2453
|
+
readonly timeoutKind: S.Literals<readonly ["wallClock", "hitLimit"]>;
|
|
2454
|
+
readonly reproductions: S.Natural;
|
|
2455
|
+
}>;
|
|
2456
|
+
type TimeoutEvidence = S.Schema.Type<typeof TimeoutEvidenceSchema>;
|
|
2457
|
+
//#endregion
|
|
2458
|
+
//#region src/IncrementalReport.schema.d.ts
|
|
2459
|
+
declare const IncrementalReportSchema: S.StructWithRest<S.Struct<{
|
|
2460
|
+
readonly incrementalVersion: S.String;
|
|
2461
|
+
readonly schemaVersion: S.String;
|
|
2462
|
+
readonly verdictSemanticsVersion: S.Int;
|
|
2463
|
+
readonly mutantSetPolicy: S.Literals<readonly ["default", "full"]>;
|
|
2464
|
+
readonly runInputsDigest: S.String;
|
|
2465
|
+
readonly thresholds: S.Struct<{
|
|
2466
|
+
readonly high: S.Finite;
|
|
2467
|
+
readonly low: S.Finite;
|
|
2468
|
+
}>;
|
|
2469
|
+
readonly files: S.$Record<S.String, S.Struct<{
|
|
2470
|
+
readonly language: S.String;
|
|
2471
|
+
readonly source: S.String;
|
|
2472
|
+
readonly mutants: S.$Array<S.Struct<{
|
|
2473
|
+
readonly id: S.String;
|
|
2474
|
+
readonly mutatorName: S.String;
|
|
2475
|
+
readonly replacement: S.String;
|
|
2476
|
+
readonly location: S.decodeTo<S.declare<{
|
|
2477
|
+
readonly start: {
|
|
2478
|
+
readonly line: number;
|
|
2479
|
+
readonly column: number;
|
|
2480
|
+
};
|
|
2481
|
+
readonly end: {
|
|
2482
|
+
readonly line: number;
|
|
2483
|
+
readonly column: number;
|
|
2484
|
+
};
|
|
2485
|
+
}, {
|
|
2486
|
+
readonly start: {
|
|
2487
|
+
readonly line: number;
|
|
2488
|
+
readonly column: number;
|
|
2489
|
+
};
|
|
2490
|
+
readonly end: {
|
|
2491
|
+
readonly line: number;
|
|
2492
|
+
readonly column: number;
|
|
2493
|
+
};
|
|
2494
|
+
}>, S.Struct<{
|
|
2495
|
+
readonly start: S.Struct<{
|
|
2496
|
+
readonly line: S.Int;
|
|
2497
|
+
readonly column: S.Int;
|
|
2498
|
+
}>;
|
|
2499
|
+
readonly end: S.Struct<{
|
|
2500
|
+
readonly line: S.Int;
|
|
2501
|
+
readonly column: S.Int;
|
|
2502
|
+
}>;
|
|
2503
|
+
}>, never, never>;
|
|
2504
|
+
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
2505
|
+
readonly killedBy: S.optional<S.$Array<S.String>>;
|
|
2506
|
+
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
2507
|
+
readonly static: S.optional<S.Boolean>;
|
|
2508
|
+
readonly statusReason: S.optional<S.String>;
|
|
2509
|
+
readonly testsCompleted: S.optional<S.Finite>;
|
|
2510
|
+
readonly description: S.optional<S.String>;
|
|
2511
|
+
readonly duration: S.optional<S.Finite>;
|
|
2512
|
+
}>>;
|
|
2513
|
+
readonly formatIdentity: S.optional<S.Struct<{
|
|
2514
|
+
readonly formatId: S.String;
|
|
2515
|
+
readonly ownerModule: S.String;
|
|
2516
|
+
readonly ownerVersion: S.String;
|
|
2517
|
+
}>>;
|
|
2518
|
+
}>>;
|
|
2519
|
+
readonly testFiles: S.optional<S.$Record<S.String, S.Struct<{
|
|
2520
|
+
readonly source: S.optional<S.String>;
|
|
2521
|
+
readonly tests: S.$Array<S.Struct<{
|
|
2522
|
+
readonly id: S.String;
|
|
2523
|
+
readonly name: S.String;
|
|
2524
|
+
readonly location: S.optional<S.decodeTo<S.declare<{
|
|
2525
|
+
readonly start: {
|
|
2526
|
+
readonly line: number;
|
|
2527
|
+
readonly column: number;
|
|
2528
|
+
};
|
|
2529
|
+
readonly end?: {
|
|
2530
|
+
readonly line: number;
|
|
2531
|
+
readonly column: number;
|
|
2532
|
+
} | undefined;
|
|
2533
|
+
}, {
|
|
2534
|
+
readonly start: {
|
|
2535
|
+
readonly line: number;
|
|
2536
|
+
readonly column: number;
|
|
2537
|
+
};
|
|
2538
|
+
readonly end?: {
|
|
2539
|
+
readonly line: number;
|
|
2540
|
+
readonly column: number;
|
|
2541
|
+
} | undefined;
|
|
2542
|
+
}>, S.Struct<{
|
|
2543
|
+
readonly start: S.Struct<{
|
|
2544
|
+
readonly line: S.Int;
|
|
2545
|
+
readonly column: S.Int;
|
|
2546
|
+
}>;
|
|
2547
|
+
readonly end: S.optional<S.Struct<{
|
|
2548
|
+
readonly line: S.Int;
|
|
2549
|
+
readonly column: S.Int;
|
|
2550
|
+
}>>;
|
|
2551
|
+
}>, never, never>>;
|
|
2552
|
+
}>>;
|
|
2553
|
+
}>>>;
|
|
2554
|
+
readonly dryRunCoverage: S.optionalKey<S.Unknown>;
|
|
2555
|
+
}>, readonly [S.$Record<S.String, S.Unknown>]>;
|
|
2556
|
+
type IncrementalReport = S.Schema.Type<typeof IncrementalReportSchema>;
|
|
2557
|
+
//#endregion
|
|
2558
|
+
//#region src/Project.schema.d.ts
|
|
2559
|
+
interface ProjectFile extends mod_d_exports$2.FileDescription {
|
|
2560
|
+
readonly name: string;
|
|
2561
|
+
readonly mutate: mod_d_exports$2.MutateDescription;
|
|
2562
|
+
readonly content: string | undefined;
|
|
2563
|
+
readonly originalContent: string | undefined;
|
|
2564
|
+
}
|
|
2565
|
+
interface Project {
|
|
2566
|
+
readonly fileDescriptions: mod_d_exports$2.FileDescriptions;
|
|
2567
|
+
readonly incrementalReport: IncrementalReport | undefined;
|
|
2568
|
+
readonly testFiles: readonly string[];
|
|
2569
|
+
readonly files: MutableHashMap.MutableHashMap<string, ProjectFile>;
|
|
2570
|
+
readonly filesToMutate: MutableHashMap.MutableHashMap<string, ProjectFile>;
|
|
2571
|
+
}
|
|
2572
|
+
//#endregion
|
|
2573
|
+
//#region src/project-files.service.d.ts
|
|
2574
|
+
type ContentPair = readonly [ProjectFile, string];
|
|
2575
|
+
type PathPair = readonly [string, string];
|
|
2576
|
+
interface InPlaceTarget {
|
|
2577
|
+
readonly backupDirectory: string;
|
|
2578
|
+
readonly basePath: string;
|
|
2579
|
+
}
|
|
2580
|
+
interface SandboxTarget {
|
|
2581
|
+
readonly workingDirectory: string;
|
|
2582
|
+
readonly basePath: string;
|
|
2583
|
+
}
|
|
2584
|
+
interface ProjectFilesShape {
|
|
2585
|
+
readonly read: (file: ProjectFile) => Effect$1.Effect<string, PlatformError>;
|
|
2586
|
+
readonly readAll: (files: Iterable<ProjectFile>) => Effect$1.Effect<readonly ContentPair[], PlatformError>;
|
|
2587
|
+
readonly readAllOriginal: (files: Iterable<ProjectFile>) => Effect$1.Effect<readonly ContentPair[], PlatformError>;
|
|
2588
|
+
readonly writeAllInPlace: (files: Iterable<readonly [string, ProjectFile]>, target: InPlaceTarget) => Effect$1.Effect<readonly PathPair[], PlatformError>;
|
|
2589
|
+
readonly writeAllToSandbox: (files: Iterable<readonly [string, ProjectFile]>, target: SandboxTarget) => Effect$1.Effect<readonly PathPair[], PlatformError>;
|
|
2590
|
+
}
|
|
2591
|
+
declare const ProjectFiles_base: Context.ServiceClass<ProjectFiles, "@systemfsoftware/stryker-js/project-files.service/ProjectFiles", ProjectFilesShape>;
|
|
2592
|
+
declare class ProjectFiles extends ProjectFiles_base {
|
|
2593
|
+
static readonly layer: Layer.Layer<ProjectFiles, never, FileSystem.FileSystem | Path.Path>;
|
|
2594
|
+
}
|
|
2595
|
+
//#endregion
|
|
2596
|
+
//#region src/spawned-socket-worker.handle.d.ts
|
|
2597
|
+
declare const TypeId$1: unique symbol;
|
|
2598
|
+
type TypeId$1 = typeof TypeId$1;
|
|
2599
|
+
interface SpawnedSocketWorkerSlot {
|
|
2600
|
+
readonly clientLayer: Layer.Layer<RpcClient.Protocol, Socket.SocketError>;
|
|
2601
|
+
}
|
|
2602
|
+
declare const SpawnedSocketWorker: Handle.Definition<typeof TypeId$1, {
|
|
2603
|
+
readonly pid: number;
|
|
2604
|
+
readonly exited: Effect$1.Effect<never, WorkerExit>;
|
|
2605
|
+
}, SpawnedSocketWorkerSlot, never>;
|
|
2606
|
+
type SpawnedSocketWorker = Handle.Of<typeof SpawnedSocketWorker>;
|
|
2607
|
+
declare const make: (worker: {
|
|
2608
|
+
readonly pid: number;
|
|
2609
|
+
readonly clientLayer: Layer.Layer<RpcClient.Protocol, Socket.SocketError>;
|
|
2610
|
+
readonly exited: Effect$1.Effect<never, WorkerExit>;
|
|
2611
|
+
}) => SpawnedSocketWorker;
|
|
2612
|
+
//#endregion
|
|
2613
|
+
//#region src/WorkerLauncher.service.d.ts
|
|
2614
|
+
interface WorkerSpawnParams {
|
|
2615
|
+
readonly entrypoint: string;
|
|
2616
|
+
readonly workingDirectory: string;
|
|
2617
|
+
readonly execArgv: readonly string[];
|
|
2618
|
+
readonly optionsJson: string;
|
|
2619
|
+
readonly tempDirPrefix: string;
|
|
2620
|
+
readonly env?: Readonly<Record<string, string>> | undefined;
|
|
2621
|
+
}
|
|
2622
|
+
interface WorkerLauncherShape {
|
|
2623
|
+
readonly spawn: (params: WorkerSpawnParams) => Effect$1.Effect<SpawnedSocketWorker, ChildProcessCrashedError, Scope.Scope>;
|
|
2624
|
+
}
|
|
2625
|
+
declare const WorkerLauncher_base: Context.ServiceClass<WorkerLauncher, "@systemfsoftware/stryker-js/WorkerLauncher.service/WorkerLauncher", WorkerLauncherShape>;
|
|
2626
|
+
declare class WorkerLauncher extends WorkerLauncher_base {}
|
|
2627
|
+
//#endregion
|
|
2628
|
+
//#region src/reporter-stream.service.d.ts
|
|
2629
|
+
declare const ReporterStageTypeId: unique symbol;
|
|
2630
|
+
/**
|
|
2631
|
+
* An attached reporter stage, opaque at the engine boundary: the published
|
|
2632
|
+
* phase types carry this handle so the attachment machinery (queues, fibers,
|
|
2633
|
+
* the state latch) never reaches an adopter's compiler. Constructed only by
|
|
2634
|
+
* `attachReporterFactories`.
|
|
2635
|
+
*/
|
|
2636
|
+
interface ReporterStage {
|
|
2637
|
+
readonly [ReporterStageTypeId]: typeof ReporterStageTypeId;
|
|
2638
|
+
}
|
|
2639
|
+
declare const REPORTER_EVENT_BATCH_BOUND = 128;
|
|
2640
|
+
type ReporterWorkerClient = RpcClient.RpcClient<RpcGroup.Rpcs<typeof mod_d_exports$6.ReporterRpcs>, RpcClientError>;
|
|
2641
|
+
declare const reporterWorkerFactory: (client: ReporterWorkerClient) => mod_d_exports$8.ReporterFactory;
|
|
2642
|
+
interface SpawnReporterWorkerParams {
|
|
2643
|
+
readonly entrypoint: string;
|
|
2644
|
+
readonly projectBasePath: string;
|
|
2645
|
+
readonly execArgv: readonly string[];
|
|
2646
|
+
readonly options: mod_d_exports$5.StrykerOptions;
|
|
2647
|
+
readonly tempDirPrefix: string;
|
|
2648
|
+
}
|
|
2649
|
+
declare const spawnReporterWorker: (params: SpawnReporterWorkerParams) => Effect$1.Effect<ReporterWorkerClient, WorkerBootError, Scope.Scope | WorkerLauncher>;
|
|
2650
|
+
//#endregion
|
|
2651
|
+
//#region src/dry-run-coverage.schema.d.ts
|
|
2652
|
+
declare const DryRunCoverageSchema: S.Struct<{
|
|
2653
|
+
readonly tests: S.$Array<S.Union<readonly [S.Struct<{
|
|
2654
|
+
readonly id: S.brand<S.NonEmptyString, "TestId">;
|
|
2655
|
+
readonly name: S.String;
|
|
2656
|
+
readonly timeSpentMs: S.Finite;
|
|
2657
|
+
readonly fileName: S.optionalKey<S.String>;
|
|
2658
|
+
readonly startPosition: S.optionalKey<S.Struct<{
|
|
2659
|
+
readonly line: S.Int;
|
|
2660
|
+
readonly column: S.Int;
|
|
2661
|
+
}>>;
|
|
2662
|
+
readonly status: S.Literal<"failed">;
|
|
2663
|
+
readonly failureMessage: S.String;
|
|
2664
|
+
}>, S.Struct<{
|
|
2665
|
+
readonly id: S.brand<S.NonEmptyString, "TestId">;
|
|
2666
|
+
readonly name: S.String;
|
|
2667
|
+
readonly timeSpentMs: S.Finite;
|
|
2668
|
+
readonly fileName: S.optionalKey<S.String>;
|
|
2669
|
+
readonly startPosition: S.optionalKey<S.Struct<{
|
|
2670
|
+
readonly line: S.Int;
|
|
2671
|
+
readonly column: S.Int;
|
|
2672
|
+
}>>;
|
|
2673
|
+
readonly status: S.Literal<"skipped">;
|
|
2674
|
+
}>, S.Struct<{
|
|
2675
|
+
readonly id: S.brand<S.NonEmptyString, "TestId">;
|
|
2676
|
+
readonly name: S.String;
|
|
2677
|
+
readonly timeSpentMs: S.Finite;
|
|
2678
|
+
readonly fileName: S.optionalKey<S.String>;
|
|
2679
|
+
readonly startPosition: S.optionalKey<S.Struct<{
|
|
2680
|
+
readonly line: S.Int;
|
|
2681
|
+
readonly column: S.Int;
|
|
2682
|
+
}>>;
|
|
2683
|
+
readonly status: S.Literal<"success">;
|
|
2684
|
+
}>]>>;
|
|
2685
|
+
readonly mutantCoverage: S.optional<S.Struct<{
|
|
2686
|
+
readonly perTest: S.$Record<S.String, S.decodeTo<S.$Record<S.brand<S.String, "MutantId">, S.Int>, S.$Record<S.String, S.Int>, never, never>>;
|
|
2687
|
+
readonly static: S.decodeTo<S.$Record<S.brand<S.String, "MutantId">, S.Int>, S.$Record<S.String, S.Int>, never, never>;
|
|
2688
|
+
}>>;
|
|
2689
|
+
readonly globalTestInputs: S.$Array<S.String>;
|
|
2690
|
+
readonly timeOverheadMs: S.Finite;
|
|
2691
|
+
readonly flakyTestIds: S.$Array<S.String>;
|
|
2692
|
+
readonly flakyMutantIds: S.$Array<S.String>;
|
|
2693
|
+
readonly testClosureDigest: S.String;
|
|
2694
|
+
readonly runInputsDigest: S.String;
|
|
2695
|
+
}>;
|
|
2696
|
+
type DryRunCoverage = S.Schema.Type<typeof DryRunCoverageSchema>;
|
|
2697
|
+
//#endregion
|
|
2698
|
+
//#region src/test-coverage.schema.d.ts
|
|
2699
|
+
interface TestCoverage {
|
|
2700
|
+
readonly testsByMutantId: MutableHashMap.MutableHashMap<string, MutableHashSet.MutableHashSet<mod_d_exports$9.TestResult>>;
|
|
2701
|
+
readonly testsById: MutableHashMap.MutableHashMap<string, mod_d_exports$9.TestResult>;
|
|
2702
|
+
readonly staticCoverage: mod_d_exports$2$1.CoverageData | undefined;
|
|
2703
|
+
readonly hitsByMutantId: MutableHashMap.MutableHashMap<string, number>;
|
|
2704
|
+
readonly dryRunCoverage?: DryRunCoverage | undefined;
|
|
2705
|
+
}
|
|
2706
|
+
//#endregion
|
|
2707
|
+
//#region src/Sandbox.handle.d.ts
|
|
2708
|
+
declare const TypeId: unique symbol;
|
|
2709
|
+
type TypeId = typeof TypeId;
|
|
2710
|
+
declare const SandboxHandle: Handle.Definition<typeof TypeId, {
|
|
2711
|
+
readonly workingDirectory: string;
|
|
2712
|
+
}, {
|
|
2713
|
+
readonly fileMap: Map<string, string>;
|
|
2714
|
+
readonly basePath: string;
|
|
2715
|
+
readonly pathService: Path.Path;
|
|
2716
|
+
}, never>;
|
|
2717
|
+
type SandboxHandle = Handle.Of<typeof SandboxHandle>;
|
|
2718
|
+
//#endregion
|
|
2719
|
+
//#region src/decode-mutator-selection.workflow.d.ts
|
|
2720
|
+
declare const MutatorSelectionTypeId: unique symbol;
|
|
2721
|
+
type MutatorSelectionTypeId = typeof MutatorSelectionTypeId;
|
|
2722
|
+
declare const MutatorSelectionDecoded_base: S.Class<MutatorSelectionDecoded, S.TaggedStruct<"MutatorSelectionDecoded", {
|
|
2723
|
+
readonly excludedMutations: S.$Array<S.String>;
|
|
2724
|
+
readonly optInMutations: S.$Array<S.String>;
|
|
2725
|
+
}>, {}>;
|
|
2726
|
+
declare class MutatorSelectionDecoded extends MutatorSelectionDecoded_base {
|
|
2727
|
+
readonly [MutatorSelectionTypeId]: symbol;
|
|
2728
|
+
}
|
|
2729
|
+
//#endregion
|
|
2730
|
+
//#region src/plan-mutator-catalogs.workflow.d.ts
|
|
2731
|
+
declare const MergedCatalogSchema: S.Struct<{
|
|
2732
|
+
readonly provider: S.brand<S.String, "MutatorProvider">;
|
|
2733
|
+
readonly entries: S.$Array<S.Struct<{
|
|
2734
|
+
readonly id: S.brand<S.String, "MutatorCatalogId">;
|
|
2735
|
+
readonly name: S.brand<S.String, "MutatorName">;
|
|
2736
|
+
readonly tier: S.Literals<readonly ["default", "optIn"]>;
|
|
2737
|
+
readonly definition: S.NonEmptyString;
|
|
2738
|
+
readonly examples: S.$Array<S.Struct<{
|
|
2739
|
+
readonly before: S.String;
|
|
2740
|
+
readonly after: S.$Array<S.String>;
|
|
2741
|
+
}>>;
|
|
2742
|
+
}>>;
|
|
2743
|
+
}>;
|
|
2744
|
+
type MergedCatalog = typeof MergedCatalogSchema.Type;
|
|
2745
|
+
//#endregion
|
|
2746
|
+
//#region src/Plugins.schema.d.ts
|
|
2747
|
+
type PluginKind = mod_d_exports$6.PluginKind;
|
|
2748
|
+
interface WorkerPluginDescriptor<K extends mod_d_exports$6.WorkerPluginKind = mod_d_exports$6.WorkerPluginKind> {
|
|
2749
|
+
readonly kind: K;
|
|
2750
|
+
readonly name: string;
|
|
2751
|
+
readonly workerEntry: string;
|
|
2752
|
+
}
|
|
2753
|
+
interface EvaluatorPluginDescriptor {
|
|
2754
|
+
readonly kind: 'Evaluator';
|
|
2755
|
+
readonly name: string;
|
|
2756
|
+
}
|
|
2757
|
+
type AnyWorkerPluginDescriptor = { [K in mod_d_exports$6.WorkerPluginKind]: WorkerPluginDescriptor<K>; }[mod_d_exports$6.WorkerPluginKind];
|
|
2758
|
+
type AnyPluginDescriptor = AnyWorkerPluginDescriptor | EvaluatorPluginDescriptor;
|
|
2759
|
+
type PluginDescriptorOf<K extends PluginKind> = Extract<AnyPluginDescriptor, {
|
|
2760
|
+
readonly kind: K;
|
|
2761
|
+
}>;
|
|
2762
|
+
type PluginDescriptor<K extends PluginKind = PluginKind> = PluginDescriptorOf<K>;
|
|
2763
|
+
interface WorkerPluginSource<K extends mod_d_exports$6.WorkerPluginKind = mod_d_exports$6.WorkerPluginKind> {
|
|
2764
|
+
readonly kind: K;
|
|
2765
|
+
readonly name: string;
|
|
2766
|
+
readonly modulePath: string;
|
|
2767
|
+
readonly workerEntry: string;
|
|
2768
|
+
}
|
|
2769
|
+
interface EvaluatorPluginSource {
|
|
2770
|
+
readonly kind: 'Evaluator';
|
|
2771
|
+
readonly name: string;
|
|
2772
|
+
readonly modulePath: string;
|
|
2773
|
+
}
|
|
2774
|
+
type AnyWorkerPluginSource = { [K in mod_d_exports$6.WorkerPluginKind]: WorkerPluginSource<K>; }[mod_d_exports$6.WorkerPluginKind];
|
|
2775
|
+
type PluginSource = AnyWorkerPluginSource | EvaluatorPluginSource;
|
|
2776
|
+
interface LoadedMutatorProvider {
|
|
2777
|
+
readonly moduleName: string;
|
|
2778
|
+
readonly contribution: mod_d_exports$4.ContributionValue;
|
|
2779
|
+
}
|
|
2780
|
+
interface LoadedPlugins<A = unknown> {
|
|
2781
|
+
readonly schemaContributions: readonly Record<string, A>[];
|
|
2782
|
+
readonly pluginsByKind: HashMap.HashMap<PluginKind, readonly PluginDescriptor[]>;
|
|
2783
|
+
readonly pluginModulePaths: readonly string[];
|
|
2784
|
+
readonly pluginSources: readonly PluginSource[];
|
|
2785
|
+
readonly ignorers: readonly Ignorer$1[];
|
|
2786
|
+
readonly mutators: readonly LoadedMutatorProvider[];
|
|
2787
|
+
readonly frameworks: readonly {
|
|
2788
|
+
readonly moduleName: string;
|
|
2789
|
+
readonly framework: Framework;
|
|
2790
|
+
}[];
|
|
2791
|
+
}
|
|
2792
|
+
//#endregion
|
|
2793
|
+
//#region src/reporter-output.service.d.ts
|
|
2794
|
+
type OutputChannel = 'stdout' | 'stderr';
|
|
2795
|
+
interface ReporterOutputShape {
|
|
2796
|
+
readonly write: (channel: OutputChannel, chunks: readonly string[]) => Effect$1.Effect<void, PlatformError>;
|
|
2797
|
+
}
|
|
2798
|
+
declare const ReporterOutput_base: Context.ServiceClass<ReporterOutput, "@systemfsoftware/stryker-js/reporter-output.service/ReporterOutput", ReporterOutputShape>;
|
|
2799
|
+
declare class ReporterOutput extends ReporterOutput_base {
|
|
2800
|
+
static readonly layer: Layer.Layer<ReporterOutput, never, Stdio.Stdio>;
|
|
2801
|
+
}
|
|
2802
|
+
//#endregion
|
|
2803
|
+
//#region src/reporter.service.d.ts
|
|
2804
|
+
interface ReporterShape {
|
|
2805
|
+
readonly builtin: Readonly<Record<string, mod_d_exports$8.ReporterFactory>>;
|
|
2806
|
+
}
|
|
2807
|
+
declare const Reporter_base: Context.ServiceClass<Reporter, "@systemfsoftware/stryker-js/reporter.service/Reporter", ReporterShape>;
|
|
2808
|
+
declare class Reporter extends Reporter_base {
|
|
2809
|
+
static readonly layer: Layer.Layer<Reporter, never, ReporterOutput | FileSystem.FileSystem | Path.Path>;
|
|
2810
|
+
}
|
|
2811
|
+
//#endregion
|
|
2812
|
+
//#region src/run/explain-file-skip.workflow.d.ts
|
|
2813
|
+
declare const FrameworkClaimant: S.Struct<{
|
|
2814
|
+
readonly package: S.String;
|
|
2815
|
+
readonly extensions: S.$Array<S.String>;
|
|
2816
|
+
}>;
|
|
2817
|
+
type FrameworkClaimant = S.Schema.Type<typeof FrameworkClaimant>;
|
|
2818
|
+
//#endregion
|
|
2819
|
+
//#region src/run/prepare.cell.d.ts
|
|
2820
|
+
interface PrepareDone {
|
|
2821
|
+
readonly project: Project;
|
|
2822
|
+
readonly loadedPlugins: LoadedPlugins;
|
|
2823
|
+
readonly ignorers: readonly Ignorer$1[];
|
|
2824
|
+
readonly mutatorCatalogs: readonly MergedCatalog[];
|
|
2825
|
+
readonly mutatorSelection: MutatorSelectionDecoded;
|
|
2826
|
+
readonly formatRegistry: mod_d_exports$1.FormatRegistry;
|
|
2827
|
+
readonly options: mod_d_exports$5.StrykerOptions;
|
|
2828
|
+
readonly temporaryDirectoryPath: string;
|
|
2829
|
+
readonly reporterStage: ReporterStage;
|
|
2830
|
+
readonly frameworkClaimants: readonly FrameworkClaimant[];
|
|
2831
|
+
}
|
|
2832
|
+
interface PrepareExecutorArgs {
|
|
2833
|
+
cliOptions: mod_d_exports$5.PartialStrykerOptions;
|
|
2834
|
+
targetMutatePatterns: string[] | undefined;
|
|
2835
|
+
}
|
|
2836
|
+
//#endregion
|
|
2837
|
+
//#region src/run/instrument.cell.d.ts
|
|
2838
|
+
interface InstrumentDone extends PrepareDone {
|
|
2839
|
+
readonly mutants: readonly mod_d_exports$2$1.Mutant[];
|
|
2840
|
+
readonly sandbox: SandboxHandle;
|
|
2841
|
+
readonly concurrency: {
|
|
2842
|
+
readonly testRunners: number;
|
|
2843
|
+
readonly checkers: number;
|
|
2844
|
+
};
|
|
2845
|
+
}
|
|
2846
|
+
//#endregion
|
|
2847
|
+
//#region src/run/dry-run.cell.d.ts
|
|
2848
|
+
interface DryRunDone extends InstrumentDone {
|
|
2849
|
+
readonly dryRunResult: mod_d_exports$9.CompleteDryRunResult;
|
|
2850
|
+
readonly testCoverage: TestCoverage;
|
|
2851
|
+
readonly timeOverhead: EffectDuration.Duration;
|
|
2852
|
+
}
|
|
2853
|
+
//#endregion
|
|
2854
|
+
//#region src/run/mutation-test.cell.d.ts
|
|
2855
|
+
interface MutationTestDone {
|
|
2856
|
+
readonly results: readonly mod_d_exports$2$1.RunMutantResult[];
|
|
2857
|
+
readonly verdict: mod_d_exports$6.ExitClass | null;
|
|
2858
|
+
}
|
|
2859
|
+
//#endregion
|
|
2860
|
+
//#region src/mutation-reporting.service.d.ts
|
|
2861
|
+
interface MutationReportingInput {
|
|
2862
|
+
readonly results: readonly mod_d_exports$2$1.RunMutantResult[];
|
|
2863
|
+
readonly options: mod_d_exports$5.StrykerOptions;
|
|
2864
|
+
readonly project: Project;
|
|
2865
|
+
readonly testCoverage: TestCoverage;
|
|
2866
|
+
readonly runId: string;
|
|
2867
|
+
readonly resolvedMode: ResolvedMode;
|
|
2868
|
+
readonly basePath: string;
|
|
2869
|
+
readonly reporterStage: ReporterStage;
|
|
2870
|
+
readonly formatRegistry: mod_d_exports$1.FormatRegistry;
|
|
2871
|
+
readonly closureDigestsByMutantId?: Readonly<Record<string, string>>;
|
|
2872
|
+
readonly timeoutEvidenceByMutantId?: Readonly<Record<string, TimeoutEvidence>>;
|
|
2873
|
+
}
|
|
2874
|
+
interface MutationReportingService {
|
|
2875
|
+
readonly reportCheckFailure: (mutant: mod_d_exports$2$1.MutantTestCoverage, result: Exclude<mod_d_exports$3.CheckResult, mod_d_exports$3.PassedCheckResult>) => Effect$1.Effect<mod_d_exports$2$1.RunMutantResult>;
|
|
2876
|
+
readonly reportMutantRunResult: (mutant: mod_d_exports$2$1.MutantTestCoverage, result: mod_d_exports$9.MutantRunResult) => Effect$1.Effect<mod_d_exports$2$1.RunMutantResult>;
|
|
2877
|
+
readonly reportAll: (input: MutationReportingInput) => Effect$1.Effect<MutationTestDone, PlatformError>;
|
|
2878
|
+
readonly checkpoint: (input: MutationReportingInput, plannedMutants: readonly mod_d_exports$2$1.Mutant[]) => Effect$1.Effect<void, PlatformError>;
|
|
2879
|
+
}
|
|
2880
|
+
declare const MutationReporting_base: Context.ServiceClass<MutationReporting, "@systemfsoftware/stryker-js/mutation-reporting.service/MutationReporting", MutationReportingService>;
|
|
2881
|
+
declare class MutationReporting extends MutationReporting_base {
|
|
2882
|
+
static readonly layer: Layer.Layer<MutationReporting, never, FileSystem.FileSystem | Path.Path | RunEvents | ProjectFiles | PhaseClock>;
|
|
2883
|
+
}
|
|
2884
|
+
//#endregion
|
|
2885
|
+
//#region src/Worker.service.d.ts
|
|
2886
|
+
interface IdGeneratorShape {
|
|
2887
|
+
readonly next: Effect$1.Effect<number>;
|
|
2888
|
+
}
|
|
2889
|
+
declare const IdGenerator_base: Context.ServiceClass<IdGenerator, "@systemfsoftware/stryker-js/Worker.service/IdGenerator", IdGeneratorShape>;
|
|
2890
|
+
declare class IdGenerator extends IdGenerator_base {
|
|
2891
|
+
static readonly layer: Layer.Layer<IdGenerator, never, never>;
|
|
2892
|
+
}
|
|
2893
|
+
//#endregion
|
|
2894
|
+
//#region src/run/StageServices.service.d.ts
|
|
2895
|
+
type StageServices = ChildProcessSpawner.ChildProcessSpawner | FileSystem.FileSystem | GitDiff | IdGenerator | MutationReporting | Path.Path | PhaseClock | ProjectFiles | Reporter | RunEnvironment | RunEvents | Scope.Scope | Stdio.Stdio | WorkerLauncher;
|
|
2896
|
+
type EnginePorts = ChildProcessSpawner.ChildProcessSpawner | FileSystem.FileSystem | GitDiff | Path.Path | Stdio.Stdio | WorkerLauncher;
|
|
2897
|
+
type RunStageServices = ProjectFiles | Reporter | RunEnvironment | RunEvents | IdGenerator | MutationReporting | PhaseClock | Scope.Scope;
|
|
2898
|
+
type WiredRunLayer = Layer.Layer<RunStageServices | EnginePorts, never, never>;
|
|
2899
|
+
//#endregion
|
|
2900
|
+
//#region src/run/RunEnvironment.service.d.ts
|
|
2901
|
+
interface RunEnvironmentShape {
|
|
2902
|
+
readonly runId: string;
|
|
2903
|
+
readonly resolvedMode: ResolvedMode;
|
|
2904
|
+
readonly runStartedAt: number;
|
|
2905
|
+
readonly basePath: string;
|
|
2906
|
+
readonly builtinReporters: Readonly<Record<string, mod_d_exports$8.ReporterFactory>>;
|
|
2907
|
+
readonly allowConsoleColors: boolean;
|
|
2908
|
+
}
|
|
2909
|
+
declare const RunEnvironment_base: Context.ServiceClass<RunEnvironment, "@systemfsoftware/stryker-js/run/RunEnvironment.service/RunEnvironment", RunEnvironmentShape>;
|
|
2910
|
+
declare class RunEnvironment extends RunEnvironment_base {
|
|
2911
|
+
static readonly stage: {
|
|
2912
|
+
(env: RunEnvironmentShape, events?: Queue.Queue<mod_d_exports$1$1.RunEvent, Cause.Done>): Layer.Layer<RunStageServices, never, EnginePorts>;
|
|
2913
|
+
(events?: Queue.Queue<mod_d_exports$1$1.RunEvent, Cause.Done>): (env: RunEnvironmentShape) => Layer.Layer<RunStageServices, never, EnginePorts>;
|
|
2914
|
+
};
|
|
2915
|
+
static readonly forStream: {
|
|
2916
|
+
(mode: ResolvedMode, stream: RunEventStream, host: {
|
|
2917
|
+
readonly noColor?: string | undefined;
|
|
2918
|
+
readonly builtinReporters: Readonly<Record<string, mod_d_exports$8.ReporterFactory>>;
|
|
2919
|
+
}): Effect$1.Effect<RunEnvironmentShape, PlatformError, FileSystem.FileSystem>;
|
|
2920
|
+
(stream: RunEventStream, host: {
|
|
2921
|
+
readonly noColor?: string | undefined;
|
|
2922
|
+
readonly builtinReporters: Readonly<Record<string, mod_d_exports$8.ReporterFactory>>;
|
|
2923
|
+
}): (mode: ResolvedMode) => Effect$1.Effect<RunEnvironmentShape, PlatformError, FileSystem.FileSystem>;
|
|
2924
|
+
};
|
|
2925
|
+
}
|
|
2926
|
+
//#endregion
|
|
2927
|
+
export { makeRunEventStream as $, ReporterWorkerClient as A, ProjectFile as B, PluginSource as C, TestCoverage as D, SandboxHandle as E, WorkerLauncherShape as F, git_diff_service_d_exports as G, mod_d_exports$2 as H, WorkerSpawnParams as I, RunIdentity as J, git_diff_schema_d_exports as K, SpawnedSocketWorker as L, reporterWorkerFactory as M, spawnReporterWorker as N, REPORTER_EVENT_BATCH_BOUND as O, WorkerLauncher as P, RunEventStream as Q, make as R, PluginKind as S, WorkerPluginSource as T, Framework as U, IncrementalReportSchema as V, GitDiff as W, RunEventDrain as X, RunIdentityShape as Y, RunEventDrainLive as Z, EvaluatorPluginDescriptor as _, StageServices as a, StrykerError as at, PluginDescriptor as b, IdGeneratorShape as c, ConfigFileNotFoundError as ct, InstrumentDone as d, ChildProcessCrashedError as dt, ResolvedModeInput as et, PrepareDone as f, OutOfMemoryError as ft, AnyWorkerPluginSource as g, AnyWorkerPluginDescriptor as h, WorkerExit as ht, RunStageServices as i, mod_d_exports$1$1 as it, SpawnReporterWorkerParams as j, ReporterStage as k, MutationTestDone as l, ConfigFileUnreadableError as lt, AnyPluginDescriptor as m, WorkerBootTimeoutError as mt, RunEnvironmentShape as n, PhaseClock as nt, WiredRunLayer as o, ConfigError as ot, PrepareExecutorArgs as p, WorkerBootError as pt, RunEvents as q, EnginePorts as r, mod_d_exports as rt, IdGenerator as s, ConfigFileInvalidError as st, RunEnvironment as t, ResolvedMode as tt, DryRunDone as u, ConfigFileUnsupportedError as ut, EvaluatorPluginSource as v, WorkerPluginDescriptor as w, PluginDescriptorOf as x, LoadedPlugins as y, Project as z };
|