@ckeditor/ckeditor5-react
Version:
Official React component for CKEditor 5 – the best browser-based rich text editor.
13 lines (12 loc) • 440 B
TypeScript
/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md.
*/
import type { MutableRefObject } from 'react';
type CallbackRef<T> = (element: T) => void;
type ReactRef<T> = CallbackRef<T | null> | MutableRefObject<T | null> | null;
/**
* Combine multiple react refs into one.
*/
export declare function mergeRefs<T>(...refs: Array<ReactRef<T>>): CallbackRef<T>;
export {};