npm install --save @types/ms.macro
This package contains type definitions for ms.macro (https://github.com/knpwrs/ms.macro#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ms.macro.
/**
* Convert various time formats to milliseconds at build time in Babel.
* @param value The value to convert
* @example
* const ONE_DAY = ms('1 day');
* const TWO_DAYS = ms('2 days');
* @example
* const ONE_DAY = ms`1 day`;
* const TWO_DAYS = ms`2 days`;
*/
declare function ms(value: string | TemplateStringsArray): number;
export = ms;
- Last updated: Fri, 04 Oct 2024 16:42:27 GMT
- Dependencies: none
These definitions were written by Cameron Knight.