Type Alias ResourceWriteDeclaration
type ResourceWriteDeclaration = {
apply: ResourceApply;
dataset: string;
key: string;
method: ResourceMethod;
origin?: string;
updates: readonly string[];
}
apply: ResourceApply;
dataset: string;
key: string;
method: ResourceMethod;
origin?: string;
updates: readonly string[];
}
Properties
apply
dataset
dataset: string
the dataset the write changes; the server reports the changed rows of each public dataset
key
key: string
the route param whose value is the row's key
method
Optionalorigin
origin?: string
the origin the write goes to when it is not the page's own; absent means same-origin only
updates
updates: readonly string[]
the GET families the write changes, as route patterns
what
defineWrite(pattern, ...)takes