Constructors
constructor
- new ToResult<T, R>(_data, _err, _getInfoFun, _isSuccess): ToResult<T, R>
Type Parameters
- T extends AxiosResponse<any, any>
- R
Parameters
- _data: undefined | T
- _err: any
- _getInfoFun: TransFunType<T>
- _isSuccess: boolean
Properties
Readonly
isSuccess
isSuccess: boolean
Methods
getInfo
- getInfo(): undefined | R
Returns undefined | R
不需要单独实例化此类,由AxiosTo#async返回此类实例