UNPKG

@eang/core

Version:

eang - model driven enterprise event processing

29 lines 684 B
import { Obj } from '../entity.js'; export class ItemObj extends Obj { typeOf = 'Item'; constructor(opts) { super({ ...opts, typeOf: 'Item' }); } } export function isItemObj(obj) { return obj.typeOf === 'Item'; } export class FolderObj extends Obj { typeOf = 'Folder'; constructor(opts) { super({ ...opts, typeOf: 'Folder' }); } } export function isFolderObj(obj) { return obj.typeOf === 'Folder'; } export class PageObj extends Obj { typeOf = 'Page'; constructor(opts) { super({ ...opts, typeOf: 'Page' }); } } export function isPageObj(obj) { return obj.typeOf === 'Page'; } //# sourceMappingURL=content.js.map