Updates
This commit is contained in:
@@ -995,7 +995,7 @@ export type ServerQueryParam<
|
||||
T extends { [k: string]: any } = { [k: string]: any },
|
||||
K extends string = string
|
||||
> = {
|
||||
selectFields?: (keyof T)[];
|
||||
selectFields?: (keyof T | TableSelectFieldsObject)[];
|
||||
omitFields?: (keyof T)[];
|
||||
query?: ServerQueryQueryObject<T>;
|
||||
limit?: number;
|
||||
@@ -1015,6 +1015,13 @@ export type ServerQueryParam<
|
||||
[key: string]: any;
|
||||
};
|
||||
|
||||
export type TableSelectFieldsObject<
|
||||
T extends { [k: string]: any } = { [k: string]: any }
|
||||
> = {
|
||||
fieldName: keyof T;
|
||||
alias?: string;
|
||||
};
|
||||
|
||||
export type ServerQueryValuesObject = {
|
||||
value?: string | number;
|
||||
equality?: (typeof ServerQueryEqualities)[number];
|
||||
|
||||
Reference in New Issue
Block a user