TLUnknownBinding

See source code

A type for a binding that is available in the editor but whose type is unknown—either one of the editor's default bindings or else a custom binding. Used internally for type-safe handling of bindings with unknown structure.

type TLUnknownBinding = TLBaseBinding<string, object>

Example

// Function that works with any binding type
function processBinding(binding: TLUnknownBinding) {
  console.log(
    `Processing ${binding.type} binding from ${binding.fromId} to ${binding.toId}`
  )
  // Handle binding properties generically
}
Prev
TLTextShape
Next
TLUnknownShape