UNPKG

@resin/pinejs

Version:

Pine.js is a sophisticated rules-driven API engine that enables you to define rules in a structured subset of English. Those rules are used in order for Pine.js to generate a database schema and the associated [OData](http://www.odata.org/) API. This make

8 lines (7 loc) 394 B
import type { Resolvable } from './common-types'; export declare type MappingFunction = <T, U>(a: T[], fn: (v: T) => Resolvable<U>) => Promise<Array<U | Error>>; export declare const settleMapSeries: MappingFunction; export declare const getMappingFn: (headers?: { [key: string]: string | string[] | undefined; prefer?: string | string[] | undefined; } | undefined) => MappingFunction;