Update react.d.ts

Having context as {} did not allow me access context members via .notation.
This commit is contained in:
Tomas Trescak
2016-10-25 09:34:16 +11:00
committed by GitHub
parent a03290261a
commit ae7666402d

2
react/react.d.ts vendored
View File

@@ -173,7 +173,7 @@ declare namespace __React {
// on the existence of `children` in `P`, then we should remove this.
props: P & { children?: ReactNode };
state: S;
context: {};
context: any;
refs: {
[key: string]: ReactInstance
};