UNPKG

tanisa

Version:

A utility to convert Malagasy 🇲🇬 numbers, dates, and times into their word representations.

15 lines (14 loc) • 453 B
import { MalagasyNumerals } from './dictionary'; export interface TanisaOptions { ignoreDecimal?: boolean; decimalPlaces?: number; } export type LargeNumberUnit = (typeof MalagasyNumerals.LARGE_NUMBER_UNITS)[number]; export type DateFormat = 'short' | 'long'; export interface TanisaDateOptions { format?: DateFormat; } export type TimePrecision = 'minutes' | 'seconds'; export interface TanisaTimeOptions { precision?: TimePrecision; }