From 9b4f95680e073eb5cc966af28f7f2417e0c53fc9 Mon Sep 17 00:00:00 2001 From: Jelf <353742991@qq.com> Date: Wed, 13 Jul 2022 21:27:57 +0800 Subject: [PATCH] fix(useMutationObserver)!: rename type `MutationObserverOptions` to `UseMutationObserverOptions` (#1884) --- packages/core/useMutationObserver/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/useMutationObserver/index.ts b/packages/core/useMutationObserver/index.ts index 199c2322023..64c5f982179 100644 --- a/packages/core/useMutationObserver/index.ts +++ b/packages/core/useMutationObserver/index.ts @@ -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. @@ -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