From a8279d1c97c2f2c6a5d9fd971abb27767b5beb4c Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 18 Oct 2023 10:38:29 +0100 Subject: [PATCH] fix: use explicit type imports (#830) --- src/runtime/composables/usePopper.ts | 6 ++++-- src/runtime/composables/useUI.ts | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/runtime/composables/usePopper.ts b/src/runtime/composables/usePopper.ts index 7ec2fe44e4..ffc2f17451 100644 --- a/src/runtime/composables/usePopper.ts +++ b/src/runtime/composables/usePopper.ts @@ -1,13 +1,15 @@ import { ref, onMounted, watchEffect } from 'vue' import type { Ref } from 'vue' -import { popperGenerator, defaultModifiers, VirtualElement } from '@popperjs/core/lib/popper-lite' +import { popperGenerator, defaultModifiers } from '@popperjs/core/lib/popper-lite' +import type { VirtualElement } from '@popperjs/core/lib/popper-lite' import type { Instance } from '@popperjs/core' import flip from '@popperjs/core/lib/modifiers/flip' import offset from '@popperjs/core/lib/modifiers/offset' import preventOverflow from '@popperjs/core/lib/modifiers/preventOverflow' import computeStyles from '@popperjs/core/lib/modifiers/computeStyles' import eventListeners from '@popperjs/core/lib/modifiers/eventListeners' -import { MaybeElement, unrefElement } from '@vueuse/core' +import { unrefElement } from '@vueuse/core' +import type { MaybeElement } from '@vueuse/core' import type { PopperOptions } from '../types/popper' export const createPopper = popperGenerator({ diff --git a/src/runtime/composables/useUI.ts b/src/runtime/composables/useUI.ts index 2e38479a2f..a8c4c21925 100644 --- a/src/runtime/composables/useUI.ts +++ b/src/runtime/composables/useUI.ts @@ -2,7 +2,7 @@ import { computed, toValue, useAttrs } from 'vue' import type { Ref } from 'vue' import { useAppConfig } from '#imports' import { mergeConfig, omit, get } from '../utils' -import { Strategy } from '../types' +import type { Strategy } from '../types' export const useUI = (key, $ui: Ref | undefined>, $config?: Ref | T, $wrapperClass?: Ref, withAppConfig: boolean = false) => { const $attrs = useAttrs()