UNPKG

vgscode

Version:

Validate Generate Sanitize Code

23 lines (18 loc) 744 B
declare function gIIN(value?: string | number): string; declare function vIIN(value: string | number): boolean; declare function gBIN(value?: string | number): string; declare function vBIN(value: string | number): boolean; declare function sTrimAll(str: string): string; declare function sRemoveNonDigits(str: string): string; type ValidatorFn = (code: string) => boolean; declare function sExtractCodes(text: string, length: number, validator: ValidatorFn): string[]; declare const vgscode: { gIIN: typeof gIIN; vIIN: typeof vIIN; gBIN: typeof gBIN; vBIN: typeof vBIN; sTrimAll: typeof sTrimAll; sRemoveNonDigits: typeof sRemoveNonDigits; sExtractCodes: typeof sExtractCodes; }; export { vgscode as default };