Skip to content

Files

Latest commit

32d2ba4 · Mar 2, 2025

History

History

observable-dom-common

Observable DOM Common

@mml-io/observable-dom-common

npm version

This package contains the interface types and messages used by the Observable DOM system and some helper functions for bridging messages and interfaces.

Classes

  • ObservableDOMInterface
    • The interface of an ObservableDOM.
  • observableDOMInterfaceToMessageSender
    • A function that returns an object that matches the ObservableDOMInterface, but sends messages corresponding to interactions with the interface to a provided callback.
  • applyMessageToObservableDOMInstance
    • A function that applies a message (from observableDOMInterfaceToMessageSender) to an ObservableDOM instance.
  • ToObservableDOMInstanceMessage and FromObservableDOMInstanceMessage
    • Messages that can describe the emissions and interactions with an ObservableDOM instance.