Commit Graph

23 Commits

Author SHA1 Message Date
Andy Hanson
45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Forbes Lindesay
8f8f6c4392 [react] Use HTMLDialogElement for the dialog node (#23053)
* [react] Use HTMLDialogElement for the dialog node

* Actually add the `open` property

* This update requires typescript 2.6

* Update dependents of react to also require typescript 2.6
2018-02-12 12:55:52 +00:00
Andy
bef4d2b27d Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
JR
c8e5d4efd9 Update index.d.ts (#23216)
Added optional className prop on `ReduxToastrProps` to support https://github.com/diegoddox/react-redux-toastr/issues/103
2018-01-31 12:11:16 -08:00
Christian Sahlström
3d5a2db8f6 Add JSX.Element to component in BasicToastrOptions (#22825)
We are getting error when trying to add component for Toastr.info, success, error and warning since "component" property is of type Component and not JSX.Element like the LightToastrOptions has. Hence it would be great if we can add it to the BasicToastrOptions as well.

Thanks
2018-01-17 11:47:56 -08:00
Andy
69ecb447d4 react-redux-toastr: Fix test (#22137) 2017-12-18 07:27:13 -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
bonimba
58cf30d21e fix typo 'bottom-ceter' to 'bottom-center' in type positionType 2017-11-13 11:40:04 +00:00
Igor Oleinikov
ecabf5526f Merge pull request #20987 from pelotom/patch-10
[react] Make component constructor props non-optional
2017-11-08 13:58:44 -08:00
Andy
954ee278de Update TypeScript Versions to be at least as high as dependencies' versions (#21288)
* Update `TypeScript Version`s to be at least as high as dependencies' versions

* Run through again
2017-11-08 09:12:14 -08:00
Douglas Day
d63cc7edaf react-redux-toastr: Fix issue with TypeScript component compatibility 2017-11-02 16:16:18 -06:00
Andy
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
Tom Crockett
73216e2ef2 Propagate non-optional props change to dependent libraries 2017-10-24 22:04:50 -07:00
Andy
947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Andy
0537c1fb27 Add "private": true to every package.json (#19483) 2017-08-31 08:02:56 -07:00
Andy
a828ea02ac Normalize tsconfig.jsons (#19447) 2017-08-30 08:15:31 -07:00
Andy
af8b0d1294 FIx new lint errors (#18382) 2017-07-25 10:34:23 -07:00
Mika Kuitunen
3b95a71580 [react-redux-toastr] Rewrite types for package v7.0.0 and TypeScript 2.4 (#18024)
* react-redux-toastr: unify code style

* react-redux-toastr: Change React.Component types to use state and props

* react-redux-toastr: change to named imports

* react-redux-toastr: remove module declaration

* react-redux-toastr: add union types for known strings

* react-redux-toastr: rename ToastrConfirmOptions to ConfirmToastrOptions for unified style, refine properties

* react-redux-toastr: Add interfaces for all of the Toastr option objects

* react-redux-toastr: Refactor some variables to alphabetical order

* react-redux-toastr: Add interfaces to toastrs in reducer state, add toastr action payload, toastr reducer state

* react-redux-toastr: Rename ToastOptions to ToastrOptions to unify style

* react-redux-toastr: Rename ToastrOptions to ReduxToastrProps and rewrite properties

* react-redux-toastr: Slight refactor of ReduxToastrProps

* react-redux-toastr: Remove confirmOptions interface

* react-redux-toastr: Remove duplicate ConfirmToastrOptions interface

* react-redux-toastr: Rewrite ToastrEmitter, modify tests to comply with version 7.0.0

* react-redux-toastr: rewrite action creators, start using ToastrState

* react-redux-toastr: Slight refactor, alphabetize stuff

* react-redux-toastr: remove unused Component state and props

* react-redux-toastr: fix TS version

* Fix version number for TypeScript
2017-07-20 09:59:37 -07:00
Artjoms Stukans
5552d5d76b Adjust existing property (confirmOptions) 2017-06-29 19:19:43 +03:00
Artjoms Stukans
1ff2442506 Add missing properties for ToastrOptions 2017-06-29 17:40:13 +03:00
Tanguy Krotoff
ea9de8a518 Replace React.Component<(.*), (any|void|\{\}|null)> by React.Component<$1>
+ many manual adjustments
2017-06-19 13:35:50 +02:00
Tanguy Krotoff
eeb262e1d8 Update react to TypeScript 2.3 2017-06-19 13:34:54 +02:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00