Remove overload (#25150)

It should not be a valid case for createContext to take no arguments.
This commit is contained in:
Sean Scally 2018-04-26 15:48:32 -07:00 committed by Wesley Wigham
parent 9132b5732b
commit 4891ddcd3a

View File

@ -261,7 +261,6 @@ declare namespace React {
defaultValue: T,
calculateChangedBits?: (prev: T, next: T) => number
): Context<T>;
function createContext<T>(): Context<T | undefined>;
function isValidElement<P>(object: {} | null | undefined): object is ReactElement<P>;