Skip to content

Commit

Permalink
feat(useCycleList): support MaybeRef for initialValue (#2025)
Browse files Browse the repository at this point in the history
  • Loading branch information
Waleed-KH committed Aug 3, 2022
1 parent 8f2b799 commit fa2f6b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/useCycleList/index.ts
@@ -1,12 +1,12 @@
import type { Ref } from 'vue-demi'
import { computed, shallowRef } from 'vue-demi'
import { type Ref, computed, shallowRef } from 'vue-demi'
import { type MaybeRef } from '@vueuse/shared'

export interface UseCycleListOptions<T> {
/**
* The initial value of the state.
* A ref can be provided to reuse.
*/
initialValue?: T
initialValue?: MaybeRef<T>

/**
* The default index when
Expand Down

0 comments on commit fa2f6b8

Please sign in to comment.