Interface ElementChangeCreateUpdate<ELEMENTTYPE, IDTYPE>

Special case for CREATE and UPDATE messages, when we know that we have a "newValue", saving a null-guard in the resulting code.

Type Parameters

  • ELEMENTTYPE

  • IDTYPE

Hierarchy

  • ElementChange<ELEMENTTYPE, IDTYPE>

    Hierarchy

    • ElementChangeCreateUpdate

Properties

id: IDTYPE
newValue: ELEMENTTYPE
previousValue?: ELEMENTTYPE
type: "CREATE" | "UPDATE"