@resee-movies/utilities - v1.1.0
    Preparing search index...

    Type Alias ThrottleOptions<TargetFn>

    Options to control the behavior of the throttling.

    type ThrottleOptions<TargetFn extends GenericFunction = GenericFunction> = {
        callback?: (returnValue: ReturnType<TargetFn>) => void;
        delay?: number | "frame";
    }

    Type Parameters

    Index

    Properties

    Properties

    callback?: (returnValue: ReturnType<TargetFn>) => void

    A function that will be executed immediately after each execution of the throttled function, receiving that function's return value.

    delay?: number | "frame"

    The amount of time between call and execution of the throttled method, during which subsequent calls will be dropped. Can be either a number of milliseconds, or the string "frame", which will queue calls using requestAnimationFrame().

    "frame" in browser contexts, 0 otherwise