mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 09:01:45 +08:00
Update react.d.ts
Having context as {} did not allow me access context members via .notation.
This commit is contained in:
2
react/react.d.ts
vendored
2
react/react.d.ts
vendored
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user