Update Types

This commit is contained in:
2026-03-22 13:07:38 +01:00
parent 462b897615
commit 7d320f26ef
5 changed files with 18 additions and 7 deletions
+4 -1
View File
@@ -530,11 +530,14 @@ export type TableSelectFieldsObject<T extends {
};
export type ServerQueryValuesObject = {
value?: string | number;
/**
* Defaults to EQUAL
*/
equality?: (typeof ServerQueryEqualities)[number];
tableName?: string;
fieldName?: string;
};
export type ServerQueryObjectValue = string | (string | ServerQueryValuesObject | undefined | null) | (string | ServerQueryValuesObject | undefined | null)[];
export type ServerQueryObjectValue = string | number | ServerQueryValuesObject | undefined | null | (string | number | ServerQueryValuesObject | undefined | null)[];
export type ServerQueryObject<T extends object = {
[key: string]: any;
}, K extends string = string> = {
+1 -1
View File
@@ -27,7 +27,7 @@ export default function sqlGenerator({ tableName, genObject, dbFullName, count }
const valueParsed = val;
if (!valueParsed)
return;
const valueString = typeof valueParsed == "string"
const valueString = typeof valueParsed == "string" || typeof valueParsed == "number"
? valueParsed
: valueParsed
? valueParsed.fieldName && valueParsed.tableName