Permalink
Cannot retrieve contributors at this time
13 lines (12 sloc)
377 Bytes
|
module Event = { |
|
type mouseDownEventType; |
|
[@bs.get] external code : mouseDownEventType => string = ""; |
|
[@bs.get] external keyCode : mouseDownEventType => int = ""; |
|
}; |
|
|
|
module Document = { |
|
/* hardcoded since we're only using this one */ |
|
[@bs.val] [@bs.scope "document"] |
|
external addEventListener : |
|
(string, Event.mouseDownEventType => unit) => unit = |
|
""; |
|
}; |
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.