common-function-utils
Version:
web和node开发中常用的函数工具。
56 lines (55 loc) • 898 B
TypeScript
/**
* 当前设备类型
* @category Device
*/
export interface clientTypeType {
/**
* PC环境
*/
desktop?: boolean;
/**
* 安卓环境
*/
android?: boolean;
/**
* iPhone或者QQHD环境
*/
iPhone?: boolean;
/**
* iPad环境
*/
iPad?: boolean;
/**
* iMac、Mac mini、Macbook Air、Macbook Pro、Macbook、Mac Pro环境
*/
mac?: boolean;
/**
* Microsoft Windows环境
*/
windows?: boolean;
/**
* darwin环境
*/
darwin?: boolean;
/**
* 微信环境
*/
weChat?: boolean;
/**
* 支付宝环境
*/
alipay?: boolean;
/**
* QQ环境
*/
qq?: boolean;
/**
* hualalaApp环境
*/
hualalaApp?: boolean;
}
/**
* 当前设备类型
* @category Device
*/
export default function clientType(): clientTypeType;