main
Last change
on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
674 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | // TypeScript Version: 3.5
|
---|
| 2 |
|
---|
| 3 | import {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 | */
|
---|
| 11 | declare 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 | */
|
---|
| 23 | declare function hastscript(
|
---|
| 24 | selector?: string,
|
---|
| 25 | properties?: Properties,
|
---|
| 26 | children?: string | Node | Array<string | Node>
|
---|
| 27 | ): Element
|
---|
| 28 |
|
---|
| 29 | export = hastscript
|
---|
Note:
See
TracBrowser
for help on using the repository browser.