TypeScript Types
-
AsyncCollectionLoaderT — The signature of a valid data loader function for useAsyncCollection() hook.
-
AsyncCollectionT — The type of a global state segment managed by the useAsyncCollection() hook.
-
AsyncDataEnvelopeT — The type of a state segment storing data managed by useAsyncData() and useAsyncCollection() hooks, alongside related meta-data.
-
AsyncDataLoaderT — The signature of a valid data loader function for useAsyncData() hook.
-
AsyncDataReloaderT — The signature of data re-loader function in the result of useAsyncData() hook (see
reloadin UseAsyncDataResT). -
ForceT — A special type for «unlocking» overloads of hooks and functions that allow to enforce arbitrary value types.
-
SetterT — The type of setter returned by the useGlobalState() hook.
-
UseAsyncDataOptionsT — The type of options object accepted by useAsyncData() and useAsyncCollection() hooks.
-
UseAsyncCollectionResT — The type of result possibly returned by useAsyncCollection() hooks (depends on hook arguments).
-
UseAsyncDataResT — The type of result returned by useAsyncData() and, possibly, useAsyncCollection() hooks (depends on hook arguments).
-
UseGlobalStateResT — The type of result returned by the useGlobalState() hook.
-
ValueOrInitializerT — The type for arguments that accept either a value to use, or a function that returns the value to use.