Skip to content

EffectHandler beta ​

TypeAlias of @v12-engine/engine

ts
export type EffectHandler = (context: EffectContext, effect: EffectDef) => void;

Carries out an effect, whatever its type: what the registry hands for a type (registry.effect), to call with an effect of that type