@laserware/stasis
    Preparing search index...

    Function isFulfilled

    • 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, and that the action is fulfilled.

      Returns (
          action: any,
      ) => action is PayloadAction<
          unknown,
          string,
          { arg: unknown; requestId: string; requestStatus: "fulfilled" },
          never,
      >

    • 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, and that the action is fulfilled.

      Type Parameters

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

      Parameters

      • ...asyncThunks: AsyncThunks

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

      Returns (action: any) => action is ActionFromMatcher<AsyncThunks[number]["fulfilled"]>

    • Tests if action is a fulfilled thunk action

      Parameters

      • action: any

      Returns action is PayloadAction<
          unknown,
          string,
          { arg: unknown; requestId: string; requestStatus: "fulfilled" },
          never,
      >