Skip to content

Commit

Permalink
[jquery] Fix TContext declaration of jQuery.proxy on wrong value'…
Browse files Browse the repository at this point in the history
…s type. (DefinitelyTyped#29930)

* [jquery] Match parameter names to documentation more closely.

* [jquery] Add documentation to parameters.

* [jquery] Fix `TContext` declaration on wrong value's type.

Declaring `this` as `TContext` on the input function ensures that it can handle having its context changed to `TContext`. Declaring `this` on the output function is not important because the function will be already defined. It can also get in the way when passing a callback to a function whose callback parameter has `this` declared.

* [jquery] Drop constraint from `TContext`.

It's not really necessary and it is possible to pass primitives as the context.
  • Loading branch information
leonard-thieu authored and sheetalkamat committed Oct 22, 2018
1 parent 6e67531 commit c6fe757
Show file tree
Hide file tree
Showing 2 changed files with 1,320 additions and 651 deletions.
Loading

0 comments on commit c6fe757

Please sign in to comment.