Interface ApiSuccessResponse<T>

API 成功响应

interface ApiSuccessResponse<T> {
    data: T & {
        success: true;
    };
    headers: Headers;
    ok: boolean;
    redirected: boolean;
    status: number;
    statusText: string;
    type: ResponseType;
    url: string;
}

Type Parameters

  • T = any

    响应数据

Hierarchy

  • ResponseMeta
    • ApiSuccessResponse

Properties

data: T & {
    success: true;
}

Type declaration

  • success: true

    是否请求成功

headers: Headers
ok: boolean
redirected: boolean
status: number
statusText: string
type: ResponseType
url: string