import { OhbugAction } from '@ohbug/types' ; export class Action implements OhbugAction { readonly type : string ; readonly timestamp : string ; readonly message : string ; readonly data : Record < string , any > ; constructor ( message , data , type , timestamp ? ) { this . type = type ; this . timestamp = timestamp || new Date ( ) . toISOString ( ) ; this . message = message ; this . data = data ; } }