UNPKG

@fjell/lib

Version:

Server-side Library for Fjell

5 lines (4 loc) 555 B
import { ComKey, Item, PriKey } from "@fjell/core"; import { Operations } from "../Operations"; import { Registry } from "../Registry"; export declare const wrapUpsertOperation: <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>(ops: Operations<V, S, L1, L2, L3, L4, L5>, registry: Registry) => (key: PriKey<S> | ComKey<S, L1, L2, L3, L4, L5>, itemProperties: Partial<Item<S, L1, L2, L3, L4, L5>>) => Promise<V>;