We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dbd5a3a + 27ae0c5 commit 299d3cdCopy full SHA for 299d3cd
types.d.ts
@@ -1,14 +1,24 @@
1
declare module 'api-query-params' {
2
+ type PopulateOptions = {
3
+ path: string;
4
+ select?: any;
5
+ }
6
+
7
+ type Query = {
8
+ [key: string]: undefined | string | string[] | Query | Query[]
9
10
11
export type AqpQuery = {
12
filter: Record<string, any>;
13
skip: number;
14
limit: number;
15
sort: Record<string, number>;
16
projection: Record<string, number>;
17
+ population: PopulateOptions[];
18
};
19
20
function aqp(
- query: string | Record<string, string>,
21
+ query: string | Query,
22
opt?: {
23
skipKey?: string;
24
limitKey?: string;
@@ -26,4 +36,4 @@ declare module 'api-query-params' {
26
36
): AqpQuery;
27
37
28
38
export default aqp;
29
-}
39
+}
0 commit comments