Appearance
@shtse8/fluxus / src / isStateProviderInstance
Function: isStateProviderInstance()
isStateProviderInstance<
T>(provider):provider is StateProviderInstance<T>
Defined in: src/providers/stateProvider.ts:86
Type guard to check if a given value is a StateProviderInstance.
Type Parameters
T
T
The potential type of the state managed by the provider.
Parameters
provider
unknown
The value to check.
Returns
provider is StateProviderInstance<T>
True if the value is a StateProviderInstance, false otherwise.