Files
NapCatQQ/.pnpm-store/v3/files/10/363f7e3a14966e87a067fb49a93a9f8641cc0bb99f26f2450f0ac09dfdec24ac194cd24e38765f77d4439baa525502f30be04861509a0b5e0176fbd7a7bbe9
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

21 lines
668 B
Plaintext

import * as React from 'react';
type ReactRef<T> = React.RefObject<T> | React.MutableRefObject<T> | React.Ref<T>;
/**
* Assigns a value to a ref function or object
*
* @param ref the ref to assign to
* @param value the value
*/
declare function assignRef<T = any>(ref: ReactRef<T> | undefined, value: T): void;
/**
* Combine multiple React refs into a single ref function.
* This is used mostly when you need to allow consumers forward refs to
* internal components
*
* @param refs refs to assign to value to
*/
declare function mergeRefs<T>(...refs: (ReactRef<T> | undefined)[]): (node: T | null) => void;
export { type ReactRef, assignRef, mergeRefs };