Skip to content
This repository has been archived by the owner on Jan 16, 2022. It is now read-only.

Commit

Permalink
fix: typescript warnings - prefer-rest-params
Browse files Browse the repository at this point in the history
  • Loading branch information
griffithtp committed Jun 24, 2019
1 parent 91e603e commit e33570b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jest/unit/components/__mocks__/api.ts
Expand Up @@ -39,8 +39,7 @@ const register = (url, method = 'get', options = {}) => {
* Bind API methods
*/
class API {
public request() {
const rest = arguments;
public request(...rest) {
return register.call(null, ...rest);
}
}
Expand Down

0 comments on commit e33570b

Please sign in to comment.