Skip to main content

isSlottedContextValue()

isSlottedContextValue<T, E>(context): context is SlottedValue<WithRef<T, E>>

A helper to narrow the type of Context Value

Type Parameters

T

T

E

E

Parameters

context

ContextValue<T, E>

Returns

context is SlottedValue<WithRef<T, E>>