StateEffect.is method
StateEffect › is
Official
Tells you whether this effect object is of a given type.Signature:
is(type: StateEffectType<T>): this is StateEffect<T>Parameters:
| Parameter | Type | Description |
|---|---|---|
| type | StateEffectType<T> | The state effect type. |
Returns: this is StateEffect<T> — Whether this effect is of the given type.