index.js.flow 9.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. // @flow
  2. import type { Stream } from "@most/types"
  3. declare export function domEvent(event: 'blur', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<FocusEvent>
  4. declare export function domEvent(event: 'focus', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<FocusEvent>
  5. declare export function domEvent(event: 'focusin', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<FocusEvent>
  6. declare export function domEvent(event: 'focusout', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<FocusEvent>
  7. declare export function domEvent(event: 'click', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<MouseEvent>
  8. declare export function domEvent(event: 'dblclick', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<MouseEvent>
  9. declare export function domEvent(event: 'mousedown', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<MouseEvent>
  10. declare export function domEvent(event: 'mouseup', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<MouseEvent>
  11. declare export function domEvent(event: 'mousemove', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<MouseEvent>
  12. declare export function domEvent(event: 'mouseover', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<MouseEvent>
  13. declare export function domEvent(event: 'mouseenter', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<MouseEvent>
  14. declare export function domEvent(event: 'mouseout', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<MouseEvent>
  15. declare export function domEvent(event: 'mouseleave', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<MouseEvent>
  16. declare export function domEvent(event: 'change', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<UIEvent>
  17. declare export function domEvent(event: 'select', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<UIEvent>
  18. declare export function domEvent(event: 'submit', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<Event>
  19. declare export function domEvent(event: 'keydown', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<KeyboardEvent>
  20. declare export function domEvent(event: 'keypress', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<KeyboardEvent>
  21. declare export function domEvent(event: 'keyup', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<KeyboardEvent>
  22. declare export function domEvent(event: 'input', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<Event>
  23. declare export function domEvent(event: 'contextmenu', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<UIEvent>
  24. declare export function domEvent(event: 'resize', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<UIEvent>
  25. declare export function domEvent(event: 'scroll', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<UIEvent>
  26. declare export function domEvent(event: 'error', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<Event>
  27. declare export function domEvent(event: 'hashchange', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<Event>
  28. declare export function domEvent(event: 'popstate', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<Event>
  29. declare export function domEvent(event: 'load', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<Event>
  30. declare export function domEvent(event: 'unload', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<Event>
  31. declare export function domEvent(event: 'pointerdown', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<Event>
  32. declare export function domEvent(event: 'pointerup', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<Event>
  33. declare export function domEvent(event: 'pointermove', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<Event>
  34. declare export function domEvent(event: 'pointerover', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<Event>
  35. declare export function domEvent(event: 'pointerenter', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<Event>
  36. declare export function domEvent(event: 'pointerout', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<Event>
  37. declare export function domEvent(event: 'pointerleave', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<Event>
  38. declare export function domEvent(event: 'touchstart', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<TouchEvent>
  39. declare export function domEvent(event: 'touchend', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<TouchEvent>
  40. declare export function domEvent(event: 'touchmove', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<TouchEvent>
  41. declare export function domEvent(event: 'touchcancel', node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<TouchEvent>
  42. declare export function domEvent(event: string, node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<Event>
  43. declare export function blur(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<FocusEvent>
  44. declare export function focus(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<FocusEvent>
  45. declare export function focusin(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<FocusEvent>
  46. declare export function focusout(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<FocusEvent>
  47. declare export function click(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<MouseEvent>
  48. declare export function dblclick(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<MouseEvent>
  49. declare export function mousedown(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<MouseEvent>
  50. declare export function mouseup(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<MouseEvent>
  51. declare export function mousemove(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<MouseEvent>
  52. declare export function mouseover(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<MouseEvent>
  53. declare export function mouseenter(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<MouseEvent>
  54. declare export function mouseout(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<MouseEvent>
  55. declare export function mouseleave(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<MouseEvent>
  56. declare export function change(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<UIEvent>
  57. declare export function select(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<UIEvent>
  58. declare export function submit(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<Event>
  59. declare export function keydown(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<KeyboardEvent>
  60. declare export function keypress(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<KeyboardEvent>
  61. declare export function keyup(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<KeyboardEvent>
  62. declare export function input(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<Event>
  63. declare export function contextmenu(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<UIEvent>
  64. declare export function resize(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<UIEvent>
  65. declare export function scroll(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<UIEvent>
  66. declare export function error(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<Event>
  67. declare export function hashchange(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<Event>
  68. declare export function popstate(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<Event>
  69. declare export function load(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<Event>
  70. declare export function unload(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<Event>
  71. declare export function pointerdown(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<Event>
  72. declare export function pointerup(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<Event>
  73. declare export function pointermove(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<Event>
  74. declare export function pointerover(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<Event>
  75. declare export function pointerenter(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<Event>
  76. declare export function pointerout(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<Event>
  77. declare export function pointerleave(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<Event>
  78. declare export function touchstart(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<TouchEvent>
  79. declare export function touchend(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<TouchEvent>
  80. declare export function touchmove(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<TouchEvent>
  81. declare export function touchcancel(node: EventTarget, capture?: EventListenerOptionsOrUseCapture): Stream<TouchEvent>