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 Jul 31, 2023
1 parent 5bbc32a commit a16a694
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type {Element} from 'hast'
import {expectError, expectNotType, expectType} from 'tsd'
import {expectAssignable, expectError, expectNotType, expectType} from 'tsd'
import {unified} from 'unified'
import type {Node} from 'unist'
import {isElement, convertElement} from './index.js'
Expand Down Expand Up @@ -117,7 +117,7 @@ if (isElement<Article | Section>(section, ['article', isSection])) {
/* Should support being used in a unified transform. */
unified().use(() => (tree) => {
if (isElement<Section>(tree, 'section')) {
expectType<Section>(tree)
expectAssignable<Section>(tree)
// Do something
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"index.js"
],
"dependencies": {
"@types/hast": "^2.0.0",
"@types/unist": "^2.0.0"
"@types/hast": "^3.0.0",
"@types/unist": "^3.0.0"
},
"devDependencies": {
"@types/node": "^20.0.0",
Expand Down

0 comments on commit a16a694

Please sign in to comment.