Skip to content

Commit

Permalink
Use @types/nlcst
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Aug 27, 2021
1 parent 4ed1291 commit 25267c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/**
* @typedef {import('nlcst').Root} Root
*
* @typedef Options
* Configuration.
* @property {string[]} [ignore]
Expand All @@ -18,7 +20,7 @@ const keys = Object.keys(patterns)
/**
* Plugin to check phrases for simpler alternatives.
*
* @type {import('unified').Plugin<[Options?]>}
* @type {import('unified').Plugin<[Options?], Root>}
*/
export default function retextSimplify(options = {}) {
const ignore = options.ignore || []
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"patterns.js"
],
"dependencies": {
"@types/nlcst": "^1.0.0",
"nlcst-search": "^3.0.0",
"nlcst-to-string": "^3.0.0",
"object-keys": "^1.0.9",
Expand Down

0 comments on commit 25267c9

Please sign in to comment.