From 715c5f5b6a0da0059b3660424f5d6381be927d02 Mon Sep 17 00:00:00 2001 From: unadlib Date: Fri, 22 Mar 2024 02:38:02 +0800 Subject: [PATCH] docs(readme): update --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a6f2669..97e2825 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,10 @@ const App = () => { - @@ -89,8 +92,8 @@ const App = () => { | `controls.back` | () => void | Go back to the previous state | | `controls.forward` | () => void | Go forward to the next state | | `controls.reset` | () => void | Reset the state to the initial state | -| `controls.canUndo` | () => boolean | Check if can go back to the previous state | -| `controls.canRedo` | () => boolean | Check if can go forward to the next state | +| `controls.canBack` | () => boolean | Check if can go back to the previous state | +| `controls.canForward` | () => boolean | Check if can go forward to the next state | | `controls.getHistory` | () => T[] | Get the history of the state | | `controls.patches` | TravelPatches[] | Get the patches history of the state | | `controls.position` | number | Get the current position of the state |