mirror of
https://github.com/Funkoala14/knowledgebase_law.git
synced 2025-06-09 05:58:15 +08:00
30 lines
674 B
TypeScript
30 lines
674 B
TypeScript
|
// TypeScript Version: 3.5
|
||
|
|
||
|
import {Element, Properties, Node} from 'hast'
|
||
|
|
||
|
/**
|
||
|
* DSL to create virtual hast trees for HTML or SVG
|
||
|
*
|
||
|
* @param selector Simple CSS selector
|
||
|
* @param children (Lists of) child nodes
|
||
|
*/
|
||
|
declare function hastscript(
|
||
|
selector?: string,
|
||
|
children?: string | Node | Array<string | Node>
|
||
|
): Element
|
||
|
|
||
|
/**
|
||
|
* DSL to create virtual hast trees for HTML or SVG
|
||
|
*
|
||
|
* @param selector Simple CSS selector
|
||
|
* @param properties Map of properties
|
||
|
* @param children (Lists of) child nodes
|
||
|
*/
|
||
|
declare function hastscript(
|
||
|
selector?: string,
|
||
|
properties?: Properties,
|
||
|
children?: string | Node | Array<string | Node>
|
||
|
): Element
|
||
|
|
||
|
export = hastscript
|