UNPKG

1.08 kBTypeScriptView Raw
1import { createHyperscript, HyperscriptCreators, HyperscriptShorthands } from './hyperscript';
2import { createEditor, createText } from './creators';
3/**
4 * The default hyperscript factory that ships with Slate, without custom tags.
5 */
6declare const jsx: <S extends "anchor" | "cursor" | "editor" | "element" | "focus" | "fragment" | "selection" | "text">(tagName: S, attributes?: Object | undefined, ...children: any[]) => ReturnType<{
7 anchor: typeof import("./creators").createAnchor;
8 cursor: typeof import("./creators").createCursor;
9 editor: (tagName: string, attributes: {
10 [key: string]: any;
11 }, children: any[]) => import("slate").BaseEditor;
12 element: typeof import("./creators").createElement;
13 focus: typeof import("./creators").createFocus;
14 fragment: typeof import("./creators").createFragment;
15 selection: typeof import("./creators").createSelection;
16 text: typeof createText;
17}[S]>;
18export { jsx, createHyperscript, createEditor, createText, HyperscriptCreators, HyperscriptShorthands, };
19//# sourceMappingURL=index.d.ts.map
\No newline at end of file