createRef.d.ts 331 B

12345678910
  1. export interface RefObject extends Function {
  2. current?: any;
  3. }
  4. declare function createRef(): any;
  5. export declare function fillRef<T>(ref: any, node: T): void;
  6. /**
  7. * Merge refs into one ref function to support ref passing.
  8. */
  9. export declare function composeRef<T>(...refs: any[]): (node: T) => void;
  10. export default createRef;