diff --git a/lib/index.js b/lib/index.js index bc9f15b..2e27144 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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' */ /** diff --git a/readme.md b/readme.md index f49ec54..8f1245f 100644 --- a/readme.md +++ b/readme.md @@ -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'