paypay.x.js
Version:
Library for automate PayPay operations
43 lines (42 loc) • 1.25 kB
TypeScript
/**
* Determines if a phone number is valid.
*
* @param {string} phone - The phone number to validate.
* @return {boolean} - True if the phone number is valid, false otherwise.
*
* @example
* ```ts
* isPhone('09019194545'); // returns true
* isPhone('0901919404'); // returns false
* isPhone('0a019194545'); // returns false
* ```
*/
export declare function isPhone(phone: string): boolean;
/**
* Determines if a password is valid.
*
* @param {string} password - The password to validate.
* @return {boolean} - True if the password is valid, false otherwise.
*
* @example
* ```ts
* isPassword('Aa123456'); // returns true
* isPassword('123a6'); // returns false
* isPassword('helloworld'); // returns false
* ```
*/
export declare function isPassword(password: string): boolean;
/**
* Determines if a UUID is valid.
*
* @param {string} uuid - The UUID to validate.
* @return {boolean} - True if the UUID is valid, false otherwise.
*
* @example
* ```ts
* isUuid('12345678-1234-1234-1234-123456789012'); // returns true
* isUuid('12345678-1234-1234-1234-12345678901'); // returns false
* isUuid('12345678-1234-1234-1234-1234567890'); // returns false
* ```
*/
export declare function isUuid(uuid: string): boolean;