Skip to content

Commit 40d1a43

Browse files
committed
Refactor to use @imports
1 parent 5dc34e5 commit 40d1a43

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

lib/index.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
/**
2-
* @typedef {import('nlcst').Root} Root
3-
* @typedef {import('nlcst').Sentence} Sentence
4-
* @typedef {import('nlcst').SentenceContent} SentenceContent
5-
* @typedef {import('nlcst').Word} Word
6-
*
7-
* @typedef {import('vfile').VFile} VFile
2+
* @import {Root, SentenceContent, Sentence, Word} from 'nlcst'
3+
* @import {VFile} from 'vfile'
84
*/
95

106
/**

readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ your types, as that registers the new fields on the file.
228228

229229
```js
230230
/**
231-
* @typedef {import('retext-keywords')}
231+
* @import {} from 'retext-keywords'
232232
*/
233233

234234
import {VFile} from 'vfile'

0 commit comments

Comments
 (0)