global.d.ts 738 B

123456789101112131415161718
  1. // global.d.ts
  2. declare namespace wx {
  3. function login(options: { success: (res: { code: string }) => void, fail: (res: any) => void, complete: (res: any) => void }): void;
  4. function createRewardedVideoAd(options: { adUnitId: string }): any;
  5. }
  6. declare namespace ks {
  7. function login(options: { success: (res: { code: string }) => void, fail: (res: any) => void, complete: (res: any) => void }): void;
  8. }
  9. declare namespace tt {
  10. function login(options: { success: (res: { code: string }) => void, fail: (res: any) => void, complete: (res: any) => void }): void;
  11. }
  12. declare namespace my {
  13. function login(options: { success: (res: { code: string }) => void, fail: (res: any) => void, complete: (res: any) => void }): void;
  14. }