UNPKG

@slan-health/taro-vueuse

Version:

taro vue版本hooks

15 lines (14 loc) 478 B
export type ILogin = (needCheck?: boolean) => Promise<string | undefined>; export type ICheckSessionAction = () => Promise<TaroGeneral.CallbackResult>; export interface IAction { checkSessionSync: ICheckSessionAction; loginSync: ILogin; getPhoneNumber: (e: any) => Promise<{ code: string | undefined; encryptedData: string; iv: string; phoneNumberCode: string; }>; } declare function useLogin(): IAction; export default useLogin;