Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: replace arguments per spread array to fix lint issue #182

merged 2 commits into from Aug 9, 2019
Changes from 1 commit
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.


Just for now


chore: replace arguments per spread array to fix lint issue

  • Loading branch information...
vmarchaud committed Aug 8, 2019
commit ccfff8b710724eb79edca4bdee44f23eb0a1bef8
@@ -77,8 +77,8 @@ export class AsyncHooksScopeManager implements ScopeManager {

private _bindFunction<T extends Function>(target: T, scope?: unknown): T {
const manager = this;
const contextWrapper = function(this: {}) {
return manager.with(scope, () => target.apply(this, arguments));
const contextWrapper = function(this: {}, ...args: unknown[]) {
return manager.with(scope, () => target.apply(this, args));
Object.defineProperty(contextWrapper, 'length', {
enumerable: false,
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.