UNPKG

cpf-cnpj-formatter

Version:

A simple formatter for CPF and CNPJ numbers

15 lines (14 loc) 381 B
interface ValidationResult { isValid: boolean; error?: string; } /** * Formats and validates a CPF or CNPJ number * @param value - The value to format and validate * @returns An object containing the formatted value and validation result */ export declare const formatCPFCNPJ: (value: string) => { formatted: string; validation: ValidationResult; }; export {};