@fjell/lib
Version:
Server-side Library for Fjell
7 lines (6 loc) • 801 B
TypeScript
import { Item, LocKeyArray } from "@fjell/core";
import { Coordinate } from "@fjell/registry";
import { Options } from "../Options";
import { Operations } from "../Operations";
import { Registry } from "../Registry";
export declare const wrapFindOneOperation: <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) => (finder: string, finderParams: Record<string, string | number | boolean | Date | Array<string | number | boolean | Date>>, locations?: LocKeyArray<L1, L2, L3, L4, L5> | []) => Promise<V>;