piclist
Version:
Modified PicGo core, A tool for picture uploading
16 lines (15 loc) • 592 B
TypeScript
export type IMethod = 'get' | 'GET' | 'delete' | 'DELETE' | 'head' | 'HEAD' | 'options' | 'OPTIONS' | 'post' | 'POST' | 'put' | 'PUT' | 'patch' | 'PATCH' | 'purge' | 'PURGE' | 'link' | 'LINK' | 'unlink' | 'UNLINK';
export type IHeaders = Record<string, any>;
export interface IRequestPromiseOptions {
baseUrl?: string | undefined;
url?: string;
method?: IMethod;
formData?: Record<string, any> | undefined;
qs?: any;
json?: boolean;
body?: any;
resolveWithFullResponse?: boolean;
headers?: IHeaders;
proxy?: any;
timeout?: number;
}