Diff <N, V>
Index
Constructors
constructor
Type parameters
- N: UnknownNode = UnknownNode
- V = unknown
Parameters
node: N
The node that changed.
action: DiffAction
What happened to it.
field: string
The field of the node that changed.
value: V
The new value of the field.
optionalreason: string
Why the change is being made, carried into reports.
Returns Diff<N, V>
Properties
readonlyaction
What happened.
readonlyfield
The field of the node that changed, e.g. resourceId, properties, or parent.
readonlynode
The node that changed.
optionalreadonlyreason
Why the change is being made, when the field alone does not explain it. It is carried into reports, so write it for whoever reads the plan.
readonlyvalue
The new value of the field. Its shape depends on the field.
One change to one field of one node.
Diffs are the currency of Octo: comparing the graph you just described against the last committed one produces a list of them, and every action is selected and driven by the diffs it accepts.
Functions/Diff