jazelly / collections-jdk

TS implementation for JDK Collections
MIT License
5 stars 2 forks source link

[Feature request] Improve the type readability #4

Open tarn15h opened 5 months ago

tarn15h commented 5 months ago

The typing in PriorityQueue does the job, but it is very hard to understand the intention.

It is recommended to use declare to cope up with multiple constructors, which should achieve the same thing, and more readable.

jazelly commented 5 months ago

Thank you for the suggestion.

Yes, that's exactly what I'd like to do, which is more standard. I think it's a right time to do it in case it gets too hard to refactor them.