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
Shi Yan and GitHub
d4b2e37e1c
Export LocationDescriptor
2016-11-17 21:43:53 +08:00
Shi Yan and GitHub
4499a752a5
Fixed LocationDescriptor and pathOrLoc types.
2016-11-17 15:08:46 +08:00
Yui and GitHub
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 and GitHub
38960a30f9
add @types/history dependency
2016-10-21 16:43:35 +08:00
Stefan Dobrev and Masahiro Wakame
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 and GitHub
be4a803ad0
Merge pull request #10697 from minodisk/update-react-router
...
Update react-router
2016-09-20 11:44:47 -07:00
Andy and GitHub
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
zhengbli
c2a54db3e9
Merge branch 'master' into types-2.0
...
# Conflicts:
# amcharts/AmCharts.d.ts
# angular-gettext/angular-gettext.d.ts
# angular-jwt/angular-jwt.d.ts
# angular-material/angular-material.d.ts
# angularjs/angular.d.ts
# auth0-js/auth0-js.d.ts
# aws-lambda/aws-lambda.d.ts
# aws-sdk/aws-sdk.d.ts
# azure-mobile-apps/azure-mobile-apps.d.ts
# azure-mobile-services-client/AzureMobileServicesClient.d.ts
# blessed/blessed-tests.ts
# blessed/blessed.d.ts
# bootbox/bootbox.d.ts
# bowser/bowser.d.ts
# cache-manager/cache-manager.d.ts
# chai-things/chai-things.d.ts
# colors/colors.d.ts
# cordova/cordova-tests.ts
# cordova/plugins/Contacts.d.ts
# cordova/plugins/FileSystem.d.ts
# couchbase/couchbase.d.ts
# cucumber/cucumber-tests.ts
# cucumber/cucumber.d.ts
# d3/d3.d.ts
# dojo/dojo.d.ts
# dustjs-linkedin/dustjs-linkedin.d.ts
# esprima/esprima.d.ts
# express-serve-static-core/express-serve-static-core.d.ts
# express-session/express-session.d.ts
# fetch-mock/fetch-mock.d.ts
# fs-extra/fs-extra.d.ts
# fullCalendar/fullCalendar.d.ts
# github-electron/github-electron.d.ts
# gulp-uglify/gulp-uglify.d.ts
# gulp/gulp.d.ts
# highcharts/highcharts.d.ts
# imap/imap.d.ts
# incremental-dom/incremental-dom.d.ts
# inversify/inversify.d.ts
# ionic/ionic.d.ts
# ioredis/ioredis.d.ts
# isomorphic-fetch/isomorphic-fetch-tests.ts
# jake/jake.d.ts
# joi/joi.d.ts
# jquery-mockjax/jquery-mockjax.d.ts
# jquery/jquery.d.ts
# js-data-http/js-data-http-tests.ts
# js-data-http/js-data-http.d.ts
# js-data/js-data.d.ts
# jsdom/jsdom.d.ts
# jsts/jsts-tests.ts
# knex/knex.d.ts
# koa-favicon/koa-favicon.d.ts
# koa-router/koa-router-tests.ts
# koa-router/koa-router.d.ts
# lodash/lodash.d.ts
# mailparser/mailparser.d.ts
# maquette/maquette.d.ts
# material-ui/material-ui.d.ts
# matter-js/matter-js.d.ts
# moment/moment.d.ts
# mongoose-promise/mongoose-promise-tests.ts
# mongoose/mongoose-tests.ts
# mongoose/mongoose.d.ts
# multer/multer.d.ts
# ncp/ncp.d.ts
# nock/nock.d.ts
# node/node-tests.ts
# node/node.d.ts
# nvd3/nvd3.d.ts
# object-assign/object-assign.d.ts
# openlayers/openlayers.d.ts
# parse/parse.d.ts
# pdf/pdf.d.ts
# pdfkit/pdfkit.d.ts
# pg/pg.d.ts
# pixi.js/pixi.js.d.ts
# progress/progress.d.ts
# pusher-js/pusher-js.d.ts
# quill/quill-tests.ts
# quill/quill.d.ts
# radium/radium.d.ts
# ravenjs/ravenjs-tests.ts
# react-dropzone/react-dropzone.d.ts
# react-mdl/react-mdl.d.ts
# react-native/react-native.d.ts
# react-notification-system/react-notification-system.d.ts
# react-router/history-tests.ts
# react-router/react-router-tests.tsx
# react-router/react-router.d.ts
# react-select/react-select-tests.tsx
# react-select/react-select.d.ts
# react/react.d.ts
# redux-form/redux-form.d.ts
# request-promise/request-promise.d.ts
# resolve-from/resolve-from.d.ts
# riot-api-nodejs/riot-api-nodejs.d.ts
# sanitize-html/sanitize-html.d.ts
# segment-analytics/segment-analytics.d.ts
# simple-assign/simple-assign-tests.ts
# simple-assign/simple-assign.d.ts
# slate-irc/slate-irc.d.ts
# soap/soap.d.ts
# socket.io/socket.io.d.ts
# sql.js/sql.js-tests.ts
# sql.js/sql.js.d.ts
# steam/steam.d.ts
# stylus/stylus.d.ts
# swiper/swiper.d.ts
# tedious/tedious.d.ts
# threejs/three.d.ts
# twilio/twilio.d.ts
# underscore/underscore.d.ts
# ws/ws.d.ts
# yeoman-generator/yeoman-generator.d.ts
2016-09-14 18:44:24 -07:00
Marcin Kral and Masahiro Wakame
874a60bc68
Add Pure and Stateless components to withRouter definition ( #10959 )
...
* Add Pure and Stateless components to withRouter definition
* Add missing type parameter
2016-09-14 20:39:53 +09:00
Gary Roberts and GitHub
feae95f169
Update react-router.d.ts
...
Changed react-router RouteComponentProps comment to properly reflect routeParams resolving to type string (not number). As per documentation here:
https://github.com/ReactTraining/react-router/blob/master/docs/API.md#routeparams
2016-09-14 09:03:34 +01:00
Ryan Cavanaugh and GitHub
e718ddaf48
Merge pull request #10869 from jtmthf/master
...
react-router: Fix for MatchState
2016-08-30 20:12:31 -07:00
Jan Bevers
b83a05d335
Added missing method getCurrentLocation to react-router/history
2016-08-30 17:07:55 +02:00
Jack Moore
0bfbcce5f3
Added router and createElement to MatchState. Added tests to demonstrate SSR using match and RouterContext
2016-08-28 18:27:36 -05:00
Andy Hanson
a2d726de56
Apply some changes that had been applied to react-router.d.ts instead of index
...
(This is everything from https://github.com/DefinitelyTyped/DefinitelyTyped/commits/types-2.0/react-router/react-router.d.ts that came after index's creation on May 9)
2016-08-24 11:44:24 -07:00
Andy Hanson
69e4f6f196
Merge branch 'types-2.0' into duplicate_react_router
2016-08-23 07:42:00 -07:00
minodisk
35324f1700
Add applyRouterMiddleware to react-router
2016-08-19 09:46:37 +09:00
minodisk
7a7510a12d
Format react-router.d.ts
2016-08-19 09:46:30 +09:00
Paul van Brenk and GitHub
f82fc68a94
Merge pull request #10662 from DefinitelyTyped/types-2.0-20160816
...
Types 2.0 20160816
2016-08-17 15:45:00 -07:00
Mohamed Hegazy and GitHub
5c91ef6ad6
Fix react-router use of react ( #10663 )
2016-08-17 09:44:50 -07:00
Paul van Brenk
145b71ff22
Clean up for typings-2.0
2016-08-16 16:20:29 -07:00
Paul van Brenk
68eea6297d
Merge branch 'master' into types-2.0-20160816
...
# Conflicts:
# acl/index.d.ts
# anydb-sql-migrations/anydb-sql-migrations.d.ts
# asana/asana.d.ts
# blue-tape/blue-tape-tests.ts
# bluebird-retry/bluebird-retry-tests.ts
# bluebird-retry/bluebird-retry.d.ts
# bluebird/index.d.ts
# bookshelf/bookshelf.d.ts
# consolidate/consolidate.d.ts
# documentdb/documentdb.d.ts
# fs-extra-promise/fs-extra-promise.d.ts
# graphene-pk11/graphene-pk11.d.ts
# inline-css/inline-css.d.ts
# inversify/index.d.ts
# java/java-tests.ts
# karma/karma.d.ts
# knex/knex.d.ts
# koa-router/koa-router.d.ts
# libxmljs/libxmljs-tests.ts
# lru-cache/lru-cache.d.ts
# mz/index.d.ts
# node-mysql-wrapper/node-mysql-wrapper-tests.ts
# node-mysql-wrapper/node-mysql-wrapper.d.ts
# nodemailer/nodemailer.d.ts
# pify/pify-tests.ts
# project-oxford/project-oxford-tests.ts
# project-oxford/project-oxford.d.ts
# react-router/react-router-tests.tsx
# react-scroll/react-scroll.d.ts
# redlock/redlock.d.ts
# request-promise/index.d.ts
# rethinkdb/rethinkdb.d.ts
# sequelize/sequelize.d.ts
# stamplay-js-sdk/index.d.ts
# stripe-node/stripe-node.d.ts
# umzug/umzug.d.ts
2016-08-16 13:56:22 -07:00
Andy Hanson
fe2e8b30e8
Remove old react-router.d.ts that was shadowing newer index.d.ts
2016-08-16 11:26:26 -07:00