UNPKG

@coconut-software/ui

Version:

React components for faster and easier web development.

5 lines (4 loc) 257 B
import type { MutableRefObject } from 'react'; type SyncableRefs<Type> = MutableRefObject<Type> | ((instance: Type) => void) | null | undefined; export declare function useSyncRefs<Type>(...refs: SyncableRefs<Type>[]): (value: Type) => void; export {};