index.d.mts 469 B

1234567891011121314
  1. import * as React from "react";
  2. type PossibleRef<T> = React.Ref<T> | undefined;
  3. /**
  4. * A utility to compose multiple refs together
  5. * Accepts callback refs and RefObject(s)
  6. */
  7. export function composeRefs<T>(...refs: PossibleRef<T>[]): (node: T) => void;
  8. /**
  9. * A custom hook that composes multiple refs
  10. * Accepts callback refs and RefObject(s)
  11. */
  12. export function useComposedRefs<T>(...refs: PossibleRef<T>[]): (node: T) => void;
  13. //# sourceMappingURL=index.d.ts.map