UNPKG

narrative-studio-sdk

Version:

Narrative SDK for building apps on the Narrative Studio

23 lines (22 loc) 616 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ChangesSavedEvent = exports.EventBase = void 0; class EventBase { get type() { return this.constructor.type; } static get type() { if (!this.eventType) throw new Error('Event type not defined'); return this.eventType; } } exports.EventBase = EventBase; class ChangesSavedEvent extends EventBase { constructor(changes) { super(); this.changes = changes; } } exports.ChangesSavedEvent = ChangesSavedEvent; ChangesSavedEvent.eventType = 'ChangesSavedEvent';