Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(useMutationObserver)!: rename type MutationObserverOptions to UseMutationObserverOptions #1884

Merged
merged 1 commit into from Jul 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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