Skip to content

Home > @theweave/api > AppletServices

AppletServices class

Signature:

typescript
export declare class AppletServices

Constructors

Constructor

Modifiers

Description

(constructor)()

Constructs a new instance of the AppletServices class

Properties

Property

Modifiers

Type

Description

bindAsset

(appletClient: AppClient, srcWal: WAL, dstWal: WAL, dstRecordInfo?: RecordInfo) => Promise<void>

Bind an asset (srcWal) to an asset in your applet (dstWal).

blockTypes

Record<BlockName, BlockType>

Render block types that this Applet offers

creatables

Record<CreatableName, CreatableType>

Creatables that this Applet offers to be created from a We dialog

getAssetInfo

(appletClient: AppClient, wal: WAL, recordInfo?: RecordInfo) => Promise<AssetInfo | undefined>

Get info about the specified entry of this Applet

search

(appletClient: AppClient, appletHash: AppletHash, weaveServices: WeaveServices, searchFilter: string) => Promise<Array<WAL>>

Search in this Applet