Skip to content

Commit 28a031f

Browse files
committed
Refactor to use @import
1 parent 0b5e501 commit 28a031f

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

lib/index.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
/**
2-
* @typedef {import('hast').Element} Element
3-
* @typedef {import('hast').ElementContent} ElementContent
4-
* @typedef {import('hast').Root} Root
5-
*
6-
* @typedef {import('lowlight').LanguageFn} LanguageFn
7-
*
8-
* @typedef {import('vfile').VFile} VFile
2+
* @import {ElementContent, Element, Root} from 'hast'
3+
* @import {LanguageFn} from 'lowlight'
4+
* @import {VFile} from 'vfile'
95
*/
106

117
/**

test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @typedef {import('lowlight').LanguageFn} LanguageFn
2+
* @import {LanguageFn} from 'lowlight'
33
*/
44

55
import assert from 'node:assert/strict'

0 commit comments

Comments
 (0)