Interface default<T>

Description

This interface provides a structure for response data transfer object.

interface default<T> {
    data?: T;
    message: string | string[];
    success: boolean;
}

Type Parameters

  • T

Properties

Properties

data?: T

The data of the response.

message: string | string[]

The message of the response.

success: boolean

The success status of the response.