From 2bfcbef012ea400f1973254b872c99ced87b0600 Mon Sep 17 00:00:00 2001 From: Jacek Jagiello Date: Sat, 12 Nov 2016 10:40:45 +0100 Subject: [PATCH] react-hot-loader - Added library version number, make errorReporter compatible with non-stateless React components --- react-hot-loader/index.d.ts | 4 ++-- react-hot-loader/react-hot-loader-tests.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 (
- +