Skip to content

Commit a16a694

Browse files
committed
Update @types/hast, utilities
1 parent 5bbc32a commit a16a694

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

index.test-d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type {Element} from 'hast'
2-
import {expectError, expectNotType, expectType} from 'tsd'
2+
import {expectAssignable, expectError, expectNotType, expectType} from 'tsd'
33
import {unified} from 'unified'
44
import type {Node} from 'unist'
55
import {isElement, convertElement} from './index.js'
@@ -117,7 +117,7 @@ if (isElement<Article | Section>(section, ['article', isSection])) {
117117
/* Should support being used in a unified transform. */
118118
unified().use(() => (tree) => {
119119
if (isElement<Section>(tree, 'section')) {
120-
expectType<Section>(tree)
120+
expectAssignable<Section>(tree)
121121
// Do something
122122
}
123123

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
"index.js"
3333
],
3434
"dependencies": {
35-
"@types/hast": "^2.0.0",
36-
"@types/unist": "^2.0.0"
35+
"@types/hast": "^3.0.0",
36+
"@types/unist": "^3.0.0"
3737
},
3838
"devDependencies": {
3939
"@types/node": "^20.0.0",

0 commit comments

Comments
 (0)