index.d.ts 396 B

1234567891011121314151617
  1. /// <reference path="./types/index.d.ts" />
  2. interface IAppOption {
  3. globalData: {
  4. sectionBoxTop: number,
  5. top: number,
  6. userInfo?: any,
  7. baseUrl: string,
  8. appId: string,
  9. deviceNum: string,
  10. isLogin: boolean,
  11. }
  12. userInfoReadyCallback?: WechatMiniprogram.GetUserInfoSuccessCallback,
  13. setAppId(): void,
  14. onSerivceLocationChange?(): void,
  15. onLogin(code: string): void
  16. }