wavesurfer.js
    Preparing search index...

    Interface Signal<T>

    Reactive primitives for managing state in WaveSurfer. Signals notify synchronously; use batch() to coalesce. computed/effect auto-track dependencies when no dependency array is given, and are always disposable.

    interface Signal<T> {
        get value(): T;
        subscribe(callback: (value: T) => void): () => void;
    }

    Type Parameters

    • T

    Hierarchy (View Summary)

    Index
    • get value(): T

      Returns T

    • Parameters

      • callback: (value: T) => void

      Returns () => void