afdi-ambition-fbim-fe
Version:
3D组态BIM编辑器
29 lines (28 loc) • 1.45 kB
TypeScript
/** 判断是否为数组 */
export declare const isArray: (arg: unknown) => boolean;
/** 判断是否为字符串 */
export declare const isString: (str: unknown) => str is string | String;
/** 判断是否为外链 */
export declare const isExternal: (path: string) => boolean;
/** 判断是否为网址(带协议) */
export declare const isUrl: (url: string) => boolean;
/** 判断是否为网址或 IP(带端口) */
export declare const isUrlPort: (url: string) => boolean;
/** 判断是否为域名(不带协议) */
export declare const isDomain: (domain: string) => boolean;
/** 判断版本号格式是否为 X.Y.Z */
export declare const isVersion: (version: string) => boolean;
/** 判断时间格式是否为 24 小时制(HH:mm:ss) */
export declare const is24H: (time: string) => boolean;
/** 判断是否为手机号(1 开头) */
export declare const isPhoneNumber: (str: string) => boolean;
/** 判断是否为第二代身份证(18 位) */
export declare const isChineseIdCard: (str: string) => boolean;
/** 判断是否为 Email(支持中文邮箱) */
export declare const isEmail: (email: string) => boolean;
/** 判断是否为 MAC 地址 */
export declare const isMAC: (mac: string) => boolean;
/** 判断是否为 IPv4 地址 */
export declare const isIPv4: (ip: string) => boolean;
/** 判断是否为车牌(兼容新能源车牌) */
export declare const isLicensePlate: (str: string) => boolean;