Skip to content

Commit

Permalink
feat(useMutationObserver): use MaybeComputedElementRef
Browse files Browse the repository at this point in the history
  • Loading branch information
huodoushigemi committed Sep 25, 2023
1 parent fb08312 commit bf3d793
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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'
Expand All @@ -18,7 +18,7 @@ export interface UseMutationObserverOptions extends MutationObserverInit, Config
* @param options
*/
export function useMutationObserver(
target: MaybeElementRef,
target: MaybeComputedElementRef,
callback: MutationCallback,
options: UseMutationObserverOptions = {},
) {
Expand Down

0 comments on commit bf3d793

Please sign in to comment.