@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
10 lines (9 loc) • 411 B
TypeScript
import * as Promise from 'bluebird';
export declare const liftP: <T, U>(fn: (v: T) => U | Promise<U>) => (a: T | T[]) => Promise<U | U[]>;
export interface MappingFunction {
<T, U>(a: T[], fn: (v: T) => U | Promise<U>): Promise<Array<U | Error>>;
}
export declare const settleMapSeries: MappingFunction;
export declare const getMappingFn: (headers?: {
prefer: string;
} | undefined) => MappingFunction;