datasquirel/dist/package-shared/api/crud/post.d.ts
Benjamin Toby 3730e4722e Updates
2025-07-05 15:16:31 +01:00

18 lines
456 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;
apiKey?: string;
};
export default function apiCrudPOST<T extends {
[key: string]: any;
} = {
[key: string]: any;
}>({ dbName, tableName, body, update, apiKey, }: APICrudPostParams<T>): Promise<APIResponseObject>;