diff --git a/react-hot-loader/index.d.ts b/react-hot-loader/index.d.ts index aeeb958a93..202566a5b4 100644 --- a/react-hot-loader/index.d.ts +++ b/react-hot-loader/index.d.ts @@ -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 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -13,7 +13,7 @@ declare module "react-hot-loader" { export interface AppContainerProps { children?: React.ReactElement, - errorReporter?: React.StatelessComponent + errorReporter?: React.ComponentClass | React.StatelessComponent } export class AppContainer extends React.Component {} diff --git a/react-hot-loader/react-hot-loader-tests.tsx b/react-hot-loader/react-hot-loader-tests.tsx index 78da915b20..08866fcbb9 100644 --- a/react-hot-loader/react-hot-loader-tests.tsx +++ b/react-hot-loader/react-hot-loader-tests.tsx @@ -18,7 +18,7 @@ class AppContainerTest extends React.Component { public render() { return (
- +