mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Remove overload (#25150)
It should not be a valid case for createContext to take no arguments.
This commit is contained in:
parent
9132b5732b
commit
4891ddcd3a
1
types/react/index.d.ts
vendored
1
types/react/index.d.ts
vendored
@ -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>;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user