![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | LICENSE | a year ago | 1.1K | |
![]() | README.md | a year ago | 926 | 595aea1 more query options + view options [كارل مبارك] |
![]() | index.d.ts | a year ago | 366 | |
![]() | package.json | a year ago | 769 | afd0ccc remove unused [كارل مبارك] |
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.