This commit is contained in:
Benjamin Toby 2025-01-25 14:25:20 +01:00
parent e82bcd0824
commit ebf3618667
3 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,7 @@ export type CRUDResponseObject<P extends any = any> = {
msg?: string; msg?: string;
error?: string; error?: string;
}; };
export type ApiDataCrudParam<T extends { export type DsqlMethodCrudParam<T extends {
[key: string]: any; [key: string]: any;
} = { } = {
[key: string]: any; [key: string]: any;
@ -39,4 +39,4 @@ export default function dsqlMethodCrud<T extends {
[key: string]: any; [key: string]: any;
} = { } = {
[key: string]: any; [key: string]: any;
}>({ method, tableName, addUser, user, extraData, transform, existingData, body, query, }: ApiDataCrudParam<T>): Promise<CRUDResponseObject<P>>; }>({ method, tableName, addUser, user, extraData, transform, existingData, body, query, }: DsqlMethodCrudParam<T>): Promise<CRUDResponseObject<P>>;

View File

@ -15,7 +15,7 @@ export type CRUDResponseObject<P extends any = any> = {
error?: string; error?: string;
}; };
export type ApiDataCrudParam< export type DsqlMethodCrudParam<
T extends { [key: string]: any } = { [key: string]: any } T extends { [key: string]: any } = { [key: string]: any }
> = { > = {
method: (typeof DataCrudRequestMethods)[number]; method: (typeof DataCrudRequestMethods)[number];
@ -53,7 +53,7 @@ export default async function dsqlMethodCrud<
existingData, existingData,
body, body,
query, query,
}: ApiDataCrudParam<T>): Promise<CRUDResponseObject<P>> { }: DsqlMethodCrudParam<T>): Promise<CRUDResponseObject<P>> {
let result: CRUDResponseObject = { let result: CRUDResponseObject = {
success: false, success: false,
}; };

View File

@ -1,6 +1,6 @@
{ {
"name": "@moduletrace/datasquirel", "name": "@moduletrace/datasquirel",
"version": "3.8.5", "version": "3.8.6",
"description": "Cloud-based SQL data management tool", "description": "Cloud-based SQL data management tool",
"main": "dist/index.js", "main": "dist/index.js",
"bin": { "bin": {