UNPKG

@fjell/lib

Version:

Server-side Library for Fjell

10 lines (9 loc) 985 B
import { Item } from "@fjell/core"; import { Operations } from "./Operations"; import { Options } from "./Options"; import { InstanceFactory as BaseInstanceFactory } from "@fjell/registry"; export type LibraryFactory<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> = (operations: Operations<V, S, L1, L2, L3, L4, L5>, options: Options<V, S, L1, L2, L3, L4, L5>) => BaseInstanceFactory<S, L1, L2, L3, L4, L5>; /** * Factory function for creating lib libraries */ export declare const createLibraryFactory: <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>(operations: Operations<V, S, L1, L2, L3, L4, L5>, options: Options<V, S, L1, L2, L3, L4, L5>) => BaseInstanceFactory<S, L1, L2, L3, L4, L5>;