Skip to content

@vtj / Modules / core / EventModel

Class: EventModel

core.EventModel

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new EventModel(schema): EventModel

Parameters

NameType
schemaNodeEvent

Returns

EventModel

Defined in

packages/core/src/models/event.ts:12

Properties

handler

handler: JSFunction

Defined in

packages/core/src/models/event.ts:10


modifiers

modifiers: NodeModifiers = {}

Defined in

packages/core/src/models/event.ts:11


name

Readonly name: string

Defined in

packages/core/src/models/event.ts:9


schema

Private schema: NodeEvent

Defined in

packages/core/src/models/event.ts:12

Methods

update

update(schema): void

Parameters

NameType
schemaPartial<NodeEvent>

Returns

void

Defined in

packages/core/src/models/event.ts:19


parse

parse(events?): Record<string, EventModel>

Parameters

NameType
eventsNodeEvents

Returns

Record<string, EventModel>

Defined in

packages/core/src/models/event.ts:34


toDsl

toDsl(events): NodeEvents

Parameters

NameType
eventsRecord<string, EventModel>

Returns

NodeEvents

Defined in

packages/core/src/models/event.ts:26

Released under the MIT License.