UNPKG

stellar-plus

Version:

beta version of stellar-plus, an all-in-one sdk for the Stellar blockchain

14 lines (13 loc) 775 B
import { StellarPlusError } from '../../../../../../stellar-plus/error'; import { BeltMetadata, BeltPluginType } from '../../../../../../stellar-plus/utils/pipeline/conveyor-belts/types'; export declare class InjectPreprocessParameterPlugin<Input, Output, Type, ParameterType> implements BeltPluginType<Input, Output, Type> { readonly name: string; readonly type: Type; private parameter; private step; constructor(parameter: ParameterType, type: Type, step: 'preProcess' | 'postProcess' | 'processError'); preProcess(item: Input, _meta: BeltMetadata): Promise<Input>; postProcess(item: Output, _meta: BeltMetadata): Promise<Output>; processError(error: StellarPlusError, _meta: BeltMetadata): Promise<StellarPlusError>; private inject; }