kernl API
    Preparing search index...

    Interface ModuleInstance<Api>

    What a module's setup returns.

    interface ModuleInstance<Api = void> {
        api?: Api;
        extensions?: PlannedExtensions;
        rendersBindings?: boolean;
        services?: Partial<ServiceRegistry>;
        dispose?(): void | Promise<void>;
    }

    Type Parameters

    • Api = void
    Index
    api?: Api

    What appears on the shell as kernl[id].

    extensions?: PlannedExtensions

    Domains kehto's prelude must be told about, with what each offers inside the applet. They are offered only where the prelude renders bindings (supportsDomainBindings), as the download domains are; elsewhere the module's services for them are left out.

    rendersBindings?: boolean

    The host says its own prelude renders these extensions' bindings, so they are offered whatever supportsDomainBindings says.

    services?: Partial<ServiceRegistry>

    The NAP domains this module answers, keyed by domain. An applet is offered only what some module answers.

    • Called when the shell is destroyed, in the reverse of the order modules were loaded.

      Returns void | Promise<void>