UNPKG

@anoki/fse-common

Version:

Common types for FSE

19 lines (16 loc) 426 B
import { User } from './user' import { WithMongooseProps } from './with-mongoose-props' export type ChangesFields<TValue = any> = WithMongooseProps<{ path: string originalValue: TValue value: TValue }> export type Changes<TEntity = any> = WithMongooseProps<{ updateById: string updatedBy: User sourceId: string tenantId: string sourceModelName: string entitySnapshot: TEntity changes: ChangesFields[] }>