Skip to main content

Interface: IJinFrameFunction<TPASS, TFAIL>

Type parameters

NameType
TPASSunknown
TFAILTPASS

Implemented by

Methods

create

create(args?): () => Promise<AxiosResponse<TPASS, any>> | () => Promise<PassFailEither<IFailReplyJinEitherFrame<TFAIL> | IFailExceptionJinEitherFrame<TFAIL>, TPassJinEitherFrame<TPASS>>>

Parameters

NameType
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

NameType
args?IJinFrameRequestConfig & IJinFrameCreateConfig

Returns

Promise<AxiosResponse<TPASS, any>> | Promise<PassFailEither<IFailReplyJinEitherFrame<TFAIL> | IFailExceptionJinEitherFrame<TFAIL>, TPassJinEitherFrame<TPASS>>>

Defined in

jin-frame/src/interfaces/IJinFrameFunction.ts:20