Philipp Zins
984933df7c
removed PartialRouteComponentProps
2017-03-23 21:16:51 +01:00
Philipp Zins
0d06ba4519
updated test and component prop of router
2017-03-23 12:53:32 +01:00
Philipp Zins
fac784746d
add null as a possible return vale to matchPath
2017-03-23 08:36:05 +01:00
Philipp Zins
a068733246
fixed test
2017-03-23 08:30:18 +01:00
Donald Pipowitch and GitHub
215c9573b9
fixed match interface
2017-03-22 21:12:10 +01:00
Tanguy Krotoff
029e384fa0
Require TypeScript 2.2 due to the use of object
2017-03-16 09:52:31 +01:00
Tanguy Krotoff
5da935de2b
Move all files from examples to test directory
2017-03-16 09:32:41 +01:00
Tanguy Krotoff
ee0f49ec1c
Improve headers
2017-03-15 11:11:30 +01:00
Tanguy Krotoff
1fb801b415
Update React Router to version 4.0
2017-03-14 17:32:46 +01:00
('3') and Mohamed Hegazy
2c98442b6f
react-router: Improve typing of withRouter ( #15144 )
...
* Improve typing of withRouter
Hoist typings of static methods.
* Fix declaration order
* Add test case
2017-03-13 10:28:21 -07:00
Dovydas Navickas and Mohamed Hegazy
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 and GitHub
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 and GitHub
c1196db216
Merge pull request #14544 from johnnyreilly/master
...
react-router: added routes to RouteComponentProps
2017-02-10 12:51:26 +00:00
John Reilly and GitHub
844f14e366
Update react-router-tests.tsx
2017-02-10 12:45:15 +00:00
John Reilly and GitHub
b274efe1be
Update react-router-tests.tsx
2017-02-10 12:31:25 +00:00
John Reilly and GitHub
0e0bef8276
react-router added routes to RouteComponentProps
2017-02-10 12:25:50 +00:00
John Reilly and GitHub
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 and GitHub
1c72cb3812
Update react-router-tests.tsx
2017-02-10 10:14:12 +00:00
John Reilly and GitHub
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 and GitHub
93b63ea6e9
Update to react-router 3.0.0
2017-01-27 17:24:51 +00:00
John Reilly and GitHub
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 and Mohamed Hegazy
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 and GitHub
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 and GitHub
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 and Andy
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 and Sheetal Nandi
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 and Sheetal Nandi
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 and GitHub
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 and GitHub
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