diff --git a/packages/core/useMutationObserver/index.ts b/packages/core/useMutationObserver/index.ts index 64c5f982179..94201515807 100644 --- a/packages/core/useMutationObserver/index.ts +++ b/packages/core/useMutationObserver/index.ts @@ -1,6 +1,6 @@ import { tryOnScopeDispose } from '@vueuse/shared' import { watch } from 'vue-demi' -import type { MaybeElementRef } from '../unrefElement' +import type { MaybeComputedElementRef } from '../unrefElement' import { unrefElement } from '../unrefElement' import { useSupported } from '../useSupported' import type { ConfigurableWindow } from '../_configurable' @@ -18,7 +18,7 @@ export interface UseMutationObserverOptions extends MutationObserverInit, Config * @param options */ export function useMutationObserver( - target: MaybeElementRef, + target: MaybeComputedElementRef, callback: MutationCallback, options: UseMutationObserverOptions = {}, ) {