Sanity Library Reference Docs
    Preparing search index...

    What one deployment's definitions require of a server-side runtime.

    interface RuntimeNeeds {
        drain: { effectNames: string[]; needed: boolean };
        heartbeat: { needed: boolean; timeSites: TimeConditionSite[] };
        startWatch: { definitions: string[]; needed: boolean };
        subjects: { acceptsAnyType: boolean; types: string[] };
        tag: string;
    }
    Index

    Properties

    drain: { effectNames: string[]; needed: boolean }

    Type declaration

    • effectNames: string[]

      Declared effect names, sorted.

    • needed: boolean
    heartbeat: { needed: boolean; timeSites: TimeConditionSite[] }
    startWatch: { definitions: string[]; needed: boolean }

    Type declaration

    • definitions: string[]

      Every autonomous definition, name ascending, including any no write can start. Hosting is not considered: which of these a watcher is emitted for is DeploymentPlan.emission's answer, not this one.

    • needed: boolean

      True when startableFromAWrite holds for any definition.

    subjects: { acceptsAnyType: boolean; types: string[] }

    Type declaration

    • acceptsAnyType: boolean
    • types: string[]

      Subject types across the deployment, sorted.

    tag: string