mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-28 12:30:21 +08:00
react - Replaced any with {} for context
See https://github.com/Microsoft/TypeScript/issues/4126
This commit is contained in:
1 parent
b0d313e1b1
commit
1a9ee560ef
5 files changed
+7
-3
No files matched your search
@@ -82,6 +82,8 @@ class ModernComponent extends React.Component<Props, State>
|
||||
someOtherValue: React.PropTypes.string
|
||||
}
|
||||
|
||||
context: Context;
|
||||
|
||||
getChildContext() {
|
||||
return {
|
||||
someOtherValue: 'foo'
|
||||
|
||||
Reference in new issue
Block a user