sugar-high 0.7.3 → 0.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -2
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -583,13 +583,13 @@ function tokenize(code) {
|
|
|
583
583
|
|
|
584
584
|
/**
|
|
585
585
|
* @param {Array<[number, string]>} tokens
|
|
586
|
-
* @return {Array<
|
|
586
|
+
* @return {Array<any>}
|
|
587
587
|
*/
|
|
588
588
|
function generate(tokens) {
|
|
589
589
|
const lines = []
|
|
590
590
|
/**
|
|
591
591
|
* @param {any} children
|
|
592
|
-
*
|
|
592
|
+
* @return {{type: string, tagName: string, children: any[], properties: Record<string, string>}}
|
|
593
593
|
*/
|
|
594
594
|
const createLine = (children) =>
|
|
595
595
|
({
|