datasquirel/dist/package-shared/api/crud/post.d.ts
Benjamin Toby 7e8bb37c09 Updates
2025-07-05 14:59:30 +01:00

17 lines
427 B
TypeScript

import { APIResponseObject } from "../../types";
export type APICrudPostParams<T extends {
[key: string]: any;
} = {
[key: string]: any;
}> = {
dbName: string;
tableName: string;
body: T;
update?: boolean;
};
export default function apiCrudPOST<T extends {
[key: string]: any;
} = {
[key: string]: any;
}>({ dbName, tableName, body, update, }: APICrudPostParams<T>): Promise<APIResponseObject>;