Logos DX
    Preparing search index...

    Type Alias ResponseLike

    Structural shape of a FetchEngine response — checked without importing @logosdx/fetch, an optional peer dependency useAsync shouldn't require since it wraps arbitrary async functions, not just FetchEngine calls.

    type ResponseLike = {
        data: unknown;
        ok: boolean;
        request: unknown;
        status: number;
    }
    Index

    Properties

    Properties

    data: unknown
    ok: boolean
    request: unknown

    Discriminator distinguishing response-like objects from arbitrary { ok, status, data } domain shapes.

    status: number