UNPKG

400 BTypeScriptView Raw
1import { SimpleElement, SimpleNode } from '@simple-dom/interface';
2import { Option } from '../core';
3
4export interface Bounds {
5 // a method to future-proof for wormholing; may not be needed ultimately
6 parentElement(): SimpleElement;
7 firstNode(): SimpleNode;
8 lastNode(): SimpleNode;
9}
10
11export interface Cursor {
12 readonly element: SimpleElement;
13 readonly nextSibling: Option<SimpleNode>;
14}