Updates
This commit is contained in:
@@ -9,7 +9,7 @@ export type CRUDResponseObject<P extends any = any> = {
|
||||
msg?: string;
|
||||
error?: string;
|
||||
};
|
||||
export type ApiDataCrudParam<T extends {
|
||||
export type DsqlMethodCrudParam<T extends {
|
||||
[key: string]: any;
|
||||
} = {
|
||||
[key: string]: any;
|
||||
@@ -39,4 +39,4 @@ export default function dsqlMethodCrud<T extends {
|
||||
[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>>;
|
||||
|
||||
Reference in New Issue
Block a user