Code review fixes

This commit is contained in:
Jacek Jagiello 2016-11-15 21:56:00 +01:00
parent 67838c10aa
commit 3561e140bd
2 changed files with 11 additions and 14 deletions

View File

@ -1,20 +1,17 @@
// Type definitions for react-hot-loader 3.0.0-beta.6
// 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
import * as React from "react"
declare module "react-hot-loader" {
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, {}> {}
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, {}> {}

View File

@ -3,7 +3,7 @@
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"strictNullChecks": false,
"strictNullChecks": true,
"baseUrl": "../",
"jsx": "react",
"typeRoots": [