latest
ortense/mediatorA minimalistic and dependency-free event mediator with internal context for front-end.
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




JSR Score
100%
Published
a year ago (1.3.0)
T
AtLeastOneOf
Requires at least one property of T.
f
createMediator
Creates a Mediator instance with a specific initial context.
T
JSONArray
Represents a array of of JSON serializable values.
T
JSONObject
Represents a dictionary (object) with string keys and values of type JSONValue.
T
JSONPrimitive
Represents a JSON primitive serializable value that can be a string, number, boolean, or null.
T
JSONValue
Represents a JSON serializable value that can be a primitive, a array, or a object.
I
T
MediatorContext
Represents a context for the Mediator, which is a JSON serializable object.
T
MediatorContextModifier
Represents a context modifier function for Mediator events.
T
MediatorEventListener
Represents a listener function for Mediator events.
T
WildcardEvent
Represents an event that acts as a wildcard, matching any event.