From 4891ddcd3acda4242bc1cafee3a5000ef9609999 Mon Sep 17 00:00:00 2001 From: Sean Scally Date: Thu, 26 Apr 2018 15:48:32 -0700 Subject: [PATCH] Remove overload (#25150) It should not be a valid case for createContext to take no arguments. --- types/react/index.d.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/types/react/index.d.ts b/types/react/index.d.ts index 123bf15d02..d5060ddce6 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -261,7 +261,6 @@ declare namespace React { defaultValue: T, calculateChangedBits?: (prev: T, next: T) => number ): Context; - function createContext(): Context; function isValidElement

(object: {} | null | undefined): object is ReactElement

;