@dxos/app-framework - v0.8.2
Preparing search index...
contributes
Function contributes
contributes
<
T
>
(
interfaceDef
:
InterfaceDef
<
T
>
,
implementation
:
T
,
deactivate
?:
()
=>
MaybePromise
<
void
>
|
Effect
<
void
,
Error
,
never
>
,
)
:
Capability
<
T
>
Helper to define the implementation of a capability.
Type Parameters
T
Parameters
interfaceDef
:
InterfaceDef
<
T
>
implementation
:
T
Optional
deactivate
:
()
=>
MaybePromise
<
void
>
|
Effect
<
void
,
Error
,
never
>
Returns
Capability
<
T
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@dxos/app-framework - v0.8.2
Loading...
Helper to define the implementation of a capability.