Interface: IJinFrameFunction<TPASS, TFAIL>
Type parameters
Name | Type |
---|---|
TPASS | unknown |
TFAIL | TPASS |
Implemented by
Methods
create
▸ create(args?
): () => Promise
<AxiosResponse
<TPASS
, any
>> | () => Promise
<PassFailEither
<IFailReplyJinEitherFrame
<TFAIL
> | IFailExceptionJinEitherFrame
<TFAIL
>, TPassJinEitherFrame
<TPASS
>>>
Parameters
Name | Type |
---|---|
args? | IJinFrameRequestConfig & IJinFrameCreateConfig |
Returns
() => Promise
<AxiosResponse
<TPASS
, any
>> | () => Promise
<PassFailEither
<IFailReplyJinEitherFrame
<TFAIL
> | IFailExceptionJinEitherFrame
<TFAIL
>, TPassJinEitherFrame
<TPASS
>>>
Defined in
jin-frame/src/interfaces/IJinFrameFunction.ts:9
execute
▸ execute(args?
): Promise
<AxiosResponse
<TPASS
, any
>> | Promise
<PassFailEither
<IFailReplyJinEitherFrame
<TFAIL
> | IFailExceptionJinEitherFrame
<TFAIL
>, TPassJinEitherFrame
<TPASS
>>>
Parameters
Name | Type |
---|---|
args? | IJinFrameRequestConfig & IJinFrameCreateConfig |
Returns
Promise
<AxiosResponse
<TPASS
, any
>> | Promise
<PassFailEither
<IFailReplyJinEitherFrame
<TFAIL
> | IFailExceptionJinEitherFrame
<TFAIL
>, TPassJinEitherFrame
<TPASS
>>>