Skip to content

Commit

Permalink
fix(useMutationObserver)!: rename type MutationObserverOptions to `…
Browse files Browse the repository at this point in the history
…UseMutationObserverOptions` (#1884)
  • Loading branch information
okxiaoliang4 committed Jul 13, 2022
1 parent ab33214 commit 9b4f956
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/useMutationObserver/index.ts
Expand Up @@ -6,7 +6,7 @@ import { useSupported } from '../useSupported'
import type { ConfigurableWindow } from '../_configurable'
import { defaultWindow } from '../_configurable'

export interface MutationObserverOptions extends MutationObserverInit, ConfigurableWindow {}
export interface UseMutationObserverOptions extends MutationObserverInit, ConfigurableWindow {}

/**
* Watch for changes being made to the DOM tree.
Expand All @@ -20,7 +20,7 @@ export interface MutationObserverOptions extends MutationObserverInit, Configura
export function useMutationObserver(
target: MaybeElementRef,
callback: MutationCallback,
options: MutationObserverOptions = {},
options: UseMutationObserverOptions = {},
) {
const { window = defaultWindow, ...mutationOptions } = options
let observer: MutationObserver | undefined
Expand Down

0 comments on commit 9b4f956

Please sign in to comment.