persona-community-5/.pnpm-store/v3/files/f1/fc219a3f647e367a3702f0ba15409478f7844485aed27c51b0f243be2efb423f5b089ec3c492a35eb00becb3caab0a8b808d0adae55ab84a839358dbe81bce
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

12 lines
376 B
Plaintext

import { ReactRef, RefObject } from './types';
/**
* Transforms one ref to another
* @example
* ```tsx
* const ResizableWithRef = forwardRef((props, ref) =>
* <Resizable {...props} ref={transformRef(ref, i => i ? i.resizable : null)}/>
* );
* ```
*/
export declare function transformRef<T, K>(ref: ReactRef<K>, transformer: (original: T | null) => K): RefObject<T>;