Commit Graph

146 Commits

Author SHA1 Message Date
Dovydas Navickas
df4cd9221a Return types updated from undefined to void in react-router and react… (#14743)
* Return types updated from undefined to void in react-router and react-router-redux.

* Author added to definitions.
2017-03-10 16:02:02 -08:00
Andy
555ea54770 Lint test files too (#14791) 2017-02-23 07:15:16 -08:00
Karol Janyst
c60d8380fd Replace undefine return type for callbacks and custom functions 2017-02-15 15:17:17 +09:00
Karol Janyst
290b4f2339 Replace void with undefined type 2017-02-15 15:05:58 +09:00
Karol Janyst
a5558e3b48 Add path mappings for history v3 2017-02-13 14:49:17 +09:00
Karol Janyst
fb501e212f Fix linter errors 2017-02-13 11:51:49 +09:00
Karol Janyst
2f045dc94b Add definitions for history v3 and use it in react-router v3 2017-02-13 11:43:21 +09:00
John Reilly
c1196db216 Merge pull request #14544 from johnnyreilly/master
react-router: added routes to RouteComponentProps
2017-02-10 12:51:26 +00:00
John Reilly
844f14e366 Update react-router-tests.tsx 2017-02-10 12:45:15 +00:00
John Reilly
b274efe1be Update react-router-tests.tsx 2017-02-10 12:31:25 +00:00
John Reilly
0e0bef8276 react-router added routes to RouteComponentProps 2017-02-10 12:25:50 +00:00
John Reilly
2fda73624f Merge pull request #14540 from johnnyreilly/master
react-router: Fix RedirectFunction not being exported
2017-02-10 11:05:49 +00:00
John Reilly
1c72cb3812 Update react-router-tests.tsx 2017-02-10 10:14:12 +00:00
John Reilly
10e5368854 react-router: Fix RedirectFunction not being exported 2017-02-10 10:08:14 +00:00
nil4
df9de6832f Fix DefinitelyTyped/DefinitelyTyped#14500: patname->pathname 2017-02-07 23:40:58 +01:00
Olmo del Corral
2e14c31a33 make RouteComponentProps non-optional to smoth strictNullChecks 2017-02-06 07:36:39 +01:00
Karol Janyst
fb82c5984f Add another signature to match() 2017-02-03 09:05:37 +09:00
Karol Janyst
abd91fedd2 Resolve conflicts 2017-01-30 12:29:08 +09:00
John Reilly
93b63ea6e9 Update to react-router 3.0.0 2017-01-27 17:24:51 +00:00
John Reilly
7c74f67ef7 added router?: InjectedRouter; to RouteComponentProps
see https://github.com/ReactTraining/react-router/blob/master/CHANGES.md#v300-beta1
and https://github.com/ReactTraining/react-router/pull/3729
2017-01-27 17:21:50 +00:00
Karol Janyst
f4f285ee2f Set target compiler to 2.1, add old react-router reference for react-router-redux tests 2017-01-27 11:42:19 +09:00
Karol Janyst
227e858339 Fix typings that depend on old version 2017-01-26 14:17:05 +09:00
Eric Anderson
9b53298395 Support Pick<> on setState now that TS 2.1 is out (#13155)
* Support Partial<> on setState now that TS 2.1 is out

* Update readme to reflect setState being typed correctly

* Switch setState to Pick

* Restore cloneELement portion of readme

* Use Pick<> | S for setState due to cast issue

* state and props should be readonly

* Fix nit + document why we

* Add typescript compiler header

* Update to properly order headers

* Update readme to reflect 2.1.5 fixing stPick

* Update readme now that 2.1.5 is out

* All that depend on react now require 2.1

* Fix definition that fails due to readonly state
2017-01-23 12:36:53 -08:00
Karol Janyst
ab95e31c3f Remove test file from v2 tsconfig 2017-01-19 12:40:16 +09:00
Karol Janyst
3ce2018675 Change include to files in tsconfig 2017-01-19 12:12:31 +09:00
Karol Janyst
2bef57bed0 Fix react-router tsconfig 2017-01-19 11:22:18 +09:00
Karol Janyst
4b89363df8 Fix tsconfig files 2017-01-19 11:17:58 +09:00
Karol Janyst
5ce5e78468 Remove unnecessary files, add tsconfig for old version 2017-01-19 10:15:36 +09:00
Karol Janyst
cc4beb61ab Resolve conflicts 2017-01-19 10:06:55 +09:00
Karol Janyst
d11a1c562b Update some definitions based on history v2 2017-01-19 09:46:36 +09:00
Andy
ae4fe7b6de Use "lib" in tsconfigs instead of "target". (#13968)
* Use "lib" in tsconfigs instead of "target".

Only add "dom" to libraries that need it. This is determined by a script, so many libraries that have "dom" maybe should not.

* Update new-package and readme

* Add back "target" where necessary
2017-01-18 07:51:51 -08:00
Andy
60e56c268f react-router: Lint (#14063) 2017-01-17 08:06:10 -08:00
Karol Janyst
69a9f6d671 Update react-router definitions to 3.0.x 2017-01-17 18:29:47 +09:00
Young Rok Kim
a1abf4fd44 [history] update to v4.5 (#13744)
* [history] update to v4.5

- move legacy history to v2 folder
- fix dependent packages' package.json file to use legacy history v2

* [history] change dependents to support old history

* [history] fix updated dependents
2017-01-13 07:18:45 -08:00
Bjarke Hesthaven Søndergaard
33c936d681 [react-router] Update LinkProps to current typings (#13704)
* Update LinkProps to current typings

This allows use in stateless higher order components.

* Add test for stateless HOC using LinkProps
2017-01-12 09:38:35 -08:00
Andy
7dc075aed5 Rename react-router/lib/History.d.ts to routerHistory. (#13642)
This prevents global imports of "history" from importing this file on Windows (which is case-insensitive) with classic module resolution (which may resolve global imports in the current directory).
2017-01-12 09:36:01 -08:00
Andy
2f71174636 Restructure to support old versions (#13811)
* Restructure to support old versions

* Fix tests
2017-01-06 12:36:57 -08:00
Andy Hanson
b69f2086f0 Remove react-router/history.d.ts; history/index.d.ts should be used instead. 2016-12-20 08:14:19 -08:00
Andy
a4bd9fa3c1 Add "noImplicitThis" to all tsconfig.json (#13446)
* Add "noImplicitThis" to all tsconfig.json

* Use `"noImplicitThis": false` on packages with broken tests.
2016-12-19 14:11:46 -08:00
Nathan Shively-Sanders
daf9bd392f Merge branch 'master' into types-merges-20161123 2016-11-23 15:48:06 -08:00
Shi Yan
d4b2e37e1c Export LocationDescriptor 2016-11-17 21:43:53 +08:00
Shi Yan
4499a752a5 Fixed LocationDescriptor and pathOrLoc types. 2016-11-17 15:08:46 +08:00
Yui
f6cf80c8ad Merge pull request #12291 from KostyaEsmukov/react-router-render-prop
react-router: added render prop and fixed applyRouterMiddleware types
2016-11-10 16:26:59 -08:00
Kostya Esmukov
6e4467c379
react-router: added render prop and fixed applyRouterMiddleware types 2016-10-27 15:35:59 +03:00
feng zhi hao
38960a30f9 add @types/history dependency 2016-10-21 16:43:35 +08:00
Stefan Dobrev
ce70e15ee4 [react-router] Update getComponents signatures (#11319)
Update `getComponent(s)` all over the place. See #9530 for more info.
2016-09-28 22:02:02 +09:00
Andy Hanson
b02b9903cc Merge commit 'origin/master~100' into merge_21sep 2016-09-21 08:13:15 -07:00
Andy
be4a803ad0 Merge pull request #10697 from minodisk/update-react-router
Update react-router
2016-09-20 11:44:47 -07:00
Andy
e3c57dbe79 Merge pull request #11215 from thegaryroberts/patch-1
Update react-router.d.ts
2016-09-19 11:11:33 -07:00
Andy Hanson
28ef3d201b Remove <reference path="../xxx/xxx.d.ts"> from definitions files and replace it with import * as Xxx from "xxx" or <reference types="xxx"/> 2016-09-16 08:59:57 -07:00