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

Commit e33570b

Browse files
committed
fix: typescript warnings - prefer-rest-params
1 parent 91e603e commit e33570b

File tree

1 file changed

+1
-2
lines changed
  • jest/unit/components/__mocks__

1 file changed

+1
-2
lines changed

jest/unit/components/__mocks__/api.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ const register = (url, method = 'get', options = {}) => {
3939
* Bind API methods
4040
*/
4141
class API {
42-
public request() {
43-
const rest = arguments;
42+
public request(...rest) {
4443
return register.call(null, ...rest);
4544
}
4645
}

0 commit comments

Comments
 (0)