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

    Type Alias ResourceWriteDeclaration

    what defineWrite(pattern, ...) takes

    type ResourceWriteDeclaration = {
        apply: ResourceApply;
        dataset: string;
        key: string;
        method: ResourceMethod;
        origin?: string;
        updates: readonly string[];
    }
    Index
    dataset: string

    the dataset the write changes; the server reports the changed rows of each public dataset

    key: string

    the route param whose value is the row's key

    origin?: string

    the origin the write goes to when it is not the page's own; absent means same-origin only

    updates: readonly string[]

    the GET families the write changes, as route patterns