Skip to content

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:

ParameterTypeDescription
typeStateEffectType<T>The state effect type.

Returns: this is StateEffect<T>Whether this effect is of the given type.