定义ref对象类型
type FileStateStatus = { reset?: () => void; fileList?: RcFile[] } export interface FileState { current?: FileStateStatus , }
const fileState: FileState = useRef();
定义ref对象类型
type FileStateStatus = { reset?: () => void; fileList?: RcFile[] } export interface FileState { current?: FileStateStatus , }
const fileState: FileState = useRef();