Function setUsername

  • Calling this redux#ActionCreator with an argument will return a PayloadAction of type T with a payload of P. Calling it without an argument will return a PayloadAction with a payload of undefined.

    Parameters

    • Optional payload: string

    Returns {
        payload: undefined | string;
        type: "auth/setUsername";
    }

    • payload: undefined | string
    • type: "auth/setUsername"

Properties

Properties

match: ((action) => action is {
    payload: undefined | string;
    type: "auth/setUsername";
})

Type declaration

    • (action): action is {
          payload: undefined | string;
          type: "auth/setUsername";
      }
    • Parameters

      • action: Action<unknown>

      Returns action is {
          payload: undefined | string;
          type: "auth/setUsername";
      }

type: "auth/setUsername"