Represents the result of an asynchronous operation.

interface IResult<Data extends any = any, Payload extends any = object> {
    error: boolean;
    execute: IExecute<Data, Payload>;
    loading: boolean;
}

Type Parameters

  • Data extends any = any

    The type of the data returned by the operation.

  • Payload extends any = object

    The type of the payload used by the operation.

Properties

Properties

error: boolean
execute: IExecute<Data, Payload>
loading: boolean