Package version:

Interface TriggerDefinition

interface TriggerDefinition {
    body: string | (() => void);
    id?: string;
    triggerOperation: TriggerOperation;
    triggerType: TriggerType;
}

Properties

body: string | (() => void)

The body of the trigger, it can also be passed as a stringifed function

id?: string

The id of the trigger.

triggerOperation: TriggerOperation

The trigger operation, should be one of the values of TriggerOperation.

triggerType: TriggerType

The type of the trigger, should be one of the values of TriggerType.