Closed cm226 closed 2 years ago
Thank you @cm226! I adjusted the typing. In the next major release, I want to add proper typing information to the iterators. When I originally implemented this, I had problems with the Iterator typings and set everything to any
.
Describe the bug I think that the typescript annotations for the iterator on the Y.Map type don't match what the function actually returns. The type for the iterator in map is:
The implementation of Y.Map does:
entries has the type
which returns an Iterator of [key, value] array type.
I dont think these types match.
To Reproduce Can be seen by running
Expected behavior not sure what exactly should happen, but the typescript types should reflect the real type information.
Environment Information
Huly®: YJS-287