@types/ms.macro
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/ms.macro

Weekly Downloads

13,622

Version

2.0.2

License

MIT

Unpacked Size

3.22 kB

Total Files

5

Last publish

Collaborators

  • types