UNPKG

@nestjs-cqrs-eventsourcing/core

Version:

Event sourcing for nestjs CQRS

9 lines (8 loc) 458 B
import { TimedEventInterface, UserAwareEventInterface } from '@nestjs-cqrs-eventsourcing/core'; export declare const getEventDate: (event: TimedEventInterface) => Date; export declare function getEventDateString(event: TimedEventInterface): string; export type EventParams = { userId?: number; timestamp?: string; }; export declare const setEventParams: <T extends UserAwareEventInterface | TimedEventInterface>(event: T, params?: EventParams) => T;