Amazon Vinyl
    Preparing search index...

    Type Alias ElementHookExtensions<E>

    ElementHookExtensions: Omit<HookExtensions, "onConnect"> & {
        onConnect?: (node: E) => Maybe<Unsubscribe> | void;
    }

    The hook extension properties for an element of type E. Hooks given the element receive it as E, so <input onConnect={(el) => el.value} /> is typed as an HTMLInputElement.

    Type Parameters

    • E extends HTMLElement