@integromat/proto
Version:
Integromat Proto-Classes
18 lines • 696 B
TypeScript
import { IMTBase, ModuleType } from './base';
import { Bundle, DoneWithResultCallback } from './types';
/**
* Base class for all Transformers.
*/
export declare class IMTTransformer extends IMTBase {
readonly type: ModuleType.TRANSFORMER | ModuleType.AGGREGATOR | ModuleType.FEEDER;
/**
* Transforms data.
*
* @param {Object} bundle Collection of data to transform.
* @callback done Callback to call when operations are done.
* @param {Error} err Error on error, otherwise null.
* @param {Object} bundle Collection of transformed data.
*/
transform(bundle: Bundle, done: DoneWithResultCallback): void;
}
//# sourceMappingURL=transformer.d.ts.map