workflow / Exports / EventHandlerUtils
Class: EventHandlerUtils
Utility functions for event handling
Table of contents
Constructors
Methods
Constructors
constructor
• new EventHandlerUtils(): EventHandlerUtils
Returns
Methods
createPattern
▸ createPattern(pattern): RegExp
Create event pattern from string with wildcards
Parameters
| Name | Type |
|---|---|
pattern | string |
Returns
RegExp
Defined in
interfaces/event-handler.ts:278
matchesPattern
▸ matchesPattern(eventType, pattern): boolean
Test if event matches pattern
Parameters
| Name | Type |
|---|---|
eventType | string |
pattern | EventPattern |
Returns
boolean
Defined in
interfaces/event-handler.ts:287
sortHandlersByPriority
▸ sortHandlersByPriority(handlers): EventHandler[]
Sort handlers by priority (highest first)
Parameters
| Name | Type |
|---|---|
handlers | EventHandler[] |