UNPKG

yg-tools

Version:

some convenient APIs and Methods for Youngon

12 lines (11 loc) 451 B
import GlobalConfig from '../config/config'; import type { HttpRequestOption, HttpResponseOption } from '../types'; export default class YGREQ { config: GlobalConfig; constructor(config: GlobalConfig); static createYGREQ(config: GlobalConfig): YGREQ; handelHeaders(opt: Record<string, any>): any; Req(opt: HttpRequestOption): Promise<HttpResponseOption>; ReqAnyData(opt: HttpRequestOption): Promise<any>; getCode(): any; }