diff --git a/.flowconfig b/.flowconfig index 90cc271cf..a3e8681d1 100644 --- a/.flowconfig +++ b/.flowconfig @@ -9,7 +9,6 @@ .*/website/.* /src/plugins/sections/d3/d3.js$ .*\.tsx -.*\.ts [libs] flow-typed @@ -21,15 +20,10 @@ module.use_strict=true emoji=true all=true include_warnings=true +module.name_mapper='^\(.*\)\.tsx$' -> 'TsStub' module.name_mapper='flipper' -> '/src/index.js' -module.file_ext=.js -module.file_ext=.jsx -module.file_ext=.json -module.file_ext=.mjs -module.file_ext=.tsx -module.name_mapper.extension='tsx' -> 'any' -module.name_mapper.extension='ts' -> 'any' suppress_type=$FlowFixMe +module.system=haste [strict] deprecated-type diff --git a/flow-typed/TsStub.js b/flow-typed/TsStub.js new file mode 100644 index 000000000..3e1c451c6 --- /dev/null +++ b/flow-typed/TsStub.js @@ -0,0 +1,3 @@ +declare module TsStub { + declare module.exports: any; +}