xplato / useUndoable

↪ React hook for undo/redo functionality (with batteries included)
MIT License
168 stars 7 forks source link

(fix): Add present type in useUndoable function #4

Closed himself65 closed 2 years ago

xplato commented 2 years ago

If I'm understanding this properly, this should allow the following usage, correct?

const { ... } = useUndoable<SomeTypeHere>(...);
himself65 commented 2 years ago

If I'm understanding this properly, this should allow the following usage, correct?

const { ... } = useUndoable<SomeTypeHere>(...);

yep