浏览代码

improve(plugin): update types

charlie 3 年之前
父节点
当前提交
a9c02b87fd
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      libs/src/LSPlugin.ts

+ 2 - 2
libs/src/LSPlugin.ts

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