15 lines
402 B
TypeScript
15 lines
402 B
TypeScript
/// <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
|
|
} |