@stacksjs/ts-validation
Version:
A simple TypeScript starter kit using Bun.
11 lines • 449 B
TypeScript
/**
* Check if the string is MobilePhone
*
* @param str - The string to check
* @param locale - Locale to check
* @param options - Options object
* @param options.strictMode - Whether to check strict mode
* @returns True if the string matches the validation, false otherwise
*/
export declare function isMobilePhone(str: string, locale: string | string[], options?: { strictMode?: boolean }): boolean;
export declare const locales: string[];