@taze-editor/taze-core
Version:
Taze Editor's core package - makes easier to create rich text editor
10 lines • 551 B
TypeScript
import { GetNodeEntriesOptions } from "../slate/editor/getNodeEntries";
import { TEditor, Value } from "../slate/editor/TEditor";
import { ENode } from "../slate/node/TNode";
import { TNodeEntry } from "../slate/node/TNodeEntry";
export type FindNodeOptions<V extends Value = Value> = GetNodeEntriesOptions<V>;
/**
* Find node matching the condition.
*/
export declare const findNode: <N extends ENode<V>, V extends Value = Value>(editor: TEditor<V>, options?: FindNodeOptions<V>) => TNodeEntry<N> | undefined;
//# sourceMappingURL=findNode.d.ts.map