diff --git a/packages/embla-carousel-vue/src/components/emblaCarouselVue.ts b/packages/embla-carousel-vue/src/components/emblaCarouselVue.ts index 80173f2ed..ab121e66f 100644 --- a/packages/embla-carousel-vue/src/components/emblaCarouselVue.ts +++ b/packages/embla-carousel-vue/src/components/emblaCarouselVue.ts @@ -1,4 +1,12 @@ -import { Ref, isRef, watch, onMounted, onBeforeUnmount, shallowRef } from 'vue' +import { + Ref, + MaybeRef, + isRef, + watch, + onMounted, + onBeforeUnmount, + shallowRef +} from 'vue' import { areOptionsEqual, arePluginsEqual, @@ -16,8 +24,8 @@ export type EmblaCarouselVueType = [ ] function emblaCarouselVue( - options: EmblaOptionsType | Ref = {}, - plugins: EmblaPluginType[] | Ref = [] + options: MaybeRef = {}, + plugins: MaybeRef = [] ): EmblaCarouselVueType { const isRefOptions = isRef(options) const isRefPlugins = isRef(plugins)