lib.local.tool.d.ts 508 B

12345678910111213141516171819
  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. noloading?: boolean;
  11. complete?: (com? :any) => void;
  12. }
  13. }
  14. /** 接口调用结束的回调函数(调用成功执行) */
  15. type AccessCompleteCallback = (res: any) => void