Commit Graph
144 Commits
Author SHA1 Message Date
Ron BucktonandGitHub b8a9738dba Merge pull request #25795 from HolgerJeromin/documentfragment
[types/jQuery] add DocumentFragment to allowed jQuery objects
2018-05-16 17:02:24 -07:00
Holger Jeromin cda7bba75c asterisks fix 2018-05-16 11:47:48 +02:00
Holger Jeromin 7007542e78 adding JQueryEventObject to all on handlers and fix tests 2018-05-16 11:29:25 +02:00
Holger Jeromin b4fed84066 add DocumentFragement to allowed jQuery objects 2018-05-15 15:34:55 +02:00
Holger Jeromin 68b3a85dfe fixing trailing whitespace 2018-05-15 14:48:40 +02:00
Holger Jeromin c0c5afcf49 fixing tests 2018-05-15 14:39:13 +02:00
Holger Jeromin afbcc5cfe0 adding test 2018-05-15 14:20:56 +02:00
Holger JerominandGitHub d1023531fa jquery: Add overload for on() handler 2018-05-15 12:32:27 +02:00
AndyandJohn Reilly 620ed4b696 jquery: Fix tests (#25422) 2018-04-30 19:09:12 +01:00
Armando AguirreandGitHub c5797de356 Merge pull request #23921 from O-Zone/master
Jquery: Added Window to selector_object_callback type so $(window) is possible
2018-03-08 16:06:54 -08:00
Armando AguirreandGitHub aca49836a0 Merge pull request #23833 from aluanhaddad/patch-2
fix import in window module test
2018-03-06 18:52:09 -08:00
Damian SennandAndy 574ea0954e jQuery offset method might return undefined (#23821) 2018-02-26 11:47:25 -08:00
Hasse FeldthausandGitHub 0428c407f0 Update index.d.ts
Added Window to selector_object_callback type so $(window) is possible
2018-02-26 09:40:41 +01:00
Aluan HaddadandGitHub 8acf1ae429 fix import in another test 2018-02-21 18:10:15 -05:00
Aluan HaddadandGitHub 38f5479744 fix import in window module test 2018-02-21 18:01:41 -05:00
Andy Hanson 45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
AndyandGitHub bef4d2b27d Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
AndyandJohn Reilly 37685e11dd Add tslint disables for no-const-enum (#23134) 2018-01-23 18:19:36 +00:00
Leonard ThieuandJohn Reilly 32a23a8139 [jquery] Update to jQuery 3.3. (#23095)
* [jquery] .addClass(), .removeClass(), and .toggleClass() methods now accept an array of classes.

* [jquery] Add test for overload of .toggleClass().

* [jquery] Add jQuery 3.3 deprecations.
2018-01-21 20:00:14 +00:00
Leonard ThieuandJohn Reilly 29c6e0f81a [jquery] Support projects without ES2015.Iterable. (#22766) 2018-01-14 06:12:35 +00:00
icnocop 1e7989f8ce [jquery] Overriding the beforeSend function for AjaxSettings and UrlAjaxSettings to indicate a more appropriate settings parameter type
Fixed errors when running lint
2017-11-29 18:30:41 -08:00
AndyandGitHub 3f7bbeaa51 Miscellaneous lint fixes (#21116) 2017-10-30 11:05:43 -07:00
AndyandGitHub 4e52c4dea6 jquery: Fix lint (#20965) 2017-10-30 07:55:19 -07:00
AndyandGitHub 19f89399e4 Ensure every package has a tslint.json (#21009)
* Ensure every package has a tslint.json

* Fixes
2017-10-25 11:13:50 -07:00
Leonard ThieuandAndy fdd6cc3a35 [jquery] after(), append(), before(), and prepend() can accept an array of JQuery (#20319)
* [jquery] `after()`, `append()`, `before()`, and `prepend()` can accept an array of JQuery.

* [jquery] Lint.

* [jquery] Disable flaky tests.

* [sharepoint] Lint.

* [tinymce] Lint.

* [ej.web.all] Lint.

* [jquery] Fix unintended change to Callbacks.

* [jquery] Fix test.
2017-10-17 09:26:14 -07:00
Leonard ThieuandAndy 42cf3abe63 [jquery] Add ajaxSettings property. (#20433) 2017-10-16 11:32:07 -07:00
AndyandGitHub 947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Nathan Shively-Sanders 32ae9f623b Fix test failures 2017-10-03 13:43:36 -07:00
Nathan Shively-Sanders b8ea87c68e Strict function variance fixes round 1 2017-10-02 15:50:34 -07:00
AndyandGitHub 924fafffc0 Fix remaining lint errors (#19166) 2017-08-20 15:37:53 -07:00
John ReillyandGitHub 44a9d083d4 Merge pull request #18638 from leonard-thieu/jquery-promise
[jquery] Improve compatibility between Promise types
2017-08-20 13:38:06 +01:00
AndyandGitHub 5d6c651a1a Apply stricter lint rules (#19063) 2017-08-17 14:53:41 -07:00
Leonard Thieu f13a191e66 [jquery] Improve compatibility between Promise types.
Add `pipe(null, null, progressFilter)` overload.
2017-08-09 11:32:01 -04:00
Leonard Thieu a6644cb39b [jquery] Make JQuery.Promise and JQuery.Promise3 compatible with Promise. 2017-08-04 11:40:52 -04:00
Leonard Thieu 28022c0fe8 [jquery] after(), append(), before(), and prepend() should accept JQuery<JQuery.Node>. 2017-08-04 10:52:39 -04:00
AndyandGitHub 11fab3226b Fix jquery promise compatibility with async functions (#18421) 2017-07-27 07:54:12 -07:00
Leonard Thieu ec2158f2d6 [jquery] Add tests for type of a type guard in the not case.
Note that isPlainObject() fails the not case in the same manner that isEmptyObject() does. This might warrant changing it to return a boolean. However, unlike isEmptyObject(), isPlainObject() can be useful when the object is a plain object.
2017-07-18 09:22:02 -04:00
Leonard Thieu 226ef5f14c [jquery] Revert isEmptyObject() to returning boolean.
While the type guard does narrow a value's type to an empty object, the interesting case is when the type is not an empty object. TypeScript narrows the type to never in that case which makes the type guard not very useful.
2017-07-18 09:13:58 -04:00
Leonard Thieu 8c92375cfd [jquery] Fix PromiseLike compatibility for Promise3, Promise2, and jqXHR. 2017-07-12 20:07:43 -04:00
Leonard Thieu fafbbf6cef [jquery] Re-add type parameter to hover(). 2017-07-11 12:23:35 -04:00
Leonard Thieu 0341b2b289 [jquery] Remove type parameter from hover(). 2017-07-11 12:21:36 -04:00
Leonard Thieu 73fe002d3a Merge branch 'master' of https://github.com/DefinitelyTyped/DefinitelyTyped into jquery 2017-07-11 12:03:53 -04:00
Leonard Thieu c0be2168e3 [jquery] Fix event handler types.
The type of `this` for event handlers can now be specified using the new type `EventHandlerBase`. Event-related methods have been updated to accept `EventHandlerBase`.

Event handlers with non-default TData can now be unbound.
2017-07-11 11:59:58 -04:00
Leonard Thieu 263ecda463 [jquery] Improve declaration of proxy().
Return a specific function type instead of Function.
Add support for passing null/undefined for context.
2017-07-11 11:20:18 -04:00
Leonard Thieu af079db266 [jquery] Split @since. 2017-07-11 11:20:17 -04:00
Leonard Thieu c7393ce546 [jquery] Fix tests. 2017-07-11 11:20:16 -04:00
Leonard Thieu 1c6c4aaf5b [jquery] scrollLeft() and scrollTop() can also return undefined.
scrollLeft() and scrollTop() will return undefined when used on an empty set.
2017-07-11 11:20:15 -04:00
Leonard Thieu f5fd92f7b3 [jquery] Formatting.
Move JQueryStatic above JQuery for consistency.
2017-07-11 11:20:14 -04:00
Leonard Thieu 0367bd2cfc [jquery] Formatting.
Move EventStatic above Event.
2017-07-11 11:19:57 -04:00
stonioandGitHub dc178ad6fe Update README.md 2017-07-10 12:01:04 +02:00