forked from sombochea/verdaccio-ui
fix: typescript warnings - prefer-rest-params
This commit is contained in:
parent
91e603ef21
commit
e33570b3f0
@ -39,8 +39,7 @@ const register = (url, method = 'get', options = {}) => {
|
|||||||
* Bind API methods
|
* Bind API methods
|
||||||
*/
|
*/
|
||||||
class API {
|
class API {
|
||||||
public request() {
|
public request(...rest) {
|
||||||
const rest = arguments;
|
|
||||||
return register.call(null, ...rest);
|
return register.call(null, ...rest);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user