Commit Graph

23 Commits

Author SHA1 Message Date
Michael Blaszczyk
242fcd3080 React: Add crossOrigin attribute to ImgHTMLAttributes interface (#23587) 2018-02-13 06:18:06 +00:00
Forbes Lindesay
8f8f6c4392 [react] Use HTMLDialogElement for the dialog node (#23053)
* [react] Use HTMLDialogElement for the dialog node

* Actually add the `open` property

* This update requires typescript 2.6

* Update dependents of react to also require typescript 2.6
2018-02-12 12:55:52 +00:00
Andy
2a9d2f8d59
Convert more "import *" to "import =" (#23446) 2018-02-05 18:27:31 -08:00
Andy
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
craigkovatch
3460f25329 Add all WAI-ARIA 1.1 attributes to React HTMLAttributes (#22582)
* Add WAI-ARIA 1.1 attributes to React typings

* Fix linting errors

* Add 'true' and 'false' options to boolean attributes, remove incorrect 'undefined' options

* Add tests

* Revert incorrect use of $ExpectError
2018-01-24 11:00:17 -08:00
Andy
219dd6df82
Fix 'prefer-readonly' lint failures (#22819) 2018-01-10 14:59:37 -08:00
Sergei Dryganets
d0db614137 Electron Webview tag support added. (#22058) 2018-01-03 13:14:27 -08:00
Eric Anderson
6bf1827a0a Adjust React's setState to work in more edge cases (#22236)
* Adjust React's setState to work in more edge cases

Fixes DefinitelyTyped/DefinitelyTyped#22230
Fixes DefinitelyTyped/DefinitelyTyped#18365

* Restore test and naming I lost
2017-12-15 21:50:19 +00:00
Eric Anderson
62c2219a6e Fix setState to work in callback form and to allow partial intellisense (#22127)
* Fix setState to work in callback form and to allow partial intellisense

* Fix lint and add tests

* Fix more lint

* Fixing more lint errors i didnt cause

* Add another test case

* Fix more lint
2017-12-13 23:15:45 +00:00
Mine Starks
c33c4a1ec2
Merge pull request #20937 from kaelig/patch-1
react: Add `as` attribute to AllHTMLAttributes
2017-12-11 17:06:24 -08:00
Nathan Shively-Sanders
d686e159c6
Merge pull request #21381 from kaelig/patch-2
React: Add crossOrigin html attribute to the link element
2017-11-14 15:30:43 -08:00
Kaelig Deloumeau-Prigent
65feecd9a1
React v15: Add crossOrigin html attribute to the link element 2017-11-09 13:23:37 -05:00
Herman-Freund
402d56507f
React v15 - Updated index.d.ts
Updated SVGAttributes' strokeMiterlimit to accept number or string
2017-11-07 16:00:16 -05:00
Avi Vahl
2f8cf5bc0e Backport ts 2.6.1 fix to @types/react@15
For those of us who want to upgrade to the latest version of TypeScript, but haven't gotten around to upgrade our app to react 16 yet.

The bivarianceHack seems like an ugly workaround, but that's how @types/react@16 work atm.
2017-11-03 20:12:28 +02:00
Kaelig Deloumeau-Prigent
17fd72797f Add as attribute to AllHTMLAttributes 2017-10-23 15:16:24 -07:00
Kaelig Deloumeau-Prigent
ed36d5538f react: Add "as" attribute to link elements (#20628)
* Add "as" attribute to links

See corresponding addition here: https://github.com/facebook/react/pull/7582

* Add "as" attribute to link elements in React v16 definition

* Turn commas into semicolons (React 15)

* Turn commas into semicolons (React 16)
2017-10-22 05:38:18 +01:00
Andy
947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Steven
e54b30fafc react-dom: Upgrade to v16.0.0 (#20065)
* Add hydrate method

* Add hydrate to react-dom-tests.ts

* Fix whitespace

* Create shared interface for `render` and `hydrate`

* Add renderToNodeStream and renderToStaticNodeStream methods in ReactDomServer

* Add proper nodejs.readablestream

* Add react-dom v15 for backwards compatibility

* Add proper baseUrl for react-dom/v15

* Change react test _interval type to NodeJS.Timer

* Export the renderer interface

* Change react/v15 to use NodeJS.Timer
2017-10-02 16:08:01 -07:00
Matt Martin
76948bcf31 minor: add "playsinline" attribute to <video/> (#19530)
* adding optional 'playsinline' attribute to HTML5 video tag

* also adding playsinline to v15
2017-09-25 13:50:05 -07:00
York Yao
29ca22c8b0 [React] change createElement declaration (#19858)
* fix https://github.com/Microsoft/TypeScript/issues/15019

* change the stable v15 declaration too

* catch-all case also take string

* add string for test
2017-09-26 01:14:17 +09:00
Andy
cb2dbfbb50 Add ignores for new lint rules (#19504) 2017-09-01 07:47:52 -07:00
Andy
d38fdb9146 react/v15: Fix compile error (#19281)
* react/v15: Fix compile error

* Fix lint
2017-08-23 13:26:55 -07:00
Rich Seviora
178dd15e5e Update for React 16 (#18463) 2017-07-31 14:58:27 -07:00