From 262b1fd4a91e6013324f2e90fdc86b28547c0913 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20B=C3=BCchele?= Date: Mon, 5 Aug 2019 10:25:52 -0700 Subject: [PATCH] flowconfig TsStub Reviewed By: passy Differential Revision: D16647501 fbshipit-source-id: ed92153fcf48574c5ae032131cb8d8dc4b00baf2 --- .flowconfig | 10 ++-------- flow-typed/TsStub.js | 3 +++ 2 files changed, 5 insertions(+), 8 deletions(-) create mode 100644 flow-typed/TsStub.js 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; +}