UNPKG

@accounter/server

Version:
20 lines (19 loc) 544 B
/** * validates input contains only digits * @param {string} value * @returns {boolean} */ export declare const onlyDigitsValidator: (value: string) => boolean; /** * validates value is of exact length and contains only digit * @param {string} value * @param {number} length * @returns */ export declare const idValidator: (value: string, length: number) => boolean; /** * validates string format is YYYYMM * @param {string} value YYYYMM * @returns {boolean} */ export declare const yearMonthValidator: (value: string) => boolean;