| 39 | } |
| 40 | |
| 41 | export interface UseMachineOptions< |
| 42 | TContext, |
| 43 | TEvent extends EventObject, |
| 44 | > { |
| 45 | /** |
| 46 | * If provided, will be merged with machine's `context`. |
| 47 | */ |
| 48 | context?: Partial<TContext> |
| 49 | /** |
| 50 | * The state to rehydrate the machine to. The machine will |
| 51 | * start at this state instead of its `initialState`. |
| 52 | */ |
| 53 | state?: StateConfig<TContext, TEvent> |
| 54 | } |
| 55 | |
| 56 | export const useConfig = <TContext, TEvent extends EventObject>( |
| 57 | service: Interpreter<TContext, any, TEvent, any>, |
nothing calls this directly
no outgoing calls
no test coverage detected