@dxos/app-framework - v0.8.2
    Preparing search index...

    Type Alias Capability<T>

    A unique string identifier with a Typescript type associated with it. When a capability is contributed to the application an implementation of the interface is provided.

    type Capability<T> = {
        deactivate?: () => MaybePromise<void> | Effect.Effect<void, Error>;
        implementation: T;
        interface: InterfaceDef<T>;
    }

    Type Parameters

    • T
    Index

    Properties

    deactivate?: () => MaybePromise<void> | Effect.Effect<void, Error>

    Called when the capability is deactivated.

    implementation: T

    The implementation of the capability.

    interface: InterfaceDef<T>

    The interface definition of the capability.