Installation
npm install --save @types/ms.macro
Summary
This package contains type definitions for ms.macro (https://github.com/knpwrs/ms.macro#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ms.macro.
index.d.ts
/**
* 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`;
*/
export default function ms(value: string | TemplateStringsArray): number;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by Cameron Knight.