@vtj / Modules / core / EventModel
Class: EventModel
core.EventModel
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new EventModel(schema
): EventModel
Parameters
Name | Type |
---|---|
schema | NodeEvent |
Returns
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
Name | Type |
---|---|
schema | Partial <NodeEvent > |
Returns
void
Defined in
packages/core/src/models/event.ts:19
parse
▸ parse(events?
): Record
<string
, EventModel
>
Parameters
Name | Type |
---|---|
events | NodeEvents |
Returns
Record
<string
, EventModel
>
Defined in
packages/core/src/models/event.ts:34
toDsl
▸ toDsl(events
): NodeEvents
Parameters
Name | Type |
---|---|
events | Record <string , EventModel > |
Returns
Defined in
packages/core/src/models/event.ts:26