sugar-high 0.7.2 → 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 CHANGED
@@ -1,3 +1,3 @@
1
1
  export function highlight(code: string): string
2
2
  export function tokenize(code: string): Array<[number, string]>
3
- export function generate(tokens: string[]): Array<[number, string]>
3
+ export function generate(tokens: Array<[number, string]>): Array<any>
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<[number, string]>}
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
  ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sugar-high",
3
- "version": "0.7.2",
3
+ "version": "0.7.4",
4
4
  "type": "module",
5
5
  "types": "./lib/index.d.ts",
6
6
  "exports": {