Type Aliases
AsyncResult
AsyncResult<T>: { error: any; result: T }
Type Parameters
Awaitable
Awaitable<T>: { on: any }
Type Parameters
Type declaration
on:function
- on(listener: ((value: T) => void)): VoidFunction
Parameters
listener: ((value: T) => void)
Returns VoidFunction
AwaitableMap
Awaitable
Map
: Record<string, Saga<any[], any> | Awaitable<any> | Promise<any>>Cancellable
Cancellable: { cancel: any; cancelled: any }
Type declaration
cancel:function
cancelled:function
ContinuousTask
Continuous
Task
: Task & { once
: any; times
: any }CreateSignal
Type declaration
Type Parameters
Type Parameters
Parameters
CustomSignal
Custom
Signal
<T>: Awaitable<T> & { end
: any; pause
: any; payload
: any; start
: any; status
: any }Type Parameters
Emittable
Emittable
<T>: Awaitable<T> & { clear
: any; emit
: any }Type Parameters
Listenable
Type Parameters
Saga
Saga
<A, R>: ((context
: SagaContext,
...args
: A) => R | Promise<R>)Type Parameters
A extends any[] = any[]
R = any
Type declaration
Parameters
Returns R | Promise<R>
SagaContext
Saga
Context
: Cancellable & { fork
: ForkFn; abortController
: any; all
: any; allSettled
: any; call
: any; callback
: any; debounce
: any; delay
: any; droppable
: any; emit
: any; infinite
: any; listenable
: any; on
: any; onCancel
: any; onDispose
: any; onError
: any; race
: any; restartable
: any; sequential
: any; set
: any; spawn
: any; throttle
: any; when
: any }SignalEmitter
SignalEmitter<T>: ((emit: ((payload: T) => void), end: VoidFunction) => VoidFunction | void)
Type Parameters
Type declaration
- (emit: ((payload: T) => void), end: VoidFunction): VoidFunction | void
Parameters
emit: ((payload: T) => void)
end: VoidFunction
Returns VoidFunction | void
SignalStatus
SignalStatus: "idle" | "active" | "pausing"
TaskStatus
TaskStatus: "idle" | "running" | "error" | "success" | "cancelled"
WaitResult
Type Parameters
Saga context