flowconfig TsStub

Reviewed By: passy

Differential Revision: D16647501

fbshipit-source-id: ed92153fcf48574c5ae032131cb8d8dc4b00baf2
This commit is contained in:
Daniel Büchele
2019-08-05 10:25:52 -07:00
committed by Facebook Github Bot
parent 5aadbde4b9
commit 262b1fd4a9
2 changed files with 5 additions and 8 deletions

View File

@@ -9,7 +9,6 @@
.*/website/.* .*/website/.*
<PROJECT_ROOT>/src/plugins/sections/d3/d3.js$ <PROJECT_ROOT>/src/plugins/sections/d3/d3.js$
.*\.tsx .*\.tsx
.*\.ts
[libs] [libs]
flow-typed flow-typed
@@ -21,15 +20,10 @@ module.use_strict=true
emoji=true emoji=true
all=true all=true
include_warnings=true include_warnings=true
module.name_mapper='^\(.*\)\.tsx$' -> 'TsStub'
module.name_mapper='flipper' -> '<PROJECT_ROOT>/src/index.js' module.name_mapper='flipper' -> '<PROJECT_ROOT>/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 suppress_type=$FlowFixMe
module.system=haste
[strict] [strict]
deprecated-type deprecated-type

3
flow-typed/TsStub.js vendored Normal file
View File

@@ -0,0 +1,3 @@
declare module TsStub {
declare module.exports: any;
}