Commit Graph
321 Commits
Author SHA1 Message Date
EmmaandGitHub dc60ef6f0e add new justify-content property
See https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
2017-02-25 00:29:57 -07:00
Kanchalai Tanglertsampan ac7c9faeee Add slot HTML attributes 2017-02-21 14:35:48 -08:00
Zhengbo LiandGitHub b7ebd9c00e Merge pull request #14323 from digiguru/svg-animate-tag
Svg animate tag
2017-02-17 13:33:17 -08:00
Yuya Tanaka 580af100e1 react: Use type parameter for currentTarget of animation events 2017-02-15 03:38:11 +09:00
Arthur OzgaandGitHub a15be2eed2 Merge pull request #14424 from Strate/patch-2
react: make defaultProps Partial<P>
2017-02-10 14:22:28 -08:00
Artur Eshenbrener e875fc829a react: make defaultProps Partial<P>
Added a test, which ensures that defaultProps are Partial
2017-02-10 11:02:43 +03:00
Arthur OzgaandGitHub 4916c5a23d Merge pull request #14234 from tkrotoff/react-fontWeight-initial
Fix React fontWeight CSS property
2017-02-08 13:28:21 -08:00
Tanguy Krotoff eef6cb6ae4 Missing semicolon 2017-02-08 04:29:58 +01:00
Tanguy Krotoff a1d9875fd8 Introduce CSSLength type to make CSS properties more explicit
Also add tests for SVG specific style attribute declarations
2017-02-08 04:29:38 +01:00
Tanguy Krotoff 14c5647206 Missing new line 2017-02-08 04:27:03 +01:00
Tanguy Krotoff 72e864ff03 Add CSSWideKeyword to all CSS properties 2017-02-08 04:27:03 +01:00
Tanguy Krotoff efbbb0e0c9 Introduce CSSPercentage type to make CSS properties more explicit 2017-02-08 04:27:03 +01:00
Tanguy Krotoff 9ecb61ea76 Add unit tests for some React.CSSProperties 2017-02-08 04:27:03 +01:00
Kanchalai Tanglertsampan 47f5a06ab0 Revert "Add tests and fix broken test"
This reverts commit d79f340d57.
2017-02-06 17:05:24 -08:00
Kanchalai Tanglertsampan a3dd726ba3 Revert "Fix #11566 allows SFC to return null"
This reverts commit 81730dfd22.
2017-02-06 17:05:14 -08:00
Artur EshenbrenerandGitHub d0128ad516 react: make defaultProps Optional
Actually, defaultProps is `Optional<P>`
2017-02-03 18:13:17 +03:00
Patricio Zavolinsky ec9bf7f229 React: Constrain typed changed events to inputs, selects and textareas 2017-01-31 09:36:05 +00:00
Tanguy Krotoff bcf5905e75 Fix fontWeight CSS property 2017-01-30 15:16:43 +01:00
digiguruandGitHub 977dcb5098 Adds contribution 2017-01-28 22:00:23 +00:00
digiguruandGitHub 17befb697c Adds animate tag to the typings
This should fix https://github.com/DefinitelyTyped/DefinitelyTyped/issues/14321
2017-01-28 21:53:44 +00:00
Kanchalai Tanglertsampan d79f340d57 Add tests and fix broken test 2017-01-27 15:23:51 -08:00
Kanchalai Tanglertsampan 81730dfd22 Fix #11566 allows SFC to return null 2017-01-26 16:36:27 -08:00
Daniel RosenwasserandGitHub 6a8f8363f5 Merge pull request #14202 from jwbay/react-props-inference
React - Fix type inference for props. Reverts 80e4d8b/#11612. Fixes #14176
2017-01-25 10:26:42 -08:00
Fredrik NicolandFredrik Nicol 928c0be342 Add constructor arguments in ClassType 2017-01-24 06:51:47 +01:00
Justin Bay 1001a8eae9 Revert 80e4d8b/#11612. Fixes #14176 2017-01-23 19:33:00 -05:00
Eric AndersonandMohamed 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
John ReillyandGitHub a6d113976a Added @pzavolinsky and @bbenezech as maintainers 2017-01-23 12:20:37 +00:00
Patricio ZavolinskyandPatricio Zavolinsky cfe2a21973 React: add typed target for change events 2017-01-19 08:59:57 +00:00
AndyandGitHub 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
Pat SissonsandAndy 5d8626c1d7 fixing incorrect version header, this should resolve the current npm version issue (#13834) (#13921) 2017-01-10 18:06:54 -08:00
AndyandGitHub 76a710cc94 Rename test files to be consistent (#13882) 2017-01-10 06:33:06 -08:00
AndyandGitHub ae1501a00e Remove outdated text from react readme. (#13824)
We store different react typings in different directories now.
2017-01-06 17:41:08 -08:00
Andy Hanson 0bac9474aa Merge branch 'types-2.0' into merge_jan6 2017-01-06 07:39:21 -08:00
Nathan WongandAndy 78edcdb985 Sync SVG attributes to React 15 (#13101)
* Sync SVG attributes to React 15

* remove old/new distinction and alphabetize list
2017-01-06 07:18:59 -08:00
Artur EshenbrenerandAndy 95dd4d0417 react: use more narrow constructor definition (#13769)
This has almost no sense for typescript, but very useful for ide.
At least webstorm uses first constructor definition with `Generate constructor action`.
And, I think it is good to define more narrow method definition earlier that more general.
2017-01-06 06:52:41 -08:00
Andy HansonandAndy Hanson 8200deb71d react: Add link about SyntheticEvent.target 2017-01-01 17:19:11 -08:00
AndyandGitHub 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
Mateusz Lewandowski d89e3032bd Missing stroke parameters in SVG properties 2016-12-11 17:09:57 +01:00
Johannes SchicklingandGitHub f9308bf248 Added playsInline property as introduced in React 15.3.2 2016-12-06 22:39:25 +01:00
Paul van BrenkandGitHub f0b80f7a84 Merge pull request #12411 from epabst/dedup-react-2
Dedup createElement overloads in react/index.d.ts.
2016-12-05 14:49:53 -08:00
Paul van Brenk 1996e6a1a6 Fix issues and merge more changes from master 2016-11-30 13:54:18 -08:00
Paul van Brenk 40e416a33c Merge master into typings-2.0 2016-11-29 16:51:33 -08:00
Stepan MikhaylyukandGitHub 05038b3f91 added support for noindex html tag
added support for noindex html tag
see https://github.com/facebook/react/issues/5882
2016-11-24 16:19:00 +03:00
Marius SchulzandGitHub cc35a9c361 React: add "onReset" form event 2016-11-21 18:58:05 +01:00
Tanguy Krotoff 915c0ea1e7 Fix indentation 2016-11-19 16:44:02 +01:00
Dibyo Majumdar 78d94473f1 Add xmlns and other attributes to SVGAttributes 2016-11-16 16:06:55 -08:00
Dibyo Majumdar 7838a9c0fb Add xmlns and other attributes to SVGAttributes 2016-11-16 16:05:59 -08:00
Eric Pabst 425bf74b42 Fix indentation and reorder intersection types to avoid conflicts in ts2kt. 2016-11-12 17:48:32 -07:00
Eric Pabst 322ed3c618 Dedup createElement and createFactory overloads in react/index.d.ts.
This is causing issues for ts2kt where it results in duplicate Kotlin methods.
2016-11-12 17:44:59 -07:00
Kanchalai Tanglertsampan 00c4f8e152 Merge branch 'types-2.0' into mergeMaster_11/08 2016-11-10 16:33:23 -08:00