README

moonbit-community/proton/extension does not have a README file

#
ExtensionAdapterError

pub(all) suberror ExtensionAdapterError {
TypedSpecInvalid(extension_id~ : String, detail~ : String)
} derive(
Debug
)

Failures while adapting a framework extension to the app command runtime.

#
ExtensionAdapterError::message

fn ExtensionAdapterError::message(self : ExtensionAdapterError) -> String

#
Extension

type Extension

#
Extension::id

fn Extension::id(self : Extension) -> String

#
Extensions

type Extensions

#
Extensions::items

fn Extensions::items(self : Extensions) -> Array[Extension]

#
Extensions::new

fn Extensions::new(items : Array[Extension]) -> Extensions

#
extensions

fn extensions(items : Array[Extension]) -> Extensions

#
poller_script

fn poller_script(js_namespace~ : String, drain_method~ : String, poller_field~ : String) -> String

Builds the standard JavaScript event-poller script for an extension namespace.

Extensions that pump native events through a drain* command install this script so the renderer polls the host on a fixed interval. The script is idempotent: it exits early if the namespace or its drain method is missing, or if a poller is already registered.

#
typed

Builds an installable extension from typed command descriptors.

Validation is deferred until application configuration so invalid static extension metadata follows the facade's ordinary adaptation error path.

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io