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

21 lines
663 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 { ReactRef, assignRef, mergeRefs };