From fa2f6b8f06db089512e5c7866d07d35a656d7cdd Mon Sep 17 00:00:00 2001 From: Waleed Khaled Date: Thu, 4 Aug 2022 00:01:26 +0400 Subject: [PATCH] feat(useCycleList): support MaybeRef for initialValue (#2025) --- packages/core/useCycleList/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/useCycleList/index.ts b/packages/core/useCycleList/index.ts index 3e3427c851b..7d7bd8ce886 100644 --- a/packages/core/useCycleList/index.ts +++ b/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 { /** * The initial value of the state. * A ref can be provided to reuse. */ - initialValue?: T + initialValue?: MaybeRef /** * The default index when