/
ai_sampletext
/
DiplomWork
Обзор
Документация
Войти
/
ai_sampletext
/
DiplomWork
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/use-callback-ref/dist/es2015/transformRef.d.ts
11 строк
376 B
boolyshareyo
Initial commit
08 июн 2026, 16:00
08 июн 2026, 16:00
6216a29
Код
Авторство
О чём код?
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>;