express-crud-router
Version:
React Admin backend for Express. 1 line per resource! ORM agnostic.
8 lines (7 loc) • 306 B
TypeScript
import { RequestHandler, Request, Response } from 'express';
import { Get } from './getList';
export declare type Update<R> = (id: string, data: R, opts?: {
req: Request;
res: Response;
}) => Promise<any>;
export declare const update: <R>(doUpdate: Update<R>, doGetList: Get<R>) => RequestHandler;