UNPKG

@zedux/atoms

Version:

A Molecular State Engine for React

7 lines (6 loc) 248 B
import { MutableRefObject, RefObject } from '../types/index.js'; export declare const injectRef: { <T>(initialVal: T): MutableRefObject<T>; <T>(initialVal: T | null): RefObject<T>; <T = undefined>(): MutableRefObject<T | undefined>; };