Add dateformat flow stub

Summary: `flow-typed create-stub dateformat`

Reviewed By: passy

Differential Revision: D16334489

fbshipit-source-id: d72b89a6578913bb799f93038455e16e386a7422
This commit is contained in:
John Knox
2019-07-17 07:15:16 -07:00
committed by Facebook Github Bot
parent 147f120a42
commit 939513e7a6
2 changed files with 32 additions and 1 deletions

32
flow-typed/npm/dateformat_vx.x.x.js vendored Normal file
View File

@@ -0,0 +1,32 @@
// flow-typed signature: 3d651fc79523c92efe95077d29cac82f
// flow-typed version: <<STUB>>/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'>;
}

View File

@@ -21,7 +21,6 @@ import iosUtil from '../fb-stubs/iOSContainerUtility';
import {reportPlatformFailures} from './metrics'; import {reportPlatformFailures} from './metrics';
import {getAdbClient} from './adbClient'; import {getAdbClient} from './adbClient';
import * as androidUtil from './androidContainerUtility'; import * as androidUtil from './androidContainerUtility';
// $FlowFixMe T47375728
import dateFormat from 'dateformat'; import dateFormat from 'dateformat';
const writeFile = promisify(fs.writeFile); const writeFile = promisify(fs.writeFile);
const exists = promisify(fs.exists); const exists = promisify(fs.exists);