Hacker News new | ask | show | jobs
by m0rde 670 days ago
Was just thinking about the lack of undo/redo in a complex web app we're building involving ling-running APIs and DB transactions. What are some other undo/redo TypeScript libraries out there.

For Oops particularly, I think TS interfaces for commands would help quite or lot here. Or maybe even annotations or decorators?

2 comments

No types is a non-starter 100% of the time. I wouldn’t use a library for something like an undo manager though — the core is quite simple and you’ll want full control.
It's a ~600 line file with extensive comments, probably 300 of code. It wouldn't be too hard to type this at all.