Skip to content

Commit

Permalink
Refactor to use @imports
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Oct 23, 2024
1 parent 5dc34e5 commit 40d1a43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
/**
* @typedef {import('nlcst').Root} Root
* @typedef {import('nlcst').Sentence} Sentence
* @typedef {import('nlcst').SentenceContent} SentenceContent
* @typedef {import('nlcst').Word} Word
*
* @typedef {import('vfile').VFile} VFile
* @import {Root, SentenceContent, Sentence, Word} from 'nlcst'
* @import {VFile} from 'vfile'
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ your types, as that registers the new fields on the file.

```js
/**
* @typedef {import('retext-keywords')}
* @import {} from 'retext-keywords'
*/

import {VFile} from 'vfile'
Expand Down

0 comments on commit 40d1a43

Please sign in to comment.