Skip to content

@shtse8/fluxus v1.0.0


@shtse8/fluxus / src / isStateProviderInstance

Function: isStateProviderInstance()

isStateProviderInstance<T>(provider): provider is StateProviderInstance&lt;T&gt;

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&lt;T&gt;

True if the value is a StateProviderInstance, false otherwise.

Released under the ISC License.