| | |
| | | import { AxiosRequestConfig } from 'axios'; |
| | | import { type RequestConfig } from 'senior-request'; |
| | | |
| | | export interface IRequestOptions extends AxiosRequestConfig {} |
| | | |
| | | export interface IRequest { |
| | | <T = any>(url: string, opts: IRequestOptions): Promise<T>; |
| | | } |
| | | |
| | | export type BlLifeRechargeServicesOptions<T extends IRequest> = { |
| | | request: T; |
| | | axiosOptions?: AxiosRequestConfig; |
| | | export type BlLifeRechargeServicesOptions<TResponse = any, TRequestOptions = any> = { |
| | | axiosConfig?: RequestConfig<TResponse, TRequestOptions>; |
| | | }; |
| | | |
| | | export type BlLifeRechargeAccountModelOptions = { |
| | |
| | | phoneNumber?: string; |
| | | }; |
| | | |
| | | export type BlLifeRechargeOptions<T extends IRequest> = BlLifeRechargeServicesOptions<T> & |
| | | export type BlLifeRechargeOptions< |
| | | TResponse = any, |
| | | TRequestOptions = any |
| | | > = BlLifeRechargeServicesOptions<TResponse, TRequestOptions> & |
| | | BlLifeRechargeAccountModelOptions & {}; |