UNPKG

@curvenote/schema

Version:

Schema and markdown parser for @curvenote/editor

10 lines (9 loc) 394 B
import type { Node } from 'prosemirror-model'; import type { nodeNames } from '../types'; export declare function clamp(val: number, min: number, max: number): number; export declare function createId(): string; export declare type NodeWithPos = { pos: number; node: Node; }; export declare function findChildrenWithName(parent: Node, nodeName: nodeNames | nodeNames[]): NodeWithPos[];