source: node_modules/hastscript/index.d.ts

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 674 bytes
RevLine 
[d24f17c]1// TypeScript Version: 3.5
2
3import {Element, Properties, Node} from 'hast'
4
5/**
6 * DSL to create virtual hast trees for HTML or SVG
7 *
8 * @param selector Simple CSS selector
9 * @param children (Lists of) child nodes
10 */
11declare function hastscript(
12 selector?: string,
13 children?: string | Node | Array<string | Node>
14): Element
15
16/**
17 * DSL to create virtual hast trees for HTML or SVG
18 *
19 * @param selector Simple CSS selector
20 * @param properties Map of properties
21 * @param children (Lists of) child nodes
22 */
23declare function hastscript(
24 selector?: string,
25 properties?: Properties,
26 children?: string | Node | Array<string | Node>
27): Element
28
29export = hastscript
Note: See TracBrowser for help on using the repository browser.