@@ -75,19 +75,19 @@ const defaults = {
75
75
76
76
/**
77
77
* @typedef {Object } APIOptions - creates a new type named 'SpecialType'
78
- * @prop {any } [body] - Request body
79
- * @prop {Object } [json] - JSON shortcut
80
- * @prop {string } [method] - GET, POST, PUT, DELETE, etc.
81
- * @prop {string } [base] - The base URL to use in case url is a relative URL
82
- * @prop {Headers|Record<string, string> } [headers] - Request header.
83
- * @prop {number } [timeout] - Amount of time until request should timeout in ms.
84
- * @prop {AbortSignal } [signal] - Signal to abort the request.
85
- * @prop {URLSearchParams|Object } [searchParams] - URL search param.
86
- * @prop {string } [credentials]
87
- * @prop {boolean } [throwHttpErrors]
88
- * @prop {function(URLSearchParams): URLSearchParams } [transformSearchParams]
89
- * @prop {function(any): any } [transform] - When iterating the response body, transform each chunk with this function.
90
- * @prop {function(Response): Promise<void> } [handleError] - Handle errors
78
+ * @property {any } [body] - Request body
79
+ * @property {Object } [json] - JSON shortcut
80
+ * @property {string } [method] - GET, POST, PUT, DELETE, etc.
81
+ * @property {string } [base] - The base URL to use in case url is a relative URL
82
+ * @property {Headers|Record<string, string> } [headers] - Request header.
83
+ * @property {number } [timeout] - Amount of time until request should timeout in ms.
84
+ * @property {AbortSignal } [signal] - Signal to abort the request.
85
+ * @property {URLSearchParams|Object } [searchParams] - URL search param.
86
+ * @property {string } [credentials]
87
+ * @property {boolean } [throwHttpErrors]
88
+ * @property {function(URLSearchParams): URLSearchParams } [transformSearchParams]
89
+ * @property {function(any): any } [transform] - When iterating the response body, transform each chunk with this function.
90
+ * @property {function(Response): Promise<void> } [handleError] - Handle errors
91
91
*/
92
92
93
93
class HTTP {
0 commit comments