UNPKG

@glimmer/interfaces

Version:
15 lines (12 loc) 400 B
import { SimpleElement, SimpleNode } from '@simple-dom/interface'; import { Option } from '../core'; export interface Bounds { // a method to future-proof for wormholing; may not be needed ultimately parentElement(): SimpleElement; firstNode(): SimpleNode; lastNode(): SimpleNode; } export interface Cursor { readonly element: SimpleElement; readonly nextSibling: Option<SimpleNode>; }