Files
DefinitelyTyped/types
Leonard Thieu bac2d1db56 [jquery] Fix return types for JQuery.map, JQueryStatic.map, and JQueryStatic(). (#26524)
* [jquery] Fix return type of `JQuery.map`.

The type parameter of the JQuery object returned from `JQuery.map` depends on the return values of the callback. Previously, the type parameter was based on the object it was called on.

This fix requires dropping constraints on `JQuery`, `JQueryStatic`, `EventHandler`, and `EventHandlerBase` as `JQuery.map` may return `JQuery` objects that contain non-`Node` values.

* [jquery] Fix return type of `JQueryStatic.map`.

* [jquery] Declare type for `this` in callback for `JQueryStatic.map`.

* [jquery] Fix return type for `JQueryStatic()`.

* [bootstrap] Match change to `JQuery` interface.

* [flight] Fix test failure due to change in `@types/jquery`.

* [materialize-css] Fix test failure due to change in `@types/jquery`.

* [select2] Match changes to `@types/jquery` interfaces.

* [jquery] Fix error due to breaking change in TypeScript lib declarations.

(cherry picked from commit 2506245)
2018-06-17 23:02:23 +01:00
..
2018-06-11 13:25:04 -07:00
2018-06-09 14:43:53 +07:00
2018-06-10 11:43:56 +03:00
2018-06-08 18:33:03 -07:00
2018-06-13 18:01:12 -07:00
2018-06-13 14:54:59 -07:00
2018-06-11 17:01:34 -05:00
2018-06-09 09:40:59 +01:00
2018-06-13 17:11:07 -04:00
2018-06-08 18:33:03 -07:00
2018-06-13 16:10:19 -07:00
2018-06-13 10:14:52 +02:00
2018-06-13 17:37:39 +02:00
2018-06-11 13:55:15 +07:00
2018-06-09 13:03:58 -05:00
2018-06-11 12:11:53 -07:00
2018-06-12 14:10:12 -04:00
2018-06-12 11:20:58 -07:00
2018-06-13 20:27:02 +02:00
2018-06-10 00:57:43 +02:00
2018-06-13 14:42:30 -07:00