Skip to content

Commit

Permalink
fix(useManualRefHistory): canUndo and canRedo typing to be comput…
Browse files Browse the repository at this point in the history
…ed ref (#4261)

Co-authored-by: Anthony Fu <[email protected]>
  • Loading branch information
roydukkey and antfu authored Oct 24, 2024
1 parent bf0f249 commit b46d2a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/useManualRefHistory/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Ref } from 'vue-demi'
import type { ComputedRef, Ref } from 'vue-demi'
import type { CloneFn } from '../useCloned'
import { timestamp } from '@vueuse/shared'
import { computed, markRaw, ref } from 'vue-demi'
Expand Down Expand Up @@ -65,12 +65,12 @@ export interface UseManualRefHistoryReturn<Raw, Serialized> {
/**
* A ref representing if undo is possible (non empty undoStack)
*/
canUndo: Ref<boolean>
canUndo: ComputedRef<boolean>

/**
* A ref representing if redo is possible (non empty redoStack)
*/
canRedo: Ref<boolean>
canRedo: ComputedRef<boolean>

/**
* Undo changes
Expand Down

0 comments on commit b46d2a0

Please sign in to comment.