datasquirel/dist/client/crud-fetch/index.d.ts
2025-12-22 07:18:57 +01:00

11 lines
433 B
TypeScript

import { APIResponseObject, ClientCrudFetchParams, PostInsertReturn } from "../../package-shared/types";
export default function clientCrudFetch<T extends {
[k: string]: any;
} = {
[k: string]: any;
}, P = string, R extends {
[k: string]: any;
} = {
[k: string]: any;
}>({ table, basePath, body, query, targetId, method, apiOrigin, }: ClientCrudFetchParams<T, P>): Promise<APIResponseObject<PostInsertReturn | R[]>>;