Skip to content

Core API ​

Import runtime APIs from @makoojs/core. Choose a reference by the object you are working with. Start with Getting Started if you are new to Makoo.

API index ​

APIPurpose
createMakoo()Create a Runtime
inject()Declare a component task
listen()Declare a listener task
Task typesTask declarations and running handles
StartedTasksHandles for a started batch
ArtifactOptionsComponent task options
createObserverHub()Create a lifecycle event hub
createActivityStore()Create observable state
Observer typesEvent payloads and hook types
Signal typesObservable state sources
Adapter typesComponent mounting interfaces
MakooContextTask controls available to components
DOMWatcherElement waiting and replacement observation
DOMWatcher.onDomReady()Wait for a target
DOMWatcher.onDomAlive()Observe target removal and restoration
LoggerLogging with severity levels
Error classesTask, mounting, and signal errors
MakooErrorError codes, summaries, and context
ConstantsListener actions, event names, and error codes
ErrorCodeError code constants
ActionListener open and close actions
OBSERVE_EVENT_NAMESLifecycle event names
Logger typesLogger interfaces and levels
Error typesError details and context types