UNPKG

flit-string-utils

Version:

Funciones utilitarias para strings y validaciones comunes en Colombia.

25 lines (24 loc) 759 B
/** * Calculates the verification digit (VD) of a NIT in Colombia. * @param nit - NIT number without the verification digit. * @returns Verification digit (0-9). */ export declare function calculateVD(nit: string | number): number | null; /** * Validates if the provided string is a valid vehicle plate number in Colombia. * @param value * @returns */ export declare const validPlate: (value?: string) => boolean; /** * Validates if the provided string is a valid email format. * @param value * @returns */ export declare const validEmail: (value?: string) => boolean; /** * Validates if the provided document type is one of the accepted types. * @param value * @returns */ export declare const validDocumentType: (value?: string) => boolean;