Skip to content

@vtj


@vtj / core / EventModel

Class: EventModel

Constructors

new EventModel()

new EventModel(schema): EventModel

Parameters

schema

NodeEvent

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

Methods

update()

update(schema): void

Parameters

schema

Partial<NodeEvent>

Returns

void

Defined in

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


parse()

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

Parameters

events

NodeEvents = {}

Returns

Record<string, EventModel>

Defined in

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


toDsl()

static toDsl(events): NodeEvents

Parameters

events

Record<string, EventModel>

Returns

NodeEvents

Defined in

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

Released under the MIT License.