chore: deps fix

This commit is contained in:
Ou
2025-03-26 23:52:51 +08:00
parent cd7d5bdcf9
commit 654bfd1651
2 changed files with 3 additions and 3 deletions
@@ -59,7 +59,7 @@ export function OverlayScrollbar({ disabled, children, options, events, defer, c
export function GlobalOverlayScrollbar({ children, className, ...props }: PropsWithChildren<HTMLProps<HTMLDivElement>>) {
const ref = useRef<HTMLDivElement>(null)
const lastTrigger = useRef(0)
const timer = useRef<any>()
const timer = useRef<any>(null)
const setGoToTop = useSetAtom(goToTopAtom)
const onScroll = useCallback((e: Event) => {
const now = Date.now()
@@ -1,4 +1,4 @@
import type { ComponentPropsWithoutRef, ElementRef, ElementType, ForwardedRef } from "react"
import type { ComponentPropsWithoutRef, ComponentRef, ElementType, ForwardedRef } from "react"
import { useEffect, useMemo, useRef } from "react"
import { OverlayScrollbars } from "overlayscrollbars"
import type { EventListeners, InitializationTarget, PartialOptions } from "overlayscrollbars"
@@ -24,7 +24,7 @@ interface OverlayScrollbarsComponentRef<T extends ElementType = "div"> {
/** Returns the OverlayScrollbars instance or null if not initialized. */
osInstance: () => OverlayScrollbars | null
/** Returns the root element. */
getElement: () => ElementRef<T> | null
getElement: () => ComponentRef<T> | null
}
type Defer = [