UNPKG

@cute-dw/core

Version:

This TypeScript library is the main part of a more powerfull package designed for the fast WEB software development. The cornerstone of the library is the **DataStore** class, which might be useful when you need a full control of the data, but do not need

37 lines (36 loc) 887 B
export type WordMappins = { word: string; values?: number[]; }; export type NumberParts = { integer: WordMappins[]; fraction: WordMappins[]; }; export type CurrencyOptions = { parts: NumberParts; useExacts?: boolean; point?: string; only?: string; }; export type DigitalWordsConfig = { groups: { [n: number]: WordMappins[]; }; ones: string[]; tens: string[]; teens: string[]; hundreds: string[]; exactWordsMapping?: { [n: number]: string; }; currency: { [code: string]: CurrencyOptions; }; texts: { minus?: string; tenSplitter?: string; delim1000?: string; }; }; /** Dictionary of localized digital words for `NumberSpeller` class */ export declare const NumberSpellerDictionary: Map<string, Readonly<DigitalWordsConfig>>;