From 939513e7a67b94ca3bf2a2ba0cd70eb1684e509f Mon Sep 17 00:00:00 2001 From: John Knox Date: Wed, 17 Jul 2019 07:15:16 -0700 Subject: [PATCH] Add dateformat flow stub Summary: `flow-typed create-stub dateformat` Reviewed By: passy Differential Revision: D16334489 fbshipit-source-id: d72b89a6578913bb799f93038455e16e386a7422 --- flow-typed/npm/dateformat_vx.x.x.js | 32 +++++++++++++++++++++++++++++ src/utils/CertificateProvider.js | 1 - 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 flow-typed/npm/dateformat_vx.x.x.js diff --git a/flow-typed/npm/dateformat_vx.x.x.js b/flow-typed/npm/dateformat_vx.x.x.js new file mode 100644 index 000000000..c17fff8ff --- /dev/null +++ b/flow-typed/npm/dateformat_vx.x.x.js @@ -0,0 +1,32 @@ +// flow-typed signature: 3d651fc79523c92efe95077d29cac82f +// flow-typed version: <>/dateformat_v3.0.3/flow_v0.102.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'dateformat' + * + * Fill this stub out by replacing all the `any` types. + * + * Once filled out, we encourage you to share your work with the + * community by sending a pull request to: + * https://github.com/flowtype/flow-typed + */ + +declare module 'dateformat' { + declare module.exports: any; +} + +/** + * We include stubs for each file inside this npm package in case you need to + * require those files directly. Feel free to delete any files that aren't + * needed. + */ +declare module 'dateformat/lib/dateformat' { + declare module.exports: any; +} + +// Filename aliases +declare module 'dateformat/lib/dateformat.js' { + declare module.exports: $Exports<'dateformat/lib/dateformat'>; +} diff --git a/src/utils/CertificateProvider.js b/src/utils/CertificateProvider.js index ccd180d0e..f571a9f76 100644 --- a/src/utils/CertificateProvider.js +++ b/src/utils/CertificateProvider.js @@ -21,7 +21,6 @@ import iosUtil from '../fb-stubs/iOSContainerUtility'; import {reportPlatformFailures} from './metrics'; import {getAdbClient} from './adbClient'; import * as androidUtil from './androidContainerUtility'; -// $FlowFixMe T47375728 import dateFormat from 'dateformat'; const writeFile = promisify(fs.writeFile); const exists = promisify(fs.exists);