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.
1 parent 452b12e commit 7cca393Copy full SHA for 7cca393
src/infrastructure/QueryParams.ts
@@ -55,14 +55,16 @@ export class QueryParams {
55
* id?: string;
56
* }} configuration arguments
57
*/
58
- constructor(args: {
+ constructor(args?: {
59
pageSize?: number,
60
order?: Order,
61
id?: string;
62
}) {
63
- if (args.pageSize) this.setPageSize(args.pageSize)
64
- if (args.order) this.setOrder(Order[args.order])
65
- if (args.id) this.setId(args.id)
+ if (args) {
+ if (args.pageSize) this.setPageSize(args.pageSize)
+ if (args.order) this.setOrder(Order[args.order])
66
+ if (args.id) this.setId(args.id)
67
+ }
68
}
69
70
public setPageSize(pageSize: number): QueryParams {
0 commit comments