|
10 달 전 | |
---|---|---|
.. | ||
LICENSE | 10 달 전 | |
README.md | 10 달 전 | |
index.d.ts | 10 달 전 | |
package.json | 10 달 전 |
npm install --save @types/ms
This package contains type definitions for ms (https://github.com/zeit/ms).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ms.
/**
* Short/Long format for `value`.
*
* @param {Number} value
* @param {{long: boolean}} options
* @return {String}
*/
declare function ms(value: number, options?: { long: boolean }): string;
/**
* Parse the given `value` and return milliseconds.
*
* @param {String} value
* @return {Number}
*/
declare function ms(value: string): number;
export = ms;
These definitions were written by Zhiyuan Wang.