Skip to content

Commit c9b44f2

Browse files
committed
Use @types/nlcst
1 parent 9d47bef commit c9b44f2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/**
2+
* @typedef {import('nlcst').Root} Root
3+
*
24
* @typedef Options
35
* @property {number} [age=16]
46
* Target age group.
@@ -43,7 +45,7 @@ const sqrt = Math.sqrt
4345
/**
4446
* Plugin to detect possibly hard to read sentences.
4547
*
46-
* @type {import('unified').Plugin<[Options?]>}
48+
* @type {import('unified').Plugin<[Options?], Root>}
4749
*/
4850
export default function retextReadability(options = {}) {
4951
const targetAge = options.age || defaultTargetAge

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"index.js"
4848
],
4949
"dependencies": {
50+
"@types/nlcst": "^1.0.0",
5051
"automated-readability": "^2.0.0",
5152
"coleman-liau": "^2.0.0",
5253
"dale-chall": "^2.0.0",

0 commit comments

Comments
 (0)