@laserware/stasis
    Preparing search index...

    Function isRejected

    • 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 rejected.

      Returns (
          action: any,
      ) => action is PayloadAction<
          unknown,
          string,
          {
              aborted: boolean;
              arg: unknown;
              condition: boolean;
              requestId: string;
              requestStatus: "rejected";
          } & ({ rejectedWithValue: true } | { rejectedWithValue: false } & {}),
          SerializedError,
      >

    • 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 rejected.

      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]["rejected"]>

    • Tests if action is a rejected thunk action

      Parameters

      • action: any

      Returns action is PayloadAction<
          unknown,
          string,
          {
              aborted: boolean;
              arg: unknown;
              condition: boolean;
              requestId: string;
              requestStatus: "rejected";
          } & ({ rejectedWithValue: true } | { rejectedWithValue: false } & {}),
          SerializedError,
      >