zhengyiming
2025-02-21 a3be4bd8a96df6b27e4f0d3883d661d9cb64d1fc
packages/components/src/utils/types.ts
@@ -3,11 +3,13 @@
export interface IRequestOptions extends AxiosRequestConfig {}
export interface IRequest {
  <T = any>(url: string, opts: IRequestOptions): Promise<AxiosResponse<T>>;
  <T = any>(url: string, opts: IRequestOptions): Promise<T>;
}
export type BlLifeRechargeServicesOptions<T extends IRequest> = {
  request: T;
};
export type BlLifeRechargeOptions<T extends IRequest> = BlLifeRechargeServicesOptions<T> & {};
export type BlLifeRechargeOptions<T extends IRequest> = BlLifeRechargeServicesOptions<T> & {
  userId?: string;
};