Skip to content

Commit

Permalink
change type t of typed custom event module functor
Browse files Browse the repository at this point in the history
  • Loading branch information
mununki committed Feb 4, 2022
1 parent 22c7ed1 commit 0de7ecd
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions lib/js/tests/Webapi/Dom/Webapi__Dom__CustomEvent__test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ var eventWithDetail = new CustomEvent("event-with-detail");

var eventWithOptions = new CustomEvent("event-with-detail", t);

Curry._1(Webapi__Dom__CustomEvent.eventPhase, eventWithDetail);
Curry._1(EventWithDetail.eventPhase, eventWithDetail);

Curry._1(Webapi__Dom__CustomEvent.eventPhase, eventWithOptions);
Curry._1(EventWithDetail.eventPhase, eventWithOptions);

eventWithDetail.preventDefault();

Expand Down
52 changes: 26 additions & 26 deletions tests/Webapi/Dom/Webapi__Dom__CustomEvent__test.res
Original file line number Diff line number Diff line change
Expand Up @@ -33,34 +33,34 @@ let eventWithDetail = EventWithDetail.make("event-with-detail")
let eventWithOptions = EventWithDetail.makeWithOptions("event-with-detail", t)

/* Event */
let _ = bubbles(eventWithDetail)
let _ = cancelable(eventWithDetail)
let _ = composed(eventWithDetail)
let _ = currentTarget(eventWithDetail)
let _ = defaultPrevented(eventWithDetail)
let _ = eventPhase(eventWithDetail)
let _ = target(eventWithDetail)
let _ = timeStamp(eventWithDetail)
let _ = type_(eventWithDetail)
let _ = isTrusted(eventWithDetail)
let _ = EventWithDetail.bubbles(eventWithDetail)
let _ = EventWithDetail.cancelable(eventWithDetail)
let _ = EventWithDetail.composed(eventWithDetail)
let _ = EventWithDetail.currentTarget(eventWithDetail)
let _ = EventWithDetail.defaultPrevented(eventWithDetail)
let _ = EventWithDetail.eventPhase(eventWithDetail)
let _ = EventWithDetail.target(eventWithDetail)
let _ = EventWithDetail.timeStamp(eventWithDetail)
let _ = EventWithDetail.type_(eventWithDetail)
let _ = EventWithDetail.isTrusted(eventWithDetail)

let _ = bubbles(eventWithOptions)
let _ = cancelable(eventWithOptions)
let _ = composed(eventWithOptions)
let _ = currentTarget(eventWithOptions)
let _ = defaultPrevented(eventWithOptions)
let _ = eventPhase(eventWithOptions)
let _ = target(eventWithOptions)
let _ = timeStamp(eventWithOptions)
let _ = type_(eventWithOptions)
let _ = isTrusted(eventWithOptions)
let _ = EventWithDetail.bubbles(eventWithOptions)
let _ = EventWithDetail.cancelable(eventWithOptions)
let _ = EventWithDetail.composed(eventWithOptions)
let _ = EventWithDetail.currentTarget(eventWithOptions)
let _ = EventWithDetail.defaultPrevented(eventWithOptions)
let _ = EventWithDetail.eventPhase(eventWithOptions)
let _ = EventWithDetail.target(eventWithOptions)
let _ = EventWithDetail.timeStamp(eventWithOptions)
let _ = EventWithDetail.type_(eventWithOptions)
let _ = EventWithDetail.isTrusted(eventWithOptions)

preventDefault(eventWithDetail)
stopImmediatePropagation(eventWithDetail)
stopPropagation(eventWithDetail)
EventWithDetail.preventDefault(eventWithDetail)
EventWithDetail.stopImmediatePropagation(eventWithDetail)
EventWithDetail.stopPropagation(eventWithDetail)

preventDefault(eventWithOptions)
stopImmediatePropagation(eventWithOptions)
stopPropagation(eventWithOptions)
EventWithDetail.preventDefault(eventWithOptions)
EventWithDetail.stopImmediatePropagation(eventWithOptions)
EventWithDetail.stopPropagation(eventWithOptions)

let _ = (eventWithDetail->EventWithDetail.detail).component

0 comments on commit 0de7ecd

Please sign in to comment.