Skip to content

Commit

Permalink
feat(useMutationObserver): use MaybeComputedElementRef (#3430)
Browse files Browse the repository at this point in the history
  • Loading branch information
huodoushigemi committed Oct 7, 2023
1 parent 23b8ca9 commit 8167bc4
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 8167bc4

Please sign in to comment.