Skip to content

Commit b46d2a0

Browse files
roydukkeyantfu
andauthoredOct 24, 2024
fix(useManualRefHistory): canUndo and canRedo typing to be computed ref (#4261)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
1 parent bf0f249 commit b46d2a0

File tree

1 file changed

+3
-3
lines changed
  • packages/core/useManualRefHistory

1 file changed

+3
-3
lines changed
 

‎packages/core/useManualRefHistory/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Ref } from 'vue-demi'
1+
import type { ComputedRef, Ref } from 'vue-demi'
22
import type { CloneFn } from '../useCloned'
33
import { timestamp } from '@vueuse/shared'
44
import { computed, markRaw, ref } from 'vue-demi'
@@ -65,12 +65,12 @@ export interface UseManualRefHistoryReturn<Raw, Serialized> {
6565
/**
6666
* A ref representing if undo is possible (non empty undoStack)
6767
*/
68-
canUndo: Ref<boolean>
68+
canUndo: ComputedRef<boolean>
6969

7070
/**
7171
* A ref representing if redo is possible (non empty redoStack)
7272
*/
73-
canRedo: Ref<boolean>
73+
canRedo: ComputedRef<boolean>
7474

7575
/**
7676
* Undo changes

0 commit comments

Comments
 (0)