foundry-vtt-types icon indicating copy to clipboard operation
foundry-vtt-types copied to clipboard

Figure out function signature for `RenderedEffectSourceAnimationConfig["animation"]`

Open JPMeehan opened this issue 6 months ago • 0 comments

In src/foundry/client-esm/canvas/sources/rendered-effect-source.d.mts, the animation callback is currently typed as AnyFunction because it's very unclear what the intended type is for the function.


    /**
     * The animation function that runs every frame
     * @privateRemarks TODO: Figure out if there's a better way to define the function
     */
    animation?: AnyFunction | undefined;
    ```

JPMeehan avatar Aug 13 '24 06:08 JPMeehan