xplato / useUndoable

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

Passing ignoreAction parameter causes ts(2554) error #9

Closed rfdearborn closed 2 years ago

rfdearborn commented 2 years ago

Great package!

When passing ignoreAction to setState, typescript shows Expected 1-2 arguments, but got 3. ts(2554). Looks like ignoreAction?: boolean should be added here? I'm on 3.3.10.

xplato commented 2 years ago

Nice catch! Version 3.3.11 should resolve this issue.

Thank you for the heads up!