Skip to content

Home > @theweave/api > AppletView

AppletView type

Signature:

typescript
export type AppletView = {
    type: 'main';
} | {
    type: 'block';
    block: string;
    context: any;
} | {
    type: 'asset';
    recordInfo?: RecordInfo;
    wal: WAL;
} | {
    type: 'creatable';
    name: CreatableName;
    resolve: (wal: WAL) => Promise<void>;
    reject: (reason: any) => Promise<void>;
    cancel: () => Promise<void>;
};

References: RecordInfo, WAL, CreatableName