/** * @file /src/types/node.ts * @name Node * @description This file contains type definitions for nodes. */ import { Node as PMNode } from "@tiptap/pm/model"; import { AttributeConfig } from "./page"; import { Nullable } from "./record"; export type NodePosArray = Array; export type NodePos = { node: PMNode; pos: number; }; export type NullableNodePos = { node: Nullable; pos: number; }; export type NodeAttributes> = { [K in keyof NA]: AttributeConfig; }; /** * From built in type of Tiptap. The (direct) child node of a parent node, if any, * along with its index and offset relative to the parent node. */ export type DirectChild = { node: Nullable; index: number; offset: number; }; //# sourceMappingURL=node.d.ts.map