Skip to content

Commit

Permalink
Update @types/hast, utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Aug 2, 2023
1 parent 8349539 commit 5f8aae0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
/**
* @typedef {import('hast').Root} Root
* @typedef {import('hast').Content} Content
* @typedef {import('hast').Nodes} Nodes
* @typedef {import('hast').Text} Text
* @typedef {import('hast').Element} Element
*/

/**
* @typedef {Content | Root} Node
* @typedef {Element & {tagName: 'br'}} BreakElement
*/

Expand All @@ -28,7 +26,7 @@ const search = /\r?\n|\r/g
* In this utility, we accept all parent nodes and handle them as elements, and
* for all literals we set the `value` of the given node the given value.
*
* @template {Node} T
* @template {Nodes} T
* Node type.
* @param {T} tree
* Tree to change.
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@
"index.js"
],
"dependencies": {
"@types/hast": "^2.0.0"
"@types/hast": "^3.0.0"
},
"devDependencies": {
"@types/node": "^20.0.0",
"c8": "^8.0.0",
"hastscript": "^7.0.0",
"hastscript": "^8.0.0",
"prettier": "^3.0.0",
"remark-cli": "^11.0.0",
"remark-preset-wooorm": "^9.0.0",
"type-coverage": "^2.0.0",
"typescript": "^5.0.0",
"unist-builder": "^3.0.0",
"unist-builder": "^4.0.0",
"xo": "^0.55.0"
},
"scripts": {
Expand Down

0 comments on commit 5f8aae0

Please sign in to comment.