Retsam
d73f413fb6
Fix inferred types for targetted error handlers
...
The typings for targetted catch statements don't infer properly with Error constructors, for example with `.catch(SomeErrorSubtype, (e) => /*...*/)`, `e` is inferred to be the constructor of SomeErrorSubtype, not an instance of SomeErrorSubtype, so this must be explicitly typed as `.catch(SomeErrorSubtype, (e: SomeErrorSubtype) => /*...*/)` for the typings to be accurate. The root causes is that it is erroneously falling into the wrong overload, the overload that accepts arbitrary objects as the first argument to .catch. This fix requires loosening the restriction that SomeErrorSubtype must be a subtype of Error, but otherwise preserves existing behavior.
Also, makes a utility type to reduce some of the boilerplate.
2017-12-13 14:02:42 -05:00
Retsam
79258c041a
Make caught an alias for catch
2017-12-13 13:56:16 -05:00
John Reilly
cb36d78e37
papaparse: expose types from module ( #22155 )
2017-12-13 12:41:28 +00:00
Andy
57d67975c7
restling: Fix incorrect tuple syntax ( #22135 )
2017-12-12 15:53:16 -08:00
Andy
98cba32893
ng-facebook: reintroduce FBUIParams type ( #22138 )
2017-12-12 14:30:06 -08:00
Mine Starks
22b3917bd4
Merge pull request #22141 from nertzy/revert-22003-master
...
Revert "[@types/googlemaps] Fixing GeocoderRequest wrong property names"
2017-12-12 13:36:10 -08:00
Grant Hutchins
9948fee417
Revert "[@types/googlemaps] Fixing GeocoderRequest wrong property names"
2017-12-12 15:30:51 -06:00
Mine Starks
5ac829cae2
Merge pull request #22103 from alan-agius4/feature/fs-extra-5-0-0
...
feat(fs extra): update APi to match `fs-extra 5.0.0`
2017-12-12 10:41:54 -08:00
Alan Agius
9c77774305
fix tslint path
2017-12-12 19:25:40 +01:00
Alan Agius
3a38158439
fs-extra-promise: remove extra path
2017-12-12 19:21:38 +01:00
Alan Agius
2cfa06f3fa
Merge branch 'feature/fs-extra-5-0-0' of https://github.com/alan-agius4/DefinitelyTyped into feature/fs-extra-5-0-0
2017-12-12 19:14:26 +01:00
Alan Agius
57c524c9bd
feat(fs extra): update APi to match fs-extra 5.0.0
2017-12-12 19:14:23 +01:00
Mine Starks
1b13c59fa2
Merge pull request #21981 from Arcath/react-form-2
...
Update react-form typings to support 2.12.1
2017-12-12 09:21:52 -08:00
Mine Starks
bdefdfa844
Merge pull request #21984 from marceloemanoel/master
...
Package: amcharts. Fix type on showCursorAt method.
2017-12-12 08:51:28 -08:00
Adam Laycock
8eb1df39fb
fix no new line errors
2017-12-12 11:26:34 +00:00
Adam Laycock
e827bca4ea
add strictFunctionTypes
2017-12-12 11:23:05 +00:00
Adam Laycock
88029d93a6
fix versoin in path
2017-12-12 11:14:08 +00:00
Adam Laycock
01c5883c06
drop the TS version to 2.3
2017-12-12 10:45:50 +00:00
Adam Laycock
3eff29bc66
add the v1 folder
2017-12-12 10:44:13 +00:00
Mine Starks
d6aa6381c3
Merge pull request #22109 from foxmicha/patch-1
...
Update react-native PushNotificationIOS Typings
2017-12-11 17:18:42 -08:00
Mine Starks
5d0dcfc1f0
Merge pull request #21215 from landmarkhw/master
...
react-redux-toastr: Fix issue #13390 with TypeScript component compatibility
2017-12-11 17:11:07 -08:00
Mine Starks
c33c4a1ec2
Merge pull request #20937 from kaelig/patch-1
...
react: Add `as` attribute to AllHTMLAttributes
2017-12-11 17:06:24 -08:00
Mine Starks
a5936aae88
Merge pull request #21065 from Zwapgrid/master
...
Add missing methods in jquery.bootstrap.wizard
2017-12-11 17:02:47 -08:00
Mine Starks
13e5cbcff4
Merge pull request #21922 from konne/master
...
Change enigma.js, add docu and small improvements
2017-12-11 16:12:10 -08:00
Mine Starks
222185d8af
Merge pull request #21909 from Meir017/patch-1
...
fixed stack-trace typings
2017-12-11 16:05:58 -08:00
Mine Starks
0bf1096f1e
Merge pull request #22014 from wingsbob/joi-extend-accepts-arrays
...
Joi.extend can be called with arrays
2017-12-11 16:00:21 -08:00
Mine Starks
d2c15253d4
Merge pull request #21927 from segayuu/types-glob-cleanup-lint-errors
...
[@types/glob] Cleanup lint errors
2017-12-11 15:57:36 -08:00
Mine Starks
d3213bafc4
Merge pull request #21929 from TimNZ/parse-liveQueryServerURL
...
Add 'liveQueryServerURL' option to 'parse'
2017-12-11 15:56:52 -08:00
Mine Starks
2eba0454ad
Merge pull request #21939 from Nitecube/fancytree
...
jquery.fancytree: add methods for Fancytree. fixes FancytreeOptions a…
2017-12-11 15:54:18 -08:00
Matthew Bull
5ee6ff2ab5
Applied changes from feedback
2017-12-11 23:54:17 +00:00
Mine Starks
a4479afadd
Merge pull request #21947 from stity/master
...
Cypress : update cy.trigger and cy.log API
2017-12-11 15:51:59 -08:00
Mine Starks
f21d7975be
Merge pull request #21953 from cjthompson/azure-sb
...
[azure-sb] Complete rewrite to match stand-alone npm module
2017-12-11 15:51:22 -08:00
Mine Starks
7cf51b8d3a
Merge pull request #22020 from Retsam/fix-sinon-stub
...
Fix typings of sinon.stub(obj: T)
2017-12-11 15:33:50 -08:00
Mine Starks
0750d93aef
Merge pull request #22008 from corydeppen/passport-google-oauth
...
[passport-google-oauth] Use proper type for passReqToCallback
2017-12-11 15:29:25 -08:00
Mine Starks
58dda91366
Merge pull request #22012 from wingsbob/koa-joi-router-missing-definitions
...
Extend koa-joi-router
2017-12-11 15:27:29 -08:00
Mine Starks
5c67a54eb2
Merge pull request #22018 from ne0guille/patch-2
...
reactstrap Adding missing propert in Fade.d.ts
2017-12-11 15:26:18 -08:00
Mine Starks
79c00cb515
Merge pull request #22015 from joeskeen/master
...
[gridstack] allow string for removable option
2017-12-11 15:26:00 -08:00
Mine Starks
023b785bd3
Merge pull request #21983 from admiralsmaster/master
...
Flot: Add timezone, timeformat, twelveHourClock to axisOptions
2017-12-11 15:08:25 -08:00
Mine Starks
ad5c1701a3
Merge pull request #22042 from nicolashenry/inappbrowser
...
[cordova-plugin-inappbrowser] enable strictFunctionTypes
2017-12-11 14:48:35 -08:00
Mine Starks
05aca100d8
Merge pull request #21805 from mastermatt/request/fill-out-initparams
...
Request - Fill out initParams of RequestAPI.
2017-12-11 14:46:31 -08:00
Mine Starks
a7244b9ea0
Merge pull request #21775 from ter9ng/master
...
[react-select] - Fix ComponentType TS error in react-select
2017-12-11 14:43:24 -08:00
Mine Starks
cbcc5e0b77
Merge pull request #21991 from 43081j/sinon-instance
...
sinon: add createStubInstance sandbox
2017-12-11 14:32:00 -08:00
Mine Starks
b03ff4b72c
Merge pull request #22089 from Dante-101/react-controlsList
...
React - support for controlsList attribute on 'video' element
2017-12-11 14:31:17 -08:00
Mine Starks
00866e3b1a
Merge pull request #22110 from DefinitelyTyped/revert-21951-chai_export-as-namespace
...
Revert "chai: Use `export as namespace` instead of `declare module`"
2017-12-11 14:17:51 -08:00
Mine Starks
dc1a77c721
Revert "chai: Use export as namespace instead of declare module"
2017-12-11 14:13:34 -08:00
foxmicha
52e3641860
Cleanup react-native Typings white space
2017-12-11 15:57:28 -05:00
foxmicha
73ae35f48f
Update react-native PushNotificationIOS Typings
...
React-Native typings are currently missing two crucial definitions when implementing iOS notifications: finish function and FetchResult strings. If a finish function is not called, the background remote notifications could be throttled.
Sources:
https://facebook.github.io/react-native/docs/pushnotificationios.html#finish
https://github.com/facebook/react-native/blob/master/Libraries/PushNotificationIOS/PushNotificationIOS.js#L133
https://github.com/facebook/react-native/blob/master/Libraries/PushNotificationIOS/PushNotificationIOS.js#L454
2017-12-11 15:48:12 -05:00
Mine Starks
b28498c247
Merge pull request #21979 from orizens/patch-1
...
[gapi.youtube] updated GoogleApiYouTubeVideoResource "thumbnails" object for all thumbnails
2017-12-11 12:17:19 -08:00
Mine Starks
ed238131b4
Merge pull request #22073 from spacejack/p2-optional-cmo
...
p2 - ContactMaterialOptions properties should all be optional
2017-12-11 12:11:02 -08:00
Mine Starks
1d6e823060
Merge pull request #22074 from gs-akhan/master
...
getSelection does take optional argument
2017-12-11 12:10:19 -08:00