rxtutils 1.1.2-beta.7 → 1.1.2-beta.8
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.
|
@@ -130,7 +130,7 @@ interface RequestOptions<Param> {
|
|
|
130
130
|
* @param baseOptions 基础配置选项
|
|
131
131
|
* @returns 请求创建函数
|
|
132
132
|
*/
|
|
133
|
-
declare function createBaseRequest(baseOptions?: Options): <Param, Data
|
|
133
|
+
declare function createBaseRequest(baseOptions?: Options): <Param, Data extends Record<any, any>>(requestOptions: RequestOptions<Param>, createOptions?: Omit<Options<Param, Data>, "baseURL">) => {
|
|
134
134
|
(requestParam?: Omit<RequestOptions<Param>, "url" | "method">, options?: Omit<Options<Param, Data>, "baseURL" | "cacheDataKey" | "cacheDataInStorage" | "cacheKeyEquals">): Promise<Data>;
|
|
135
135
|
clearCache(): void;
|
|
136
136
|
};
|