UNPKG

validations-br

Version:
11 lines 544 B
//#region src/validations/validateCep.d.ts /** * The function `validateCep` validates a Brazilian CEP (postal code) using a regular expression. * @param {string} cep - The `cep` parameter is a string that represents the CEP (Código de * Endereçamento Postal - Postal Addressing Code) to be validated. * @returns The `validateCep` function returns a boolean value. It returns `true` if the provided `cep` * is a valid CEP, and `false` otherwise. */ declare function validateCep(cep: string): boolean; //#endregion export { validateCep };