Diagnostics
S020
invalid alert payload type
S020
An alert payload must be a declared record type with at least one field, and every field must be string, int, float, bool, or a nullable form of those. Declare a record with only those field types and pass its name, or drop payload: for an alert without one.
Failing example
script "conf"
type Tinted {
price: float
tint: color
}
alert tinted = alert(payload: Tinted, title: "Tinted")Corrected example
script "fixed"
type Plain { price: float }
alert plain = alert(payload: Plain, title: "Plain")