rxtutils 1.1.6 → 1.1.7
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/es/request/index.d.ts +1 -1
- package/package.json +1 -1
package/es/request/index.d.ts
CHANGED
|
@@ -152,7 +152,7 @@ export interface RequestOptions<Param> {
|
|
|
152
152
|
* @param baseOptions 基础配置选项
|
|
153
153
|
* @returns 请求创建函数
|
|
154
154
|
*/
|
|
155
|
-
export default function createBaseRequest(baseOptions?: Options): <Param, Data extends Record<any, any>>(requestOptions: RequestOptions<Param>, createOptions?: Omit<Options<Param, Data>, "baseURL">) => {
|
|
155
|
+
export default function createBaseRequest<D extends Record<any, any>>(baseOptions?: Options<D>): <Param, Data extends Record<any, any>>(requestOptions: RequestOptions<Param>, createOptions?: Omit<Options<Param, Data>, "baseURL">) => {
|
|
156
156
|
(requestParam?: Omit<RequestOptions<Param>, "url" | "method">, options?: Omit<Options<Param, Data>, "baseURL" | "cacheDataKey" | "cacheDataInStorage" | "cacheKeyEquals">): Promise<Data>;
|
|
157
157
|
clearCache(): void;
|
|
158
158
|
};
|