Commit Graph
28 Commits
Author SHA1 Message Date
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
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 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
Mohamed Hegazy 03adbf1483 Fix use of FormEvent in antd 2016-07-13 21:51:19 -07:00
Ryan Cavanaugh a5f4d50ccc Fix tsconfig files for new option name / behavior.
Also fixes some inconsistent whitespace.
2016-07-12 13:54:56 -07:00
Raghav Katyal 395c4e1639 Turning on consistent casing flag and fixing failures 2016-06-30 15:14:49 -07:00
Ryan Cavanaugh 5c7992d14b More fixes 2016-05-12 17:19:11 -07:00
Ryan Cavanaugh 924162e813 Fix more __React users 2016-05-12 15:59:30 -07:00
Ryan Cavanaugh bfd400a8f8 Add noEmit to all config files 2016-05-10 12:24:49 -07:00
Ryan Cavanaugh e808e8e062 Remove unneeded references 2016-05-10 12:22:25 -07:00
Ryan Cavanaugh 50387d4046 Change relative reference paths to types references. Errors incoming... 2016-05-09 18:06:27 -07:00
Ryan Cavanaugh 49b1ac6a38 Rename all entry points to index.d.ts and explicitify all file lists 2016-05-09 17:29:10 -07:00
Ryan Cavanaugh ab2b4191c5 Add typesRoot to all config files 2016-05-09 13:52:25 -07:00
Ryan Cavanaugh 81862d240d More fixes 2016-05-04 22:50:05 -07:00
Ryan Cavanaugh ded70421be Turn off strict null checks 2016-05-04 15:08:38 -07:00
Ryan Cavanaugh 69d1929d8a Add tsconfig.json files 2016-05-04 14:14:39 -07:00
Ryan Cavanaugh e7c111c4b7 Merge remote-tracking branch 'upstream/master' into types2.0
Add tsconfig files everywhere

# Conflicts:
#	azure-mobile-services-client/AzureMobileServicesClient.d.ts
#	bookshelf/bookshelf.d.ts
#	hapi/hapi.d.ts
#	helmet/helmet.d.ts
#	mongodb/mongodb.d.ts
#	nock/nock.d.ts
#	react-bootstrap/react-bootstrap.d.ts
#	react-helmet/react-helmet.d.ts
#	restify/restify.d.ts
#	sequelize/sequelize.d.ts
2016-04-27 20:40:21 -07:00
Masahiro Wakame dc6a964a69 Merge pull request #8639 from waywardmonkeys/antd-react-props
antd: No longer extend React.Props.
2016-03-26 20:49:18 +09:00
Masahiro Wakame b7d64857ed Merge pull request #8622 from waywardmonkeys/fix-antd-notification
antd: Fix notification typings.
2016-03-26 20:41:10 +09:00
Bruce Mitchener c21681bbe2 antd: No longer extend React.Props.
This is noted as being deprecated in the React typings, so we will
stop extending it here as it not necessary.
2016-03-19 23:55:49 +07:00
Bruce Mitchener d254c5d772 antd: Add myself to authors list.
bang88 requested that I add myself.
2016-03-19 12:53:02 +07:00
Bruce Mitchener 8f4a4f8e60 antd: Correct type of children property.
This fixes an error that happens with a pending pull request for
the react typings to fix the type of ReactFragment in #8540.
2016-03-19 12:53:02 +07:00
Masahiro Wakame 112ff47951 Merge pull request #8561 from waywardmonkeys/antd-render-methods
antd: Add render methods for all React.Component subclasses.
2016-03-19 14:23:41 +09:00
Bruce Mitchener f5733421f8 antd: Fix notification typings.
These are exported as 'notification' rather than 'Notification'
so we need to use the correct case when providing the typings.
2016-03-18 22:09:14 +07:00
vvakame 56295f5058 replace https://github.com/borisyankov/DefinitelyTyped to https://github.com/DefinitelyTyped/DefinitelyTyped 2016-03-17 00:55:26 +09:00
Bruce Mitchener 45690bc5e4 antd: Add render methods for all React.Component subclasses.
If React's React.Component is made abstract and the render method
flagged as abstract (which would be good), then all of the antd
components need to indicate that they have a render method.
2016-03-16 13:13:43 +07:00
bang e2ccdcb1f5 Update antd typings for v0.12.10 2016-03-14 10:51:48 +08:00
bang ffc4a11f68 Type definitions for Antd 2016-03-11 16:53:35 +08:00