正确写法
typescript
ref?: React.ForwardedRef<YakitAutoCompleteRefProps>
interface YakitAutoCompleteRefProps {
onSetRemoteValues: (s: string) => void
onGetRemoteValues: () => void
}
const downstreamProxyRef: React.MutableRefObject<YakitAutoCompleteRefProps> = useRef<YakitAutoCompleteRefProps>({
onGetRemoteValues: () => {},
onSetRemoteValues: (s) => {}
})