lib.local.tool.d.ts 483 B

123456789101112131415161718
  1. declare namespace WechatMiniprogram {
  2. interface requestParamsData {
  3. url: string;
  4. data?: Object;
  5. header?: {};
  6. method?: "GET" | "OPTIONS" | "HEAD" | "POST" | "PUT" | "DELETE" | "TRACE" | "CONNECT" | undefined;
  7. dataType?: 'json' | '其他';
  8. success:AccessCompleteCallback;
  9. baseUrlNone?: boolean;
  10. complete?: (com? :any) => void;
  11. }
  12. }
  13. /** 接口调用结束的回调函数(调用成功执行) */
  14. type AccessCompleteCallback = (res: any) => void