zhengyiming
2025-02-21 a3be4bd8a96df6b27e4f0d3883d661d9cb64d1fc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
 
export interface IRequestOptions extends AxiosRequestConfig {}
 
export interface IRequest {
  <T = any>(url: string, opts: IRequestOptions): Promise<T>;
}
 
export type BlLifeRechargeServicesOptions<T extends IRequest> = {
  request: T;
};
 
export type BlLifeRechargeOptions<T extends IRequest> = BlLifeRechargeServicesOptions<T> & {
  userId?: string;
};