Bindable: BindableInterface<PropName> & Record<PropName, any>

All methods on the bindable interface are optional, you can also use plain objects.

The "Record" part is a workaround to allow arbitrary plain data objects. If BindableInterface is used directly, the compiler complains because of "no common properties": https://stackoverflow.com/questions/46449237/type-x-has-no-properties-in-common-with-type-y

Type Parameters

  • PropName extends PropertyName = string