We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@types/nlcst
1 parent 9d47bef commit c9b44f2Copy full SHA for c9b44f2
index.js
@@ -1,4 +1,6 @@
1
/**
2
+ * @typedef {import('nlcst').Root} Root
3
+ *
4
* @typedef Options
5
* @property {number} [age=16]
6
* Target age group.
@@ -43,7 +45,7 @@ const sqrt = Math.sqrt
43
45
44
46
* Plugin to detect possibly hard to read sentences.
47
*
- * @type {import('unified').Plugin<[Options?]>}
48
+ * @type {import('unified').Plugin<[Options?], Root>}
49
*/
50
export default function retextReadability(options = {}) {
51
const targetAge = options.age || defaultTargetAge
package.json
@@ -47,6 +47,7 @@
"index.js"
],
"dependencies": {
+ "@types/nlcst": "^1.0.0",
"automated-readability": "^2.0.0",
52
"coleman-liau": "^2.0.0",
53
"dale-chall": "^2.0.0",
0 commit comments