Skip to content

API reference / Common / Engine types / TextBinding

Type Alias: TextBinding ​

ts
type TextBinding = 
  | {
  variable: TextBindingVariable;
}
  | {
  repeat: TextBindingRepeat;
}
  | {
  condition: TextBindingCondition;
}
  | {
  choice: TextBindingChoice;
}
  | {
  option: TextBindingOption;
}
  | {
  otherwise: TextBindingOtherwise;
};

A binding in text, of any kind: the TextMarkup the node around its content carries, and what the CRDT keeps of it. Where each kind stands is the nodes': a variable within a paragraph, an option or an otherwise only in its choice.