This turned out to be a bit more involving than I first thought. It was easy to come up with a working proof of concept, but the challenge was in balancing simplicity with functionality while staying true to the original code.
For keeping things simple, I left out of this draft PR the TS types and most tests. However, before I spend more time packaging a more complete version, I would appreciate your feedback on the direction it's taking. Thanks in advance!
This turned out to be a bit more involving than I first thought. It was easy to come up with a working proof of concept, but the challenge was in balancing simplicity with functionality while staying true to the original code.
For keeping things simple, I left out of this draft PR the TS types and most tests. However, before I spend more time packaging a more complete version, I would appreciate your feedback on the direction it's taking. Thanks in advance!
This PR implements proposal #59.