Commit c9b44f2 1 parent 9d47bef commit c9b44f2 Copy full SHA for c9b44f2
File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
+ * @typedef {import('nlcst').Root } Root
3
+ *
2
4
* @typedef Options
3
5
* @property {number } [age=16]
4
6
* Target age group.
@@ -43,7 +45,7 @@ const sqrt = Math.sqrt
43
45
/**
44
46
* Plugin to detect possibly hard to read sentences.
45
47
*
46
- * @type {import('unified').Plugin<[Options?]> }
48
+ * @type {import('unified').Plugin<[Options?], Root > }
47
49
*/
48
50
export default function retextReadability ( options = { } ) {
49
51
const targetAge = options . age || defaultTargetAge
Original file line number Diff line number Diff line change 47
47
" index.js"
48
48
],
49
49
"dependencies" : {
50
+ "@types/nlcst" : " ^1.0.0" ,
50
51
"automated-readability" : " ^2.0.0" ,
51
52
"coleman-liau" : " ^2.0.0" ,
52
53
"dale-chall" : " ^2.0.0" ,
You can’t perform that action at this time.
0 commit comments