UNPKG

gzjs-utils

Version:

smart js utils

19 lines (18 loc) 393 B
declare type IpRet = { public: IpItem[]; private: IpItem[]; }; declare type IpItem = { ip: string; IPv4: boolean; type: "public" | "private" | "IPv6"; }; export declare type WebRTCIP = { /** * 获取IP信息W * @param timeout 超时时间 */ getIPs(timeout?: number): Promise<IpRet>; }; declare const _WebRTCIP_: WebRTCIP; export default _WebRTCIP_;