Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Type Alias DecorateOptions

    per-call overrides for Spool.decorate

    type DecorateOptions = {
        assembled?: string;
        clear?: readonly string[];
        hardReset?: boolean;
        judged?: boolean;
        vector?: number;
    }
    Index
    assembled?: string

    the shell text of this route's assembly artifact, as the body carries it before the client tag goes in. Spool-Artifact then names its hash, and the worker keeps the page it already received in place of asking /.spool/artifact. Ignored unless the route is a public assembly route and the body is tagged HTML.

    clear?: readonly string[]

    Spool-Clear tokens to send, such as ['*'] on logout

    hardReset?: boolean

    also send Clear-Site-Data: "storage", the browser's own wipe of everything the origin holds

    judged?: boolean

    set when the caller has judged the response, so decorate skips the public-route gate

    vector?: number

    the cursor read before the response was built; read now when omitted