-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTypes.ts
More file actions
35 lines (25 loc) · 752 Bytes
/
Types.ts
File metadata and controls
35 lines (25 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { IQueryable } from "./Interfaces";
export type FormBody = object | undefined;
export type QueryArray = object[];
export type QueryFunctionType = (query: IQueryable) => IQueryable;
export type RequestInterceptorType = (request: RequestInit) => RequestInit;
export type ResponseInterceptorType = (response: Response) => Response;
export type LogicType = "$or" | "$and";
export type MethodType = "POST" | "PUT" | "PATCH" | "DELETE" | "GET";
export type SortType = "ASC" | "DESC";
export type ConditionTypes = "=" | "<>" | ">" | ">=" | "<" | "<=";
export type FullCoditionTypes =
| "="
| "<>"
| ">"
| ">="
| "<"
| "<="
| "LIKE"
| "NOT LIKE"
| "IN"
| "NOT IN"
| "BETWEEN"
| "NOT BETWEEN"
| "NULL"
| "NOT NULL";