@arkade-os/sdk Documentation - v0.5.0-rc.11
    Preparing search index...

    Type Alias ResponseEnvelope

    type ResponseEnvelope = {
        broadcast?: boolean;
        error?: Error;
        errorName?: string;
        id?: string;
        tag: string;
    }
    Index

    Properties

    broadcast?: boolean
    error?: Error
    errorName?: string

    error.name, carried beside the error as an ordinary string. The structured-clone algorithm serializes an Error's name only from the built-in whitelist (Error, TypeError, RangeError, …) — a custom name like ProviderUnavailableError reaches the page as "Error". A plain property survives verbatim, so the page restores it before rejecting. Absent from workers built before it existed; the page then sees the clone-normalized name, exactly as it always did.

    id?: string
    tag: string