Commit 746d9a3
committed
fix(web): wrap toFeedEvent callback to fix TS2345 type error
TypeScript strict mode rejects passing toFeedEvent directly to .map()
because PumpEvent (a union of interfaces without index signatures)
is not assignable to the inferred callback parameter type with an
index signature. Wrapping with an arrow function avoids the strict
assignability check.1 parent 7b4401a commit 746d9a3
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| |||
0 commit comments