Skip to content

Commit

Permalink
fix(typescript): Add type keys to service pagination options. (#1888)
Browse files Browse the repository at this point in the history
  • Loading branch information
JorgenVatle committed Mar 24, 2020
1 parent 6801428 commit 859c601
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/adapter-commons/src/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ export interface ServiceOptions {
events: string[];
multi: boolean|string[];
id: string;
paginate: any;
paginate: {
default?: number;
max?: number;
}
whitelist: string[];
filters: string[];
}
Expand Down Expand Up @@ -127,4 +130,4 @@ export class AdapterService<T = any> implements ServiceMethods<T> {

return callMethod(this, '_remove', id, params);
}
}
}

0 comments on commit 859c601

Please sign in to comment.