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
| API | Purpose |
|---|---|
createMakoo() | Create a Runtime |
inject() | Declare a component task |
listen() | Declare a listener task |
| Task types | Task declarations and running handles |
StartedTasks | Handles for a started batch |
ArtifactOptions | Component task options |
createObserverHub() | Create a lifecycle event hub |
createActivityStore() | Create observable state |
| Observer types | Event payloads and hook types |
| Signal types | Observable state sources |
| Adapter types | Component mounting interfaces |
MakooContext | Task controls available to components |
DOMWatcher | Element waiting and replacement observation |
DOMWatcher.onDomReady() | Wait for a target |
DOMWatcher.onDomAlive() | Observe target removal and restoration |
Logger | Logging with severity levels |
| Error classes | Task, mounting, and signal errors |
MakooError | Error codes, summaries, and context |
| Constants | Listener actions, event names, and error codes |
ErrorCode | Error code constants |
Action | Listener open and close actions |
OBSERVE_EVENT_NAMES | Lifecycle event names |
| Logger types | Logger interfaces and levels |
| Error types | Error details and context types |