UNPKG

@unchainedshop/core-events

Version:

Event history and tracking module for the Unchained Engine

10 lines (9 loc) 364 B
import { mongodb } from '@unchainedshop/mongodb'; import type { TimestampFields } from '@unchainedshop/mongodb'; export type Event = { _id: string; type: string; context?: Record<string, unknown>; payload?: Record<string, unknown>; } & TimestampFields; export declare const EventsCollection: (db: mongodb.Db) => Promise<mongodb.Collection<Event>>;