UNPKG

@dolittle/sdk.projections

Version:

Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.

16 lines 862 B
import { Constructor } from '@dolittle/types'; import { ProjectionCurrentState } from '@dolittle/contracts/Runtime/Projections/State_pb'; import { Key } from '../../Key'; import { CurrentState } from '../CurrentState'; import { IConvertProjectionsToSDK } from './IConvertProjectionsToSDK'; /** * Represents an implementation of {@link IConvertProjectionsToSDK}. */ export declare class ProjectionsToSDKConverter extends IConvertProjectionsToSDK { /** @inheritdoc */ convert<TProjection = any>(type: Constructor<TProjection> | undefined, state: ProjectionCurrentState): CurrentState<TProjection>; /** @inheritdoc */ convertAll<TProjection = any>(type: Constructor<TProjection> | undefined, states: ProjectionCurrentState[]): Map<Key, CurrentState<TProjection>>; private getStateType; } //# sourceMappingURL=ProjectionsToSDKConverter.d.ts.map