Skip to content

Commit 54b379e

Browse files
committed
Refactor to use @imports
1 parent 612963d commit 54b379e

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

lib/index.js

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
/**
2-
* @typedef {import('hast').Comment} HastComment
3-
* @typedef {import('hast').Doctype} HastDoctype
4-
* @typedef {import('hast').Element} HastElement
5-
* @typedef {import('hast').Nodes} HastNodes
6-
* @typedef {import('hast').Properties} HastProperties
7-
* @typedef {import('hast').Root} HastRoot
8-
* @typedef {import('hast').RootContent} HastRootContent
9-
* @typedef {import('hast').Text} HastText
10-
*
11-
* @typedef {import('property-information').Schema} Schema
2+
* @import {
3+
* Comment as HastComment,
4+
* Doctype as HastDoctype,
5+
* Element as HastElement,
6+
* Nodes as HastNodes,
7+
* Properties as HastProperties,
8+
* RootContent as HastRootContent,
9+
* Root as HastRoot,
10+
* Text as HastText
11+
* } from 'hast'
12+
* @import {Schema} from 'property-information'
1213
*/
1314

1415
/**

test/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @typedef {import('hast').Nodes} Nodes
2+
* @import {Nodes} from 'hast'
33
*/
44

55
import assert from 'node:assert/strict'

0 commit comments

Comments
 (0)