TLBinding
See source codeThe set of all bindings that are available in the editor, including unknown bindings. Bindings represent relationships between shapes, such as arrows connecting to other shapes.
type TLBinding = TLDefaultBinding | TLUnknownBinding
Example
// Check binding type and handle accordingly
function handleBinding(binding: TLBinding) {
switch (binding.type) {
case 'arrow':
// Handle arrow binding
break
default:
// Handle unknown custom binding
break
}
}
Prev
TLAssetShapeNext
TLBindingCreate