@@ -66,46 +66,24 @@ module CM = {
66
66
}
67
67
68
68
@module ("codemirror" )
69
- external onMouseOver : (
70
- Dom .element ,
71
- @as ("mouseover" ) _ ,
72
- @uncurry ReactEvent .Mouse .t => unit ,
73
- ) => unit = "on"
69
+ external onMouseOver : (Dom .element , @as ("mouseover" ) _ , ReactEvent .Mouse .t => unit ) => unit = "on"
74
70
75
71
@module ("codemirror" )
76
- external onMouseMove : (
77
- Dom .element ,
78
- @as ("mousemove" ) _ ,
79
- @uncurry ReactEvent .Mouse .t => unit ,
80
- ) => unit = "on"
72
+ external onMouseMove : (Dom .element , @as ("mousemove" ) _ , ReactEvent .Mouse .t => unit ) => unit = "on"
81
73
82
74
@module ("codemirror" )
83
- external offMouseOver : (
84
- Dom .element ,
85
- @as ("mouseover" ) _ ,
86
- @uncurry ReactEvent .Mouse .t => unit ,
87
- ) => unit = "off"
75
+ external offMouseOver : (Dom .element , @as ("mouseover" ) _ , ReactEvent .Mouse .t => unit ) => unit =
76
+ "off"
88
77
89
78
@module ("codemirror" )
90
- external offMouseOut : (
91
- Dom .element ,
92
- @as ("mouseout" ) _ ,
93
- @uncurry ReactEvent .Mouse .t => unit ,
94
- ) => unit = "off"
79
+ external offMouseOut : (Dom .element , @as ("mouseout" ) _ , ReactEvent .Mouse .t => unit ) => unit = "off"
95
80
96
81
@module ("codemirror" )
97
- external offMouseMove : (
98
- Dom .element ,
99
- @as ("mousemove" ) _ ,
100
- @uncurry ReactEvent .Mouse .t => unit ,
101
- ) => unit = "off"
82
+ external offMouseMove : (Dom .element , @as ("mousemove" ) _ , ReactEvent .Mouse .t => unit ) => unit =
83
+ "off"
102
84
103
85
@module ("codemirror" )
104
- external onMouseOut : (
105
- Dom .element ,
106
- @as ("mouseout" ) _ ,
107
- @uncurry ReactEvent .Mouse .t => unit ,
108
- ) => unit = "on"
86
+ external onMouseOut : (Dom .element , @as ("mouseout" ) _ , ReactEvent .Mouse .t => unit ) => unit = "on"
109
87
110
88
@module ("codemirror" )
111
89
external fromTextArea : (Dom .element , Options .t ) => t = "fromTextArea"
@@ -122,7 +100,7 @@ module CM = {
122
100
@send external refresh : t => unit = "refresh"
123
101
124
102
@send
125
- external onChange : (t , @as ("change" ) _ , @ uncurry t => unit ) => unit = "on"
103
+ external onChange : (t , @as ("change" ) _ , t => unit ) => unit = "on"
126
104
127
105
@send external toTextArea : t => unit = "toTextArea"
128
106
@@ -131,7 +109,7 @@ module CM = {
131
109
@send external getValue : t => string = "getValue"
132
110
133
111
@send
134
- external operation : (t , @ uncurry unit => unit ) => unit = "operation"
112
+ external operation : (t , unit => unit ) => unit = "operation"
135
113
136
114
@send
137
115
external setGutterMarker : (t , int , string , Dom .element ) => unit = "setGutterMarker"
@@ -485,7 +463,7 @@ let extractRowColFromId = (id: string): option<(int, int)> =>
485
463
| _ => None
486
464
}
487
465
488
- module ErrorHash = Belt .Id .MakeHashableU ({
466
+ module ErrorHash = Belt .Id .MakeHashable ({
489
467
type t = int
490
468
let hash = a => a
491
469
let eq = (a , b ) => a == b
@@ -536,7 +514,7 @@ let updateErrors = (~state: state, ~onMarkerFocus=?, ~onMarkerFocusLeave=?, ~cm:
536
514
(),
537
515
),
538
516
)
539
- -> Array .push (state .marked , _ )
517
+ -> ( Array .push (state .marked , _ ) )
540
518
-> ignore
541
519
()
542
520
}
0 commit comments