import { Path } from "slate"; import { TEditor, Value } from "../editor/TEditor"; import { ElementOf, TElement } from "../element/TElement"; import { TextOf, TText } from "../text/TText"; export type TNode = TEditor | TElement | TText; /** * Node of an editor. */ export type ENode = NodeOf>; /** * A utility type to get all the node types from a root node type. */ export type NodeOf = N | ElementOf | TextOf; /** * Convenience type for returning the props of a node. */ export type TNodeProps = N extends TEditor ? Omit : N extends TElement ? Omit : Omit; /** * A helper type for narrowing matched nodes with a predicate. */ export type TNodeMatch = ((node: N, path: Path) => node is N) | ((node: N, path: Path) => boolean); //# sourceMappingURL=TNode.d.ts.map