@dolittle/sdk.projections
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
15 lines • 640 B
TypeScript
import { Cancellation } from '@dolittle/sdk.resilience';
import { ProjectionProcessor } from './Internal/ProjectionProcessor';
/**
* Defines the system for projections.
*/
export declare abstract class IProjections {
/**
* Register a a projection.
* @template T Type of the readmodel.
* @param {ProjectionProcessor} projectionProcessor - Projection processor to register.
* @param {Cancellation} cancellation - Used to close the connection to the Runtime.
*/
abstract register<T>(projectionProcessor: ProjectionProcessor<T>, cancellation?: Cancellation): void;
}
//# sourceMappingURL=IProjections.d.ts.map