You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
foo.apply(undefined,args);foo.apply(null,args);// becomesfoo(...args);obj.foo.apply(obj,args);// becomesobj.foo(...args);// allows passing a different 'this' referencefoo.apply(other,args);obj.foo.apply(other,args);obj.foo.apply(undefined,args);// detects unrelated methods named 'apply'constmyObj={apply(a: any,b: any[]){}};myObj.apply(undefined,args);// no error here
This rule should probably only do its job if strictBindCallApply is active. Otherwise autofixing might cause type errors.
Suggested name: prefer-spread-arguments
The same rule is available in ESLint as prefer-spread.
The text was updated successfully, but these errors were encountered:
This rule should probably only do its job if
strictBindCallApply
is active. Otherwise autofixing might cause type errors.Suggested name:
prefer-spread-arguments
The same rule is available in ESLint as
prefer-spread
.The text was updated successfully, but these errors were encountered: