Skip to content

Commit 4a7c138

Browse files
committed
Use @types/nlcst
1 parent f1f4adf commit 4a7c138

File tree

3 files changed

+101
-120
lines changed

3 files changed

+101
-120
lines changed

index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/**
2-
* @typedef {import('unist').Node} Node
2+
* @typedef {import('nlcst').Root} Root
3+
* @typedef {import('nlcst').Content} Content
4+
* @typedef {Root|Content} Node
35
*
46
* @typedef {Object} NormalizeOptions
57
* @property {boolean} [allowDashes=false]
@@ -9,7 +11,7 @@
911
import {toString} from 'nlcst-to-string'
1012

1113
/**
12-
* @param {string|Node|Array.<Node>} node
14+
* @param {string|Node|Array.<Content>} node
1315
* @param {NormalizeOptions} [options={}]
1416
*/
1517
export function normalize(node, options) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"index.js"
3131
],
3232
"dependencies": {
33-
"@types/unist": "^2.0.0",
33+
"@types/nlcst": "^1.0.0",
3434
"nlcst-to-string": "^3.0.0"
3535
},
3636
"devDependencies": {

0 commit comments

Comments
 (0)