EffectPayload: {
    [key: string]: unknown;
}

User-defined effect payload type. Define this per game to match your effect structure.

Type declaration

  • [key: string]: unknown

    Arbitrary fields defined by the user

Example

type MyEffect = {
health?: number;
gold?: number;
hasKey?: boolean;
};