-
I really love how contract instances and things like |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
It should already do that! Have an example? Works fine in this TypeScript Playground. |
Beta Was this translation helpful? Give feedback.
-
I sure do! One image is of |
Beta Was this translation helpful? Give feedback.
This is a limitation of TypeScript at the moment and how it handles higher-order functions. See microsoft/TypeScript#29841 Workaround is to cast each mapped value using
ContractFunctionConfig
:TypeScript Playground