diff --git a/type-definitions/dom-event.d.ts b/type-definitions/dom-event.d.ts index f45edb4..1bb01c8 100644 --- a/type-definitions/dom-event.d.ts +++ b/type-definitions/dom-event.d.ts @@ -1,49 +1,49 @@ import { Stream } from "@most/types"; -export function domEvent(event: E, node: Element, capture?: boolean | AddEventListenerOptions): Stream -export function domEvent(event: E, node: HTMLElement, capture?: boolean | AddEventListenerOptions): Stream -export function domEvent(event: E, node: SVGElement, capture?: boolean | AddEventListenerOptions): Stream -export function domEvent(event: string, node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream +export function domEvent(event: E, node: N, capture?: boolean | AddEventListenerOptions): Stream +export function domEvent(event: E, node: HTMLElement, capture?: boolean | AddEventListenerOptions): Stream +export function domEvent(event: E, node: SVGElement, capture?: boolean | AddEventListenerOptions): Stream +export function domEvent(event: string, node: N, capture?: boolean | AddEventListenerOptions): Stream -export function blur(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function focus(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function focusin(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function focusout(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function click(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function dblclick(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function mousedown(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function mouseup(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function mousemove(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function mouseover(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function mouseenter(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function mouseout(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function mouseleave(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function change(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function select(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function submit(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function keydown(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function keypress(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function keyup(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function input(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function contextmenu(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function resize(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function scroll(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function error(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; +export function blur(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; +export function focus(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; +export function focusin(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; +export function focusout(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; +export function click(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; +export function dblclick(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; +export function mousedown(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; +export function mouseup(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; +export function mousemove(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; +export function mouseover(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; +export function mouseenter(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; +export function mouseout(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; +export function mouseleave(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; +export function change(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; +export function select(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; +export function submit(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; +export function keydown(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; +export function keypress(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; +export function keyup(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; +export function input(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; +export function contextmenu(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; +export function resize(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; +export function scroll(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; +export function error(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function hashchange(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function popstate(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function load(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function unload(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; +export function hashchange(node: N, capture?: boolean | AddEventListenerOptions): Stream; +export function popstate(node: N, capture?: boolean | AddEventListenerOptions): Stream; +export function load(node: N, capture?: boolean | AddEventListenerOptions): Stream; +export function unload(node: N, capture?: boolean | AddEventListenerOptions): Stream; -export function pointerdown(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function pointerup(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function pointermove(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function pointerover(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function pointerenter(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function pointerout(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function pointerleave(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; +export function pointerdown(node: N, capture?: boolean | AddEventListenerOptions): Stream; +export function pointerup(node: N, capture?: boolean | AddEventListenerOptions): Stream; +export function pointermove(node: N, capture?: boolean | AddEventListenerOptions): Stream; +export function pointerover(node: N, capture?: boolean | AddEventListenerOptions): Stream; +export function pointerenter(node: N, capture?: boolean | AddEventListenerOptions): Stream; +export function pointerout(node: N, capture?: boolean | AddEventListenerOptions): Stream; +export function pointerleave(node: N, capture?: boolean | AddEventListenerOptions): Stream; -export function touchstart(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function touchend(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function touchmove(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; -export function touchcancel(node: EventTarget, capture?: boolean | AddEventListenerOptions): Stream; +export function touchstart(node: N, capture?: boolean | AddEventListenerOptions): Stream; +export function touchend(node: N, capture?: boolean | AddEventListenerOptions): Stream; +export function touchmove(node: N, capture?: boolean | AddEventListenerOptions): Stream; +export function touchcancel(node: N, capture?: boolean | AddEventListenerOptions): Stream;