TinyBase logoTinyBase

GetId

The GetId type describes a function which, when passed a parameter, will return an Id.

(
  parameter: Parameter,
  store: Store,
): Id
TypeDescription
parameterParameter
storeStore
returnsId

This type is used in hooks that create callbacks - like the useSetTableCallback hook or useSetRowCallback hook - so that the Id arguments of the object to set can also be dependent on the event or parameter provided (as well as the object itself being set).

Since

v1.0.0