@laserware/stasis
    Preparing search index...

    Function isAsyncThunkAction

    • A higher-order function that returns a function that may be used to check whether an action was created by an async thunk action creator.

      Returns (action: any) => action is UnknownAsyncThunkAction

    • A higher-order function that returns a function that may be used to check whether an action belongs to one of the provided async thunk action creators.

      Type Parameters

      • AsyncThunks extends [AnyAsyncThunk, ...AnyAsyncThunk[]]

      Parameters

      • ...asyncThunks: AsyncThunks

        (optional) The async thunk action creators to match against.

      Returns (action: any) => action is ActionsFromAsyncThunk<AsyncThunks[number]>

    • Tests if action is a thunk action

      Parameters

      • action: any

      Returns action is UnknownAsyncThunkAction