Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
import { Ancestor } from 'slate'
import { DOMEditor, type DOMEditorInterface } from 'slate-dom'
/**
* A React and DOM-specific version of the `Editor` interface.
*/
export interface ReactEditor extends DOMEditor {
/**
* Determines the chunk size used by the children chunking optimization. If
* null is returned (which is the default), the chunking optimization is
* disabled.
*/
getChunkSize: (node: Ancestor) => number | null
}
export interface ReactEditorInterface extends DOMEditorInterface {}
// eslint-disable-next-line no-redeclare
export const ReactEditor: ReactEditorInterface = DOMEditor