Files
WXProgram/typings/index.d.ts

15 lines
402 B
TypeScript
Raw Normal View History

2025-10-16 21:32:16 +08:00
/// <reference path="./types/index.d.ts" />
interface IAppOption {
globalData: {
userInfo: any,
isLoggedIn: boolean,
openid?: string,
session_key?: string
}
userInfoReadyCallback?: WechatMiniprogram.GetUserInfoSuccessCallback,
initAuth: () => Promise<void>,
checkLocationPermission: () => Promise<void>,
doGlobalLogin: () => Promise<boolean>,
doGlobalLogout: () => void
}