@slan-health/taro-vueuse
Version:
taro vue版本hooks
15 lines (13 loc) • 358 B
TypeScript
import { Ref } from 'vue';
import { getNetworkType } from '@tarojs/taro';
export declare enum NetworkType {
wifi = "wifi",
'2g' = "2g",
'3g' = "3g",
'4g' = "4g",
'5g' = "5g",
unknown = "unknown",
none = "none"
}
declare function useNetworkType(): Ref<keyof getNetworkType.networkType | undefined>;
export default useNetworkType;