You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

10 lines
693 B

import HackApiCore, { ReqOption, HackApiCallback } from './hack-api';
export declare type RequestOption = ReqOption & WechatMiniprogram.RequestOption;
export declare type HackRequestCallback = HackApiCallback<RequestOption, WechatMiniprogram.RequestSuccessCallbackResult, WechatMiniprogram.GeneralCallbackResult>;
export declare class HackRequest extends HackApiCore<RequestOption, HackRequestCallback> {
apiName: 'request';
protected defineApiProperty(): void;
private hackHandler;
}
export declare const hackRequest: (option: HackRequestCallback) => HackRequest;
export declare const formatHeader: (headers: HeadersInit | undefined, reqHeaders: string[], tag: string) => string;