AniLink - v3.0.0
    Preparing search index...

    Interface UnwrapOptions

    Options controlling how unwrapGraphQLResponse treats an envelope that carries both a usable data object and a non-empty errors array.

    interface UnwrapOptions {
        allowPartialData?: boolean;
        onPartialData?: (error: AniLinkGraphQLError) => void;
    }
    Index
    allowPartialData?: boolean

    When true, a partial-success envelope (a data object with at least one resolved root field, plus errors) resolves with the data instead of throwing: the resolved fields are returned and the error entries are surfaced through onPartialData so the failures stay observable. Envelopes with errors and no usable data, data: null, a non-object, or an object where every root field failed (including one whose only entries resolved to null, the GraphQL shape for a failed nullable root field), still throw regardless of this flag.

    onPartialData?: (error: AniLinkGraphQLError) => void

    Observer for the error entries of a partial-success envelope resolved by allowPartialData. Receives the normalized AniLinkGraphQLError the strict mode would have thrown, so consumers observe the same error shape on both paths. The request pipeline routes this through its failure reporter so the onError hook sees a fully populated context. A throwing observer is isolated: the resolved data still wins.