diff --git a/landing/.flowconfig b/landing/.flowconfig index cbb3ecb50..493eb1b62 100644 --- a/landing/.flowconfig +++ b/landing/.flowconfig @@ -1,25 +1,31 @@ +[include] +../lib + +[libs] +../lib/flow-typed + [options] module.name_mapper.extension='css' -> '/flow/CSSModule.js.flow' esproposal.optional_chaining=enable esproposal.nullish_coalescing=enable [lints] sketchy-null-number=warn sketchy-null-mixed=warn sketchy-number=warn untyped-type-import=warn nonstrict-import=warn deprecated-type=warn unsafe-getters-setters=warn unnecessary-invariant=warn signature-verification-failure=warn deprecated-utility=error [strict] deprecated-type nonstrict-import sketchy-null unclear-type unsafe-getters-setters untyped-import untyped-type-import diff --git a/landing/landing.react.js b/landing/landing.react.js index 49277823e..88582f057 100644 --- a/landing/landing.react.js +++ b/landing/landing.react.js @@ -1,9 +1,9 @@ // @flow import * as React from 'react'; -function Landing() { +function Landing(): React.Node { return Hello World!; } export default Landing; diff --git a/landing/root.js b/landing/root.js index acd6eea41..faae0c968 100644 --- a/landing/root.js +++ b/landing/root.js @@ -1,12 +1,14 @@ // @flow import * as React from 'react'; import { hot } from 'react-hot-loader/root'; import Landing from './landing.react'; function RootComponent() { return ; } -export default hot(RootComponent); +const HotReloadingRootComponent: React.ComponentType<{||}> = hot(RootComponent); + +export default HotReloadingRootComponent;