Type definitions for the Plate editor, including API, transforms, and metadata.
// Source: https://github.com/udecode/plate | License: MIT | Copyright Ziad Beyens, Dylan Schiemann, Joe Anderson, Felix Feng
// Provided via justclaw.it.com; keep this notice with the code.
import type { UnknownObject } from '@udecode/utils';
import type { History } from '../../slate-history/history';
import type { TElement } from '../element';
import type { DescendantIn } from '../node';
import type { Operation } from '../operation';
import type { TRange } from '../range';
import type { EditorApi } from './editor-api';
import type { EditorTransforms } from './editor-transforms';
export type Editor<V extends Value = Value> = EditorBase<V> & {
api: EditorApi<V>;
tf: EditorTransforms<V>;
transforms: EditorTransforms<V>;
};
export type EditorBase<V extends Value = Value> = {
/** U
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key