Type Alias UI<E, S>

UI: {
    emit: <T>(type: string, detail?: T) => UI<E, S>;
    host: UIElement<S>;
    on: (
        type: string,
        listenerOrProvider:
            | EventListenerOrEventListenerObject
            | EventListenerProvider,
    ) => UI<E, S>;
    pass: <T extends ComponentSignals>(
        passedSignalsOrProvider: PassedSignals<T> | PassedSignalsProvider<T>,
    ) => UI<E, S>;
    sync: (
        ...fns: (host: UIElement<S>, target: E, index: number) => void[],
    ) => UI<E, S>;
    targets: E[];
}

Type Parameters

Type declaration