UNPKG

validations-br

Version:
12 lines 593 B
//#region src/validations/validateCNPJ.d.ts /** * The function `validateCNPJ` validates a Brazilian CNPJ number. * @param {string} value - The `value` parameter is a string that represents the CNPJ (Cadastro * Nacional da Pessoa Jurídica) number to be validated. It can be formatted with or without punctuation, * like '00.000.000/0000-00' or '00000000000000'. * @returns The function `validateCNPJ` returns a boolean value. It returns `true` if the CNPJ is * valid, and `false` otherwise. */ declare function validateCNPJ(value: string): boolean; //#endregion export { validateCNPJ };