Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
slate-hyperscript / dist / creators.d.ts
Size: Mime:
import { Element, Descendant, Range, Text, Editor } from 'slate';
import { AnchorToken, FocusToken, Token } from './tokens';
/**
 * Create an anchor token.
 */
export declare function createAnchor(tagName: string, attributes: {
    [key: string]: any;
}, children: any[]): AnchorToken;
/**
 * Create an anchor and a focus token.
 */
export declare function createCursor(tagName: string, attributes: {
    [key: string]: any;
}, children: any[]): Token[];
/**
 * Create an `Element` object.
 */
export declare function createElement(tagName: string, attributes: {
    [key: string]: any;
}, children: any[]): Element;
/**
 * Create a focus token.
 */
export declare function createFocus(tagName: string, attributes: {
    [key: string]: any;
}, children: any[]): FocusToken;
/**
 * Create a fragment.
 */
export declare function createFragment(tagName: string, attributes: {
    [key: string]: any;
}, children: any[]): Descendant[];
/**
 * Create a `Selection` object.
 */
export declare function createSelection(tagName: string, attributes: {
    [key: string]: any;
}, children: any[]): Range;
/**
 * Create a `Text` object.
 */
export declare function createText(tagName: string, attributes: {
    [key: string]: any;
}, children: any[]): Text;
/**
 * Create a top-level `Editor` object.
 */
export declare function createEditor(tagName: string, attributes: {
    [key: string]: any;
}, children: any[]): Editor;
//# sourceMappingURL=creators.d.ts.map