import { UserRegisteredEvent } from '@identity-and-access/domain/events/userRegistered.event' ; import { Record , Static , String } from 'runtypes' ; export const DomainEvent = Record ( { eventKey : String , payload : UserRegisteredEvent , } ) ; export type DomainEvent = Static < typeof DomainEvent > ;