-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.d.ts
45 lines (34 loc) · 1.17 KB
/
index.d.ts
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
36
37
38
39
40
41
42
43
44
45
declare var queryStringsParser: queryStringsParser.QueryStringsParser
export = queryStringsParser
declare namespace queryStringsParser {
export interface QueryStringsParser {
(options?: IOptions): any
parser(query?: string | object, defaults?: IDefault, options?: IOptions): any
parseFields(query?: string | object, options?: IOptions): any
parseSort(query?: string | object, options?: IOptions): any
parsePagination(query?: string | object, pagination?: IPagination, use_page?: boolean): any
parseFilter(query?: string | object, options?: IOptions): any
parseDate(query?: string | object, date_fields?: IDateFields): any
}
export interface IOptions {
default?: IDefault
use_page?: boolean
client_db?: string
date_fields?: IDateFields
}
export interface IDefault {
fields?: object
sort?: object
filters?: object
pagination?: IPagination
}
export interface IPagination {
page?: number
skip?: number
limit?: number
}
export interface IDateFields {
start_at?: string
end_at?: string
}
}