From 40d1a43052619564bdb69ac6542300617df6c036 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Wed, 23 Oct 2024 16:15:30 +0200 Subject: [PATCH] Refactor to use `@import`s --- lib/index.js | 8 ++------ readme.md | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) 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'