mirror of
https://github.com/SomboChea/ui
synced 2024-11-24 06:54:27 +07:00
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
|
||||
*/
|
||||
class API {
|
||||
public request() {
|
||||
const rest = arguments;
|
||||
public request(...rest) {
|
||||
return register.call(null, ...rest);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user