UNPKG

slate-hyperscript

Version:

A hyperscript helper for creating Slate documents.

20 lines 535 B
import { Path, Point, Range } from 'slate'; /** * Hyperscript point refs can be used to construct arbitrary points using the * ref prop of a <point /> tag. */ export declare class HyperscriptPointRef { path?: Path; offset?: number; point(): Point; } /** * Hyperscript range refs can be used to construct arbitrary range using the ref * props of <anchor /> and <focus /> tags. */ export declare class HyperscriptRangeRef { anchor?: Point; focus?: Point; range(): Range; } //# sourceMappingURL=refs.d.ts.map