The minimal document surface attachScriptAction needs.

interface ActionAttachable {
    system: { actionDefs?: sohl.entity.action.SohlAction.Data[] };
    update(data: Record<string, unknown>): Promise<unknown>;
}

Properties

Methods

Properties

system: { actionDefs?: sohl.entity.action.SohlAction.Data[] }

The document's system data (carries actionDefs).

Methods