Update Types

This commit is contained in:
Benjamin Toby 2024-11-09 06:28:53 +01:00
parent f26f224ce7
commit 0d6b1d7e4c
2 changed files with 9 additions and 8 deletions

View File

@ -1153,14 +1153,15 @@ export type ServerQueryParam = {
[key: string]: any; [key: string]: any;
}; };
export type ServerQueryQueryObject = { export type ServerQueryQueryObject<T extends object = { [key: string]: any }> =
[key: string]: { {
[key in keyof T]: {
value: string | string[]; value: string | string[];
operator?: "AND" | "OR"; operator?: "AND" | "OR";
equality?: "EQUAL" | "LIKE"; equality?: "EQUAL" | "LIKE";
tableName?: string; tableName?: string;
}; };
}; };
export type FetchDataParams = { export type FetchDataParams = {
path: string; path: string;

View File

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