youtil 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/request.d.ts +1 -1
- package/package.json +1 -1
package/esm/request.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export interface IRequestOptions {
|
|
|
37
37
|
*/
|
|
38
38
|
export declare const request: <T = any>(url: string, options?: IRequestOptions) => Promise<T>;
|
|
39
39
|
interface RequestConstructor {
|
|
40
|
-
new (overrideDefaultOptions: IRequestOptions): typeof request;
|
|
40
|
+
new (overrideDefaultOptions: IRequestOptions, req?: typeof request): typeof request;
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
43
|
* 支持实例化一个新的request方法,覆盖默认的部分配置项
|