Commit Graph

13 Commits

Author SHA1 Message Date
Yui
13b5f660ba Include ElementChildrenAttribute
This is a new feature in 2.3 as TypeScript will be able to check JSX.children
2017-05-04 14:04:25 -07:00
Jane Chu
4854ed7cb5 fix(react): add cite attribute 2017-04-24 15:14:20 -07:00
Philip Jackson
940b36aea4 React: Use specific event type for nativeEvent property (#15610)
* Use specific event type for nativeEvent property

Allows event handlers to fully use the `ev.nativeEvent` property without casting. But it does make the `React.MouseEvent` type slightly more complicated.

* Maintain backwards compatibility of SyntheticEvent type

TypeScript 2.3 should be adding type parameter defaults, which allows the `nativeEvent` property to be made generic but without breaking existing code.

* Override nativeEvent in the more specific event types

Overriding nativeEvent in this way maintains backwards compatibility and doesn't depend on bleeding-edge TypeScript features.
2017-04-17 09:08:50 -07:00
Wayne Dela Cruz
e4c860c1ba React specific typings for css position (#15575)
* React CSSProperties position made specific

* Add test for css position
2017-04-17 08:34:07 -07:00
Andy Hanson
d58e6ecce5 Merge branch 'cleanup-react-readme' of https://github.com/ericanderson/DefinitelyTyped into ericanderson-cleanup-react-readme 2017-04-17 08:15:55 -07:00
Dovydas Navickas
9e35640e2d Update README.md 2017-04-08 22:56:07 +03:00
Eric Anderson
68094fa835 Add myself as an author for react 2017-03-31 09:11:31 -04:00
Eric Anderson
2950b6bbe7 Remove old warnings in react readme 2017-03-31 09:00:17 -04:00
Wayne Dela Cruz
a3b39389cd react use TS 2.2 2017-03-31 09:45:49 +08:00
Wayne Dela Cruz
7ca4941d99 Use double quotes instead of single quotes 2017-03-30 19:55:26 +08:00
Wayne Dela Cruz
6f8a10f1a1 Wrote tests for css overflow props 2017-03-28 21:12:19 +08:00
Wayne Dela Cruz
51fda94d04 Add specific typings to css overflow props
CSS overflows are any one of the ff. auto, hidden, scroll, visible

Applied those to overflow, overlowX, and overflowY
2017-03-28 21:10:03 +08:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00