@svta/common-media-library
    Preparing search index...

    Type Alias CommonMediaResponse<R>Beta

    Common response API.

    type CommonMediaResponse<R extends CommonMediaRequest = CommonMediaRequest> = {
        data?: ResponseTypeMap<R["responseType"]>;
        headers?: Record<string, string>;
        redirected?: boolean;
        request: R;
        resourceTiming?: ResourceTiming;
        status?: number;
        statusText?: string;
        type?: string;
        url?: string;
    }

    Type Parameters

    Index

    Properties

    data?: ResponseTypeMap<R["responseType"]>

    The response data.

    headers?: Record<string, string>

    The response headers.

    redirected?: boolean

    Indicates whether or not the request was redirected.

    request: R

    The origin request.

    resourceTiming?: ResourceTiming

    The network timing of the request/response.

    status?: number

    The HTTP status code of the response.

    statusText?: string

    The status message corresponding to the HTTP status code.

    type?: string

    The type of the response.

    url?: string

    The final URL obtained after any redirects.