tinybench - v5.1.0
    Preparing search index...

    Interface EventListenerObject<E, M>

    Both the Task and Bench objects extend the EventTarget object. So you can attach a listeners to different types of events to each class instance using the universal addEventListener and removeEventListener methods.

    interface EventListenerObject<
        E extends BenchEvents,
        M extends "bench" | "task" = "bench",
    > {
        handleEvent(evt: BenchEvent<E, M>): void;
    }

    Type Parameters

    • E extends BenchEvents
    • M extends "bench" | "task" = "bench"
    Index

    Methods

    Methods