@fjell/lib
Version:
Server-side Library for Fjell
13 lines (12 loc) • 849 B
TypeScript
import { ComKey, Item, LocKeyArray, PriKey } from "@fjell/core";
import { Coordinate } from "@fjell/registry";
import { Options } from "../Options";
import { Operations } from "../Operations";
import { Registry } from "../Registry";
export declare const wrapCreateOperation: <V extends Item<S, L1, L2, L3, L4, L5>, S extends string, L1 extends string = never, L2 extends string = never, L3 extends string = never, L4 extends string = never, L5 extends string = never>(toWrap: Operations<V, S, L1, L2, L3, L4, L5>, options: Options<V, S, L1, L2, L3, L4, L5>, coordinate: Coordinate<S, L1, L2, L3, L4, L5>, registry: Registry) => (item: Partial<Item<S, L1, L2, L3, L4, L5>>, options?: {
key: PriKey<S> | ComKey<S, L1, L2, L3, L4, L5>;
locations?: never;
} | {
key?: never;
locations: LocKeyArray<L1, L2, L3, L4, L5>;
}) => Promise<V>;