mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
react-hot-loader - Added library version number, make errorReporter compatible with non-stateless React components
This commit is contained in:
Vendored
+2
-2
@@ -1,4 +1,4 @@
|
||||
// Type definitions for react-hot-loader
|
||||
// Type definitions for react-hot-loader 3.0.0-beta.6
|
||||
// Project: https://github.com/gaearon/react-hot-loader
|
||||
// Definitions by: Jacek Jagiello <https://github.com/jacekjagiello/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -13,7 +13,7 @@ declare module "react-hot-loader" {
|
||||
|
||||
export interface AppContainerProps {
|
||||
children?: React.ReactElement<any>,
|
||||
errorReporter?: React.StatelessComponent<ErrorReporterProps>
|
||||
errorReporter?: React.ComponentClass<ErrorReporterProps> | React.StatelessComponent<ErrorReporterProps>
|
||||
}
|
||||
|
||||
export class AppContainer extends React.Component<AppContainerProps, {}> {}
|
||||
|
||||
@@ -18,7 +18,7 @@ class AppContainerTest extends React.Component<any, any> {
|
||||
public render() {
|
||||
return (
|
||||
<div>
|
||||
<AppContainer errorReporter={ErrorReporter}>
|
||||
<AppContainer errorReporter={ErrorReporterComponent}>
|
||||
<DummyComponent />
|
||||
</AppContainer>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user