DefinitelyTyped/types/react-hot-loader/index.d.ts
guillaumep bde8a4160b Fix AppContainer for react-hot-loader 3.0.0-beta.7
Fixes error when using AppContainer in a TypeScript project:

ERROR in [at-loader] ./node_modules/@types/react-hot-loader/index.d.ts:18:35 
    TS2314: Generic type 'Component<P, S>' requires 2 type argument(s).
2017-06-27 16:54:37 -04:00

19 lines
623 B
TypeScript

// Type definitions for react-hot-loader 3.0
// Project: https://github.com/gaearon/react-hot-loader
// Definitions by: Jacek Jagiello <https://github.com/jacekjagiello/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
import * as React from "react"
interface ErrorReporterProps {
error: any
}
export interface AppContainerProps {
children?: React.ReactElement<any>,
errorReporter?: React.ComponentClass<ErrorReporterProps> | React.StatelessComponent<ErrorReporterProps>
}
export class AppContainer extends React.Component<AppContainerProps, React.ComponentState> {}