Vinyl
    Preparing search index...

    Type Alias EventPatch<T>

    EventPatch: (event: T) => T | null

    Handles an event emitted from the event target. The returned event will be emitted in its place on the proxy.

    Fabricated events from eventFabricated will not be passed to this handler and cannot be squelched.

    Type Parameters

    • T

    Type declaration

      • (event: T): T | null
      • Parameters

        • event: T

          The original event from the event target. This should not be modified directly, but may be cloned and a modified clone may be returned.

        Returns T | null

        Returns the event to emit on the proxy or null to squelch the event.