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