Skip to main content

IDependency

The serialized form of a Dependency, as it is written to state. A behavior says that the forAction diff of to's toField waits for the onAction diff of from's onField.

@group

Functions/Dependency

Index

Properties

behaviors

behaviors: { forAction: validate | add | delete | update | replace; onAction: validate | add | delete | update | replace; onField: string; toField: string }[]

The ordering rules between the two nodes' diffs.

from

from: string

The context of the node the dependency starts at.

optionalrelationship

relationship?: { onField: string; toField: string; type: parent | child }

Whether to is the parent or the child of from, and the field on each that holds the relationship; absent for a plain relationship.


Type declaration

  • onField: string
  • toField: string
  • type: parent | child

to

to: string

The context of the node the dependency points to.

Page Options