@toreda/time
Version:
Simple, small footprint library for common time operations and converting between units of time.
11 lines (10 loc) • 383 B
TypeScript
import type { TimeUnit } from '../unit';
/**
* Maps common time unit aliases (e.g. `'day'`, `'sec'`, `'minutes'`) to
* their canonical `TimeUnit` value. Intended for user-facing functions
* that accept loose alias input; core functions should use canonical
* `TimeUnit` values directly.
*
* @category Time Units
*/
export declare const timeUnitAliases: Map<string, TimeUnit>;