UNPKG

@ozen-ui/kit

Version:

React component library

5 lines (4 loc) 236 B
import type { Dispatch, SetStateAction, Ref as ReactRef } from 'react'; type Ref<T> = ReactRef<T> | Dispatch<SetStateAction<T | undefined>> | null; export declare const setRef: <T>(ref: Ref<T> | undefined, value: T) => void; export {};