polish-validators
Version:
A set of validator functions that check common polish numbers.
19 lines (18 loc) • 877 B
TypeScript
/**
* Validates a doctor's identifier in Poland, ensuring it has 7 digits and passes a
* checksum validation. Any characters other than digits will result in the identifier
* being invalid.
*
* @param {string} number - The doctor's identification number as a string.
* @returns {boolean} `true` if the doctor's number is valid; `false` otherwise.
*/
export declare function isDoctorNumberValid(number: string): boolean;
/**
* Validates a doctor's identifier in Poland, ensuring it has 7 digits and passes a
* checksum validation. Any characters other than digits will result in the identifier
* being invalid.
*
* @param {string} number - The doctor's identification number as a string.
* @returns {boolean} `true` if the doctor's number is invalid; `false` otherwise.
*/
export declare const isDoctorNumberInvalid: (number: string) => boolean;