TypeScript Types
- AsyncCollectionLoaderT — The signature of a valid data loader function for 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.
- 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.
- UseAsyncDataResT — The type of result returned by useAsyncData() and useAsyncCollection() hooks.
- 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.