Fix frontend type error (#27116)

This commit is contained in:
GuanMu
2025-10-20 11:27:18 +08:00
committed by GitHub
parent dc1a380888
commit 8c298b33cd
7 changed files with 22 additions and 11 deletions

View File

@@ -1,8 +1,9 @@
import { useEffect, useRef, useState } from 'react'
import type { RefObject } from 'react'
type UploaderHookProps = {
onFileChange: (file: File | null) => void
containerRef: React.RefObject<HTMLDivElement>
containerRef: RefObject<HTMLDivElement | null>
enabled?: boolean
}