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.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: generated-docs/React/Basic/DOM/Events.md
+38Lines changed: 38 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,19 @@ newtype EventFn a b
45
45
```purescript
46
46
Semigroupoid EventFn
47
47
Category EventFn
48
+
(IsSymbol l, RowCons l (EventFn a b) fns_rest fns, RowCons l b r_rest r, RowLacks l fns_rest, RowLacks l r_rest, Merge rest fns_rest a r_rest) => Merge (Cons l (EventFn a b) rest) fns a r
49
+
```
50
+
51
+
#### `handler`
52
+
53
+
```purescript
54
+
handler :: forall a. EventFn SyntheticEvent a -> (a -> Eff (react :: ReactFX) Unit) -> EventHandler
55
+
```
56
+
57
+
#### `merge`
58
+
59
+
```purescript
60
+
merge :: forall a fns fns_list r. RowToList fns fns_list => Merge fns_list fns a r => { | fns } -> EventFn a ({ | r })
@@ -155,4 +180,17 @@ timeStamp :: EventFn SyntheticEvent Number
155
180
type_ :: EventFn SyntheticEvent String
156
181
```
157
182
183
+
#### `Merge`
184
+
185
+
```purescript
186
+
class Merge (rl :: RowList) fns a r | rl -> fns, rl a -> r where
187
+
mergeImpl :: RLProxy rl -> { | fns } -> EventFn a ({ | r })
188
+
```
189
+
190
+
##### Instances
191
+
```purescript
192
+
Merge Nil () a ()
193
+
(IsSymbol l, RowCons l (EventFn a b) fns_rest fns, RowCons l b r_rest r, RowLacks l fns_rest, RowLacks l r_rest, Merge rest fns_rest a r_rest) => Merge (Cons l (EventFn a b) rest) fns a r
0 commit comments