Documentation
    Preparing search index...

    Type Alias StateReducerInput<Actions>

    StateReducerInput: AccumulateStateReducerInput<
        Actions,
        U.ListOf<keyof Actions>,
        { action: StateReducerInit; param: void },
    >

    Represents the Readable (input) types of StateReducer actions.

    Type Parameters

    • Actions extends Record<string, unknown>
    type T = StateReducerInput<{ foo: string, bar: number, nothing: void }>
    // | { action: '__INIT__', param: void }
    // | { action: 'foo', param: string }
    // | { action: 'bar', param: number }
    // | { action: 'nothing', param: void }