UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

10 lines 540 B
import type { ForwardedRef, RefObject } from 'react'; /** * Use a ref object as the imperative handle for a forwarded ref. This can be used to * synchronize the ref object with the forwarded ref and allow local access the reference * instance with `.current`. * * **NOTE**: The `refObject` should be passed to the underlying element, NOT the `forwardedRef`. */ export declare function useRefObjectAsForwardedRef<T>(forwardedRef: ForwardedRef<T>, refObject: RefObject<T>): void; //# sourceMappingURL=useRefObjectAsForwardedRef.d.ts.map