improve(plugin): update types

pull/4705/head
charlie 2022-05-31 11:53:07 +08:00 committed by Tienson Qin
parent 2aa50f6199
commit a9c02b87fd
1 changed files with 2 additions and 2 deletions

View File

@ -119,8 +119,8 @@ export type IGitResult = { stdout: string; stderr: string; exitCode: number }
export type IRequestOptions<R = any> = { export type IRequestOptions<R = any> = {
url: string url: string
headers: Record<string, string> headers: Record<string, string>
method: 'GET' | 'POST' | 'PUT' | 'DELETE' method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'
data: any data: Object | ArrayBuffer
timeout: number timeout: number
dataType: 'json' | 'text' | 'base64' | 'arraybuffer' dataType: 'json' | 'text' | 'base64' | 'arraybuffer'
success: (result: R) => void success: (result: R) => void