[react] Deprecate React.Props<T>; Add React.*Attributes

This commit is contained in:
Vincent Siao
2016-03-14 01:46:13 -07:00
parent d22516f9f0
commit 92cf86a3e2
3 changed files with 58 additions and 39 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
/// <reference path="react-global.d.ts" />
interface Props extends React.Props<MyComponent> {
interface Props {
hello: string;
world?: string;
foo: number;
@@ -24,7 +24,7 @@ interface MyComponent extends React.Component<Props, State> {
reset(): void;
}
var props: Props = {
var props: Props & React.ClassAttributes<{}> = {
key: 42,
ref: "myComponent42",
hello: "world",