Skip to content

Home > @theweave/api > ParentToAppletMessage

ParentToAppletMessage type

Signature:

typescript
export type ParentToAppletMessage = {
    type: 'get-applet-asset-info';
    wal: WAL;
    recordInfo?: RecordInfo;
} | {
    type: 'get-block-types';
} | {
    type: 'search';
    filter: string;
} | {
    type: 'peer-status-update';
    payload: PeerStatusUpdate;
} | {
    type: 'on-before-unload';
} | {
    type: 'asset-store-update';
    walStringified: string;
    value: AsyncStatus<AssetStoreContent>;
} | {
    type: 'remote-signal-received';
    payload: Uint8Array;
};

References: WAL, RecordInfo, PeerStatusUpdate, AsyncStatus, AssetStoreContent