h7-validate-cpf
Version:
A TypeScript library to validate Brazilian CPF, responsible by validate CPF | validate equals numbers | quantity of numbers and if is true or false
24 lines (23 loc) • 450 B
TypeScript
/**
* @author
* @see https://github.com/herlandio
*
* Class responsible for validating CPF
*/
export declare class VerifyCPF {
/**
* Verify digits of CPF
*
* @param {string | number} cpf
* @param {number} digit
* @returns {string}
*/
private verifyDigits;
/**
* Verify CPF
*
* @param {string | number} cpf
* @returns {boolean}
*/
verifyCPF(cpf: string | number): boolean;
}