9 lines
434 B
TypeScript
9 lines
434 B
TypeScript
import { APIPathsCrudParams, APIPathsParamsAllowedTable } from "../../types";
|
|
export default function checks<T extends {
|
|
[k: string]: any;
|
|
} = {
|
|
[k: string]: any;
|
|
}>({ table, allowedTables, query, body, method, getMiddleware, postMiddleware, putMiddleware, deleteMiddleware, crudMiddleware, }: APIPathsCrudParams<T>): Promise<Pick<APIPathsCrudParams<T>, "query" | "body"> & {
|
|
allowedTable: APIPathsParamsAllowedTable;
|
|
}>;
|