extenso
Version:
Uma biblioteca avançada para escrever números por extenso (em português).
13 lines (12 loc) • 635 B
TypeScript
import type { ExtensoGender, ExtensoScale } from '../types';
/**
* Writes a number in words with optional decimal part and gender
* @param integer - The integer part of the number
* @param decimal - The decimal part of the number
* @param scale - The scale to use (SHORT or LONG)
* @param gender - The gender to use for the number (MALE or FEMALE)
* @param ordinal - Whether to write the number as an ordinal
* @returns The complete number written in words
*/
declare const writeNumber: (integer: string, decimal?: string, scale?: ExtensoScale, gender?: ExtensoGender, ordinal?: boolean) => string;
export default writeNumber;