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
I think flatqueue should potentially have a constructor where you can optionally pass those arrays (with documented requirements for the implementation), or it should expose these fields in the typings (however, that violates the black-box principle and might lead to stupid bugs).
There might be other good design alternatives too.
Until that works, it's probably easiest to use ts-ignore and / or wrap the flatqueue constructor/class in a utility function/class.
Trying to take this advice in the README: https://github.com/mourner/flatqueue#using-typed-arrays
But Typescript is not happy:
I am using flatqueue v2.0.3.
What am I doing wrong here?
The text was updated successfully, but these errors were encountered: