Vinyl
    Preparing search index...

    Interface Patch<T, EventMap>

    Any object that may be disposed.

    interface Patch<in T, in EventMap = AnyRecord> {
        eventFabricated?: Signal<Event>;
        events?: EventPatches<EventMap>;
        properties?: PropertyPatches<T>;
        dispose(): void;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    eventFabricated?: Signal<Event>

    A signal that emits synthetic events. These events will be dispatched on the proxy, not on the original event target. If undefined, no events are fabricated.

    Overridden events. Event patches may provide an alternate event to emit, or null to prevent an event from dispatching on the proxy.

    Note: Patched events have divergent behavior when using Event.stopImmediatePropagation. All handlers added to the patched Proxy will still be called after stopImmediatePropagation. It is the author's opinion that using stopImmediatePropagation is an anti-pattern, and one handler should not be allowed to influence the behavior of neighboring handlers.

    properties?: PropertyPatches<T>

    Overridden properties.

    Methods

    • Returns void