From ae7666402d056042e89e605db23c715c0aba07a4 Mon Sep 17 00:00:00 2001 From: Tomas Trescak Date: Tue, 25 Oct 2016 09:34:16 +1100 Subject: [PATCH] Update react.d.ts Having context as {} did not allow me access context members via .notation. --- react/react.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/react.d.ts b/react/react.d.ts index fd7aec5045..5cba332275 100644 --- a/react/react.d.ts +++ b/react/react.d.ts @@ -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 };