From 0d6b1d7e4c545dc5ecb7ca6bf9d15583822a388b Mon Sep 17 00:00:00 2001 From: Benjamin Toby Date: Sat, 9 Nov 2024 06:28:53 +0100 Subject: [PATCH] Update Types --- package-shared/types/index.d.ts | 15 ++++++++------- package.json | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/package-shared/types/index.d.ts b/package-shared/types/index.d.ts index 320da78..9ab5ad3 100644 --- a/package-shared/types/index.d.ts +++ b/package-shared/types/index.d.ts @@ -1153,14 +1153,15 @@ export type ServerQueryParam = { [key: string]: any; }; -export type ServerQueryQueryObject = { - [key: string]: { - value: string | string[]; - operator?: "AND" | "OR"; - equality?: "EQUAL" | "LIKE"; - tableName?: string; +export type ServerQueryQueryObject = + { + [key in keyof T]: { + value: string | string[]; + operator?: "AND" | "OR"; + equality?: "EQUAL" | "LIKE"; + tableName?: string; + }; }; -}; export type FetchDataParams = { path: string; diff --git a/package.json b/package.json index 96d4836..818b107 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@moduletrace/datasquirel", - "version": "2.5.4", + "version": "2.5.6", "description": "Cloud-based SQL data management tool", "main": "index.js", "bin": {