@doeixd/machine 0.0.13 → 0.0.18
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/README.md +77 -25
- package/dist/cjs/development/core.js +1852 -0
- package/dist/cjs/development/core.js.map +7 -0
- package/dist/cjs/development/index.js +1377 -1372
- package/dist/cjs/development/index.js.map +4 -4
- package/dist/cjs/production/core.js +1 -0
- package/dist/cjs/production/index.js +5 -5
- package/dist/esm/development/core.js +1829 -0
- package/dist/esm/development/core.js.map +7 -0
- package/dist/esm/development/index.js +1377 -1372
- package/dist/esm/development/index.js.map +4 -4
- package/dist/esm/production/core.js +1 -0
- package/dist/esm/production/index.js +5 -5
- package/dist/types/core.d.ts +18 -0
- package/dist/types/core.d.ts.map +1 -0
- package/dist/types/extract.d.ts +15 -1
- package/dist/types/extract.d.ts.map +1 -1
- package/dist/types/functional-combinators.d.ts +3 -5
- package/dist/types/functional-combinators.d.ts.map +1 -1
- package/dist/types/index.d.ts +254 -18
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/middleware/composition.d.ts +460 -0
- package/dist/types/middleware/composition.d.ts.map +1 -0
- package/dist/types/middleware/core.d.ts +196 -0
- package/dist/types/middleware/core.d.ts.map +1 -0
- package/dist/types/middleware/history.d.ts +54 -0
- package/dist/types/middleware/history.d.ts.map +1 -0
- package/dist/types/middleware/index.d.ts +10 -0
- package/dist/types/middleware/index.d.ts.map +1 -0
- package/dist/types/middleware/snapshot.d.ts +63 -0
- package/dist/types/middleware/snapshot.d.ts.map +1 -0
- package/dist/types/middleware/time-travel.d.ts +81 -0
- package/dist/types/middleware/time-travel.d.ts.map +1 -0
- package/package.json +19 -6
- package/src/core.ts +167 -0
- package/src/entry-react.ts +9 -0
- package/src/entry-solid.ts +9 -0
- package/src/extract.ts +61 -61
- package/src/functional-combinators.ts +3 -3
- package/src/generators.ts +6 -6
- package/src/index.ts +389 -101
- package/src/middleware/composition.ts +944 -0
- package/src/middleware/core.ts +573 -0
- package/src/middleware/history.ts +104 -0
- package/src/middleware/index.ts +13 -0
- package/src/middleware/snapshot.ts +153 -0
- package/src/middleware/time-travel.ts +236 -0
- package/src/middleware.ts +735 -1614
- package/src/prototype_functional.ts +46 -0
- package/src/reproduce_issue.ts +26 -0
- package/dist/types/middleware.d.ts +0 -1048
- package/dist/types/middleware.d.ts.map +0 -1
- package/dist/types/runtime-extract.d.ts +0 -53
- package/dist/types/runtime-extract.d.ts.map +0 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -9,27 +9,52 @@
|
|
|
9
9
|
*/
|
|
10
10
|
export type MaybePromise<T> = T | Promise<T>;
|
|
11
11
|
/**
|
|
12
|
-
* The fundamental shape of
|
|
13
|
-
*
|
|
12
|
+
* The fundamental shape of a synchronous machine. This is a highly advanced
|
|
13
|
+
* generic type that performs two critical functions at compile time:
|
|
14
|
+
*
|
|
15
|
+
* 1. **Extraction:** It intelligently infers the pure transitions object from
|
|
16
|
+
* the flexible argument `A` (which can be a plain object, a factory
|
|
17
|
+
* function, or the augmented `this` from another transition).
|
|
18
|
+
*
|
|
19
|
+
* 2. **Filtering:** After extracting the transitions, it filters them, keeping
|
|
20
|
+
* only the functions that return a valid `Machine`.
|
|
21
|
+
*
|
|
22
|
+
* This makes the `Machine` type itself the single source of truth for what
|
|
23
|
+
* constitutes a valid, type-safe machine, enabling a remarkably clean and
|
|
24
|
+
* powerful API for `createMachine`.
|
|
25
|
+
*
|
|
26
|
+
* @template C The context object type.
|
|
27
|
+
* @template A The raw, flexible argument for transitions (object, factory, or `this`).
|
|
14
28
|
*/
|
|
15
|
-
export type Machine<C extends object> = {
|
|
16
|
-
/** The readonly state of the machine. */
|
|
29
|
+
export type Machine<C extends object, T extends object = {}> = {
|
|
17
30
|
readonly context: C;
|
|
18
|
-
} &
|
|
31
|
+
} & T;
|
|
19
32
|
/**
|
|
20
33
|
* The shape of an asynchronous machine, where transitions can return Promises.
|
|
21
34
|
* Async transitions receive an AbortSignal as the last parameter for cancellation support.
|
|
22
35
|
* @template C - The context object type.
|
|
23
36
|
*/
|
|
24
|
-
export type AsyncMachine<C extends object> = {
|
|
25
|
-
/** The readonly state of the machine. */
|
|
37
|
+
export type AsyncMachine<C extends object, T extends object = {}> = {
|
|
26
38
|
readonly context: C;
|
|
27
|
-
} &
|
|
39
|
+
} & T;
|
|
28
40
|
/**
|
|
29
41
|
* Utility type to extract the parameters of an async transition function,
|
|
30
42
|
* which includes TransitionOptions as the last parameter.
|
|
31
43
|
*/
|
|
32
|
-
export type AsyncTransitionArgs<M extends AsyncMachine<any>, K extends keyof M & string> = M[K] extends (...
|
|
44
|
+
export type AsyncTransitionArgs<M extends AsyncMachine<any, any>, K extends keyof M & string> = M[K] extends (...a: infer A) => any ? A extends [...infer Rest, TransitionOptions] ? Rest : A : never;
|
|
45
|
+
/**
|
|
46
|
+
* A helper type to define a distinct state in a state machine (a "typestate").
|
|
47
|
+
* Allows defining the context and transitions in a single generic type.
|
|
48
|
+
* @template C - The context specific to this state.
|
|
49
|
+
* @template T - The transitions available in this state.
|
|
50
|
+
*/
|
|
51
|
+
export type TypeState<C extends object, T extends object = {}> = Machine<C, T>;
|
|
52
|
+
/**
|
|
53
|
+
* A helper type to define a distinct async state in a state machine.
|
|
54
|
+
* @template C - The context specific to this state.
|
|
55
|
+
* @template T - The transitions available in this state.
|
|
56
|
+
*/
|
|
57
|
+
export type AsyncTypeState<C extends object, T extends object = {}> = AsyncMachine<C, T>;
|
|
33
58
|
/**
|
|
34
59
|
* Options passed to async transition functions, including cancellation support.
|
|
35
60
|
*/
|
|
@@ -88,6 +113,12 @@ export type DeepReadonly<T> = {
|
|
|
88
113
|
* type MyMachine = InferMachine<typeof factory>; // Extracts the return type
|
|
89
114
|
*/
|
|
90
115
|
export type InferMachine<F extends (...args: any[]) => any> = ReturnType<F>;
|
|
116
|
+
export type EventFromTransitions<T extends Record<string, (...args: any[]) => any>> = {
|
|
117
|
+
[K in keyof T & string]: {
|
|
118
|
+
type: K;
|
|
119
|
+
args: T[K] extends (...a: infer A) => any ? A : never;
|
|
120
|
+
};
|
|
121
|
+
}[keyof T & string];
|
|
91
122
|
/**
|
|
92
123
|
* A discriminated union type representing an event that can be dispatched to a machine.
|
|
93
124
|
* This is automatically generated from a machine's type signature, ensuring full type safety.
|
|
@@ -102,6 +133,140 @@ export type Event<M extends BaseMachine<any>> = {
|
|
|
102
133
|
args: A;
|
|
103
134
|
} : never;
|
|
104
135
|
}[keyof Omit<M, "context"> & string];
|
|
136
|
+
/**
|
|
137
|
+
* A helper type for use with TypeScript's `satisfies` operator to provide
|
|
138
|
+
* strong, immediate type-checking for standalone transition objects.
|
|
139
|
+
*
|
|
140
|
+
* This solves the "chicken-and-egg" problem where you need the final machine
|
|
141
|
+
* type to correctly type the transitions object, but you need the transitions
|
|
142
|
+
* object to create the machine. By forward-declaring the machine type and using
|
|
143
|
+
* `satisfies TransitionsFor<...>`, you get full IntelliSense and error-checking
|
|
144
|
+
* at the exact location of your transition definitions.
|
|
145
|
+
*
|
|
146
|
+
* @template C The context object type for the machine.
|
|
147
|
+
* @template T The literal type of the transitions object itself (`typeof myTransitions`).
|
|
148
|
+
*
|
|
149
|
+
* @example
|
|
150
|
+
* import { createMachine, Machine, TransitionsFor } from '@doeixd/machine';
|
|
151
|
+
*
|
|
152
|
+
* // 1. Define the context for your machine.
|
|
153
|
+
* type CounterContext = { count: number };
|
|
154
|
+
*
|
|
155
|
+
* // 2. Forward-declare the final machine type. This is the key step that
|
|
156
|
+
* // breaks the circular dependency for the type checker.
|
|
157
|
+
* type CounterMachine = Machine<CounterContext> & typeof counterTransitions;
|
|
158
|
+
*
|
|
159
|
+
* // 3. Define the transitions object, using `satisfies` to apply the helper type.
|
|
160
|
+
* // This provides immediate type-checking and full autocompletion for `this`.
|
|
161
|
+
* const counterTransitions = {
|
|
162
|
+
* increment() {
|
|
163
|
+
* // `this` is now fully typed!
|
|
164
|
+
* // IntelliSense knows `this.count` is a number and
|
|
165
|
+
* // `this.transitions.add` is a function.
|
|
166
|
+
* return createMachine({ count: this.count + 1 }, this.transitions);
|
|
167
|
+
* },
|
|
168
|
+
* add(n: number) {
|
|
169
|
+
* return createMachine({ count: this.count + n }, this.transitions);
|
|
170
|
+
* },
|
|
171
|
+
* // ❌ TypeScript will immediately throw a compile error on the next line
|
|
172
|
+
* // because the return type 'string' does not satisfy 'Machine<any>'.
|
|
173
|
+
* invalidTransition() {
|
|
174
|
+
* return "this is not a machine";
|
|
175
|
+
* }
|
|
176
|
+
* } satisfies TransitionsFor<CounterContext, typeof counterTransitions>;
|
|
177
|
+
*
|
|
178
|
+
* // 4. Create the machine instance. The `createMachine` call is now
|
|
179
|
+
* // guaranteed to be type-safe because `counterTransitions` has already
|
|
180
|
+
* // been validated.
|
|
181
|
+
* export function createCounter(initialCount = 0): CounterMachine {
|
|
182
|
+
* return createMachine({ count: initialCount }, counterTransitions);
|
|
183
|
+
* }
|
|
184
|
+
*/
|
|
185
|
+
export type TransitionsFor<C extends object, T extends Record<string, any>> = {
|
|
186
|
+
[K in keyof T]: (this: C & {
|
|
187
|
+
transitions: T;
|
|
188
|
+
}, ...args: Parameters<T[K] extends (...a: infer A) => any ? (...a: A) => any : never>) => Machine<any, any>;
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
* A helper type for use with the `satisfies` operator to provide strong
|
|
192
|
+
* type-checking for standalone asynchronous transition objects.
|
|
193
|
+
*/
|
|
194
|
+
export type AsyncTransitionsFor<C extends object, T extends Record<string, any>> = {
|
|
195
|
+
[K in keyof T]: (this: C & {
|
|
196
|
+
transitions: T;
|
|
197
|
+
}, ...args: Parameters<T[K] extends (...a: infer A) => any ? (...a: A) => any : never>) => MaybePromise<AsyncMachine<any, any>>;
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* A mapped type that iterates over a transitions object `T` and keeps only the
|
|
201
|
+
* keys whose functions return a valid `Machine`. This provides a "self-correcting"
|
|
202
|
+
* type that prevents the definition of invalid transitions at compile time.
|
|
203
|
+
*
|
|
204
|
+
* It acts as a filter at the type level. When used in the return type of a
|
|
205
|
+
* function like `createMachine`, it ensures that the resulting machine object
|
|
206
|
+
* will not have any properties corresponding to functions that were defined
|
|
207
|
+
* with an incorrect return type. This provides immediate, precise feedback to
|
|
208
|
+
* the developer, making it impossible to create a machine with an invalid
|
|
209
|
+
* transition shape.
|
|
210
|
+
*
|
|
211
|
+
* @template T The raw transitions object type provided by the user.
|
|
212
|
+
*
|
|
213
|
+
* @example
|
|
214
|
+
* import { createMachine, Machine } from '@doeixd/machine';
|
|
215
|
+
*
|
|
216
|
+
* const machine = createMachine({ value: 'A' }, {
|
|
217
|
+
* // This is a valid transition because it returns a `Machine`.
|
|
218
|
+
* // The key 'goToB' will be PRESERVED in the final type.
|
|
219
|
+
* goToB() {
|
|
220
|
+
* return createMachine({ value: 'B' }, this.transitions);
|
|
221
|
+
* },
|
|
222
|
+
*
|
|
223
|
+
* // This is an INVALID transition because it returns a string.
|
|
224
|
+
* // The key 'invalid' will be OMITTED from the final type.
|
|
225
|
+
* invalid() {
|
|
226
|
+
* return "This is not a Machine object";
|
|
227
|
+
* },
|
|
228
|
+
*
|
|
229
|
+
* // This is also invalid as it's not a function.
|
|
230
|
+
* // The key 'alsoInvalid' will be OMITTED from the final type.
|
|
231
|
+
* alsoInvalid: 123
|
|
232
|
+
* });
|
|
233
|
+
*
|
|
234
|
+
* // --- USAGE ---
|
|
235
|
+
*
|
|
236
|
+
* // ✅ This call is valid and works as expected.
|
|
237
|
+
* const nextState = machine.goToB();
|
|
238
|
+
*
|
|
239
|
+
* // ❌ This line will cause a COMPILE-TIME a ERROR because the `FilterValidTransitions`
|
|
240
|
+
* // type has removed the 'invalid' key from the `machine`'s type signature.
|
|
241
|
+
* //
|
|
242
|
+
* // Error: Property 'invalid' does not exist on type
|
|
243
|
+
* // 'Machine<{ value: string; }> & { goToB: () => Machine<...>; }'.
|
|
244
|
+
* //
|
|
245
|
+
* machine.invalid();
|
|
246
|
+
*/
|
|
247
|
+
export type FilterValidTransitions<T> = {
|
|
248
|
+
[K in keyof T as T[K] extends (...args: any[]) => Machine<any> ? K : never]: T[K];
|
|
249
|
+
};
|
|
250
|
+
/**
|
|
251
|
+
* A conditional type that intelligently extracts the pure transitions object `T`
|
|
252
|
+
* from the flexible second argument of `createMachine`.
|
|
253
|
+
*
|
|
254
|
+
* It handles three cases:
|
|
255
|
+
* 1. If the argument is the augmented `this` context (`C & { transitions: T }`), it extracts `T`.
|
|
256
|
+
* 2. If the argument is a factory function `((ctx: C) => T)`, it infers and returns `T`.
|
|
257
|
+
* 3. If the argument is already the pure transitions object `T`, it returns it as is.
|
|
258
|
+
*/
|
|
259
|
+
export type ExtractTransitions<Arg, C extends object> = Arg extends (...args: any[]) => infer R ? R : Arg extends C & {
|
|
260
|
+
transitions: infer T;
|
|
261
|
+
} ? T : Arg;
|
|
262
|
+
/** Keep only keys whose value is a function that returns a Machine. */
|
|
263
|
+
export type ValidTransitions<T> = {
|
|
264
|
+
[K in keyof T as T[K] extends (...a: any[]) => Machine<any, any> ? K : never]: T[K] extends (...a: infer A) => Machine<infer C2, infer T2> ? (...a: A) => Machine<C2, T2> : never;
|
|
265
|
+
};
|
|
266
|
+
/** Same for async transitions (functions returning MaybePromise<AsyncMachine>). */
|
|
267
|
+
export type ValidAsyncTransitions<T> = {
|
|
268
|
+
[K in keyof T as T[K] extends (...a: any[]) => MaybePromise<AsyncMachine<any, any>> ? K : never]: T[K] extends (...a: infer A) => MaybePromise<AsyncMachine<infer C2, infer T2>> ? (...a: A) => MaybePromise<AsyncMachine<C2, T2>> : never;
|
|
269
|
+
};
|
|
105
270
|
/**
|
|
106
271
|
* Creates a synchronous state machine from a context and transition functions.
|
|
107
272
|
* This is the core factory for the functional approach.
|
|
@@ -111,9 +276,84 @@ export type Event<M extends BaseMachine<any>> = {
|
|
|
111
276
|
* @param fns - An object containing transition function definitions.
|
|
112
277
|
* @returns A new machine instance.
|
|
113
278
|
*/
|
|
114
|
-
|
|
279
|
+
/**
|
|
280
|
+
* Helper to transform transition functions to be bound (no 'this' requirement).
|
|
281
|
+
*/
|
|
282
|
+
export type BindTransitions<T> = {
|
|
283
|
+
[K in keyof T]: T[K] extends (this: any, ...args: infer A) => infer R ? (...args: A) => R : T[K];
|
|
284
|
+
};
|
|
285
|
+
/**
|
|
286
|
+
* Creates a synchronous state machine from a context and a factory function.
|
|
287
|
+
* This "Functional Builder" pattern allows for type-safe transitions without
|
|
288
|
+
* manually passing `this` or `transitions`.
|
|
289
|
+
*
|
|
290
|
+
* @template C - The context object type.
|
|
291
|
+
* @template T - The transitions object type.
|
|
292
|
+
* @param context - The initial state context.
|
|
293
|
+
* @param factory - A function that receives a `transition` helper and returns the transitions object.
|
|
294
|
+
* @returns A new machine instance.
|
|
295
|
+
*/
|
|
296
|
+
export declare function createMachine<C extends object, T extends Record<string, (this: C, ...args: any[]) => any>>(context: C, factory: (transition: (newContext: C) => Machine<C, any>) => T): Machine<C, BindTransitions<T>>;
|
|
297
|
+
/**
|
|
298
|
+
* Creates a synchronous state machine from a context and transition functions.
|
|
299
|
+
* This is the core factory for the functional approach.
|
|
300
|
+
*
|
|
301
|
+
* @template C - The context object type.
|
|
302
|
+
* @param context - The initial state context.
|
|
303
|
+
* @param fns - An object containing transition function definitions.
|
|
304
|
+
* @returns A new machine instance.
|
|
305
|
+
*/
|
|
306
|
+
export declare function createMachine<C extends object, T extends Record<string, (this: {
|
|
307
|
+
context: C;
|
|
308
|
+
} & T, ...args: any[]) => any> & {
|
|
309
|
+
context?: any;
|
|
310
|
+
}>(context: C, fns: T): {
|
|
115
311
|
context: C;
|
|
116
312
|
} & T;
|
|
313
|
+
/**
|
|
314
|
+
* Creates a synchronous state machine by copying context and transitions from an existing machine.
|
|
315
|
+
* This is useful for creating a new machine with updated context but the same transitions.
|
|
316
|
+
*
|
|
317
|
+
* @template C - The context object type.
|
|
318
|
+
* @template M - The machine type to copy transitions from.
|
|
319
|
+
* @param context - The new context.
|
|
320
|
+
* @param machine - The machine to copy transitions from.
|
|
321
|
+
* @returns A new machine instance with the given context and copied transitions.
|
|
322
|
+
*/
|
|
323
|
+
export declare function createMachine<C extends object, M extends BaseMachine<C>>(context: C, machine: M): Machine<C, Transitions<M>>;
|
|
324
|
+
/**
|
|
325
|
+
* Creates a synchronous state machine from a context and transition functions that expect `this` to be the context object.
|
|
326
|
+
* This is used internally by utilities that need to bind transitions to context objects.
|
|
327
|
+
*
|
|
328
|
+
* @template C - The context object type.
|
|
329
|
+
* @param context - The initial state context.
|
|
330
|
+
* @param fns - An object containing transition function definitions that expect `this` to be the context.
|
|
331
|
+
* @returns A new machine instance.
|
|
332
|
+
*/
|
|
333
|
+
export declare function createMachine<C extends object, T extends Record<string, (this: C, ...args: any[]) => any>>(context: C, fns: T): Machine<C, T>;
|
|
334
|
+
/**
|
|
335
|
+
* Creates an asynchronous state machine from a context and a factory function.
|
|
336
|
+
* This "Functional Builder" pattern allows for type-safe transitions without
|
|
337
|
+
* manually passing `this` or `transitions`.
|
|
338
|
+
*
|
|
339
|
+
* @template C - The context object type.
|
|
340
|
+
* @template T - The transitions object type.
|
|
341
|
+
* @param context - The initial state context.
|
|
342
|
+
* @param factory - A function that receives a `transition` helper and returns the transitions object.
|
|
343
|
+
* @returns A new async machine instance.
|
|
344
|
+
*/
|
|
345
|
+
export declare function createAsyncMachine<C extends object, T extends Record<string, (this: C, ...args: any[]) => any>>(context: C, factory: (transition: (newContext: C) => AsyncMachine<C, T>) => T): AsyncMachine<C, BindTransitions<T>>;
|
|
346
|
+
/**
|
|
347
|
+
* Creates an asynchronous state machine by copying context and transitions from an existing machine.
|
|
348
|
+
* This is useful for creating a new machine with updated context but the same transitions.
|
|
349
|
+
*
|
|
350
|
+
* @template C - The context object type.
|
|
351
|
+
* @template M - The machine type to copy transitions from.
|
|
352
|
+
* @param context - The new context.
|
|
353
|
+
* @param machine - The machine to copy transitions from.
|
|
354
|
+
* @returns A new async machine instance with the given context and copied transitions.
|
|
355
|
+
*/
|
|
356
|
+
export declare function createAsyncMachine<C extends object, M extends BaseMachine<C>>(context: C, machine: M): AsyncMachine<C, Transitions<M>>;
|
|
117
357
|
/**
|
|
118
358
|
* Creates an asynchronous state machine from a context and async transition functions.
|
|
119
359
|
*
|
|
@@ -122,9 +362,7 @@ export declare function createMachine<C extends object, T extends Record<string,
|
|
|
122
362
|
* @param fns - An object containing async transition function definitions.
|
|
123
363
|
* @returns A new async machine instance.
|
|
124
364
|
*/
|
|
125
|
-
export declare function createAsyncMachine<C extends object, T extends Record<string, (this: C, ...args: any[]) => any>>(context: C, fns: T):
|
|
126
|
-
context: C;
|
|
127
|
-
} & T;
|
|
365
|
+
export declare function createAsyncMachine<C extends object, T extends Record<string, (this: C, ...args: any[]) => any>>(context: C, fns: T): AsyncMachine<C, T>;
|
|
128
366
|
/**
|
|
129
367
|
* Creates a machine factory - a higher-order function that simplifies machine creation.
|
|
130
368
|
* Instead of writing transition logic that creates new machines, you just write
|
|
@@ -142,7 +380,7 @@ export declare function createAsyncMachine<C extends object, T extends Record<st
|
|
|
142
380
|
* const counter = counterFactory({ count: 0 });
|
|
143
381
|
* const next = counter.increment(); // Returns new machine with count: 1
|
|
144
382
|
*/
|
|
145
|
-
export declare function createMachineFactory<C extends object>(): <T extends Record<string, (ctx: C, ...args: any[]) => C>>(transformers: T) => (initialContext: C) => Machine<C> & { [K in keyof T]: (this: C
|
|
383
|
+
export declare function createMachineFactory<C extends object>(): <T extends Record<string, (ctx: C, ...args: any[]) => C>>(transformers: T) => (initialContext: C) => Machine<C> & { [K in keyof T]: (this: Machine<C>, ...args: T[K] extends (ctx: C, ...args: infer A) => C ? A : never) => MaybePromise<Machine<C>>; };
|
|
146
384
|
/**
|
|
147
385
|
* Creates a new machine instance with an updated context, preserving all original transitions.
|
|
148
386
|
* This is the primary, type-safe utility for applying state changes.
|
|
@@ -396,13 +634,11 @@ export type MachineLike<C extends object> = Machine<C> | Promise<Machine<C>>;
|
|
|
396
634
|
export type MachineResult<C extends object> = Machine<C> | [Machine<C>, () => void | Promise<void>];
|
|
397
635
|
export { run, step, yieldMachine, runSequence, createFlow, runWithDebug, runAsync, stepAsync } from './generators';
|
|
398
636
|
export { transitionTo, describe, guarded, guard, guardAsync, whenGuard, whenGuardAsync, invoke, action, metadata, META_KEY, type TransitionMeta, type GuardMeta, type InvokeMeta, type ActionMeta, type ClassConstructor, type WithMeta, type GuardOptions, type GuardFallback, type GuardedTransition } from './primitives';
|
|
399
|
-
export {
|
|
400
|
-
export { extractFunctionMetadata, extractStateNode, generateStatechart, extractFromInstance } from './runtime-extract';
|
|
401
|
-
export { RUNTIME_META, type RuntimeTransitionMeta } from './primitives';
|
|
637
|
+
export type { MachineConfig, ExtractionConfig } from './extract';
|
|
402
638
|
export * from './multi';
|
|
403
639
|
export * from './higher-order';
|
|
404
640
|
export * from './extract';
|
|
405
|
-
export
|
|
641
|
+
export * from './middleware/index';
|
|
406
642
|
export { isState, createEvent, createTransition, mergeContext, pipeTransitions, logState, call, bindTransitions, BoundMachine } from './utils';
|
|
407
643
|
export { createTransitionFactory, createTransitionExtender, createFunctionalMachine, state } from './functional-combinators';
|
|
408
644
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH;;;GAGG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;AAE7C;;;GAGG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,MAAM,IAAI;IACtC,yCAAyC;IACzC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;CACrB,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;AAErD;;;;GAIG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,SA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