We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
antfu
Learn more about funding links in repositories.
Report abuse
canUndo
canRedo
1 parent bf0f249 commit b46d2a0Copy full SHA for b46d2a0
packages/core/useManualRefHistory/index.ts
@@ -1,4 +1,4 @@
1
-import type { Ref } from 'vue-demi'
+import type { ComputedRef, Ref } from 'vue-demi'
2
import type { CloneFn } from '../useCloned'
3
import { timestamp } from '@vueuse/shared'
4
import { computed, markRaw, ref } from 'vue-demi'
@@ -65,12 +65,12 @@ export interface UseManualRefHistoryReturn<Raw, Serialized> {
65
/**
66
* A ref representing if undo is possible (non empty undoStack)
67
*/
68
- canUndo: Ref<boolean>
+ canUndo: ComputedRef<boolean>
69
70
71
* A ref representing if redo is possible (non empty redoStack)
72
73
- canRedo: Ref<boolean>
+ canRedo: ComputedRef<boolean>
74
75
76
* Undo changes
0 commit comments