Skip to content

Commit

Permalink
Refactor to use @imports
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jun 24, 2024
1 parent 3047e7d commit 297aa8e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
5 changes: 1 addition & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
/**
* @typedef {import('./lib/index.js').AnchorAllow} AnchorAllow
* @typedef {import('./lib/index.js').Options} Options
* @typedef {import('./lib/index.js').Result} Result
* @typedef {import('./lib/index.js').Sleep} Sleep
* @import {AnchorAllow, Options, Result, Sleep} from './lib/index.js'
*/

export {deadOrAlive, defaultAnchorAllowlist, defaultSleep} from './lib/index.js'
3 changes: 1 addition & 2 deletions lib/anchors.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* @typedef {import('hast').Element} Element
* @typedef {import('hast').Root} Root
* @import {Element, Root} from 'hast'
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @typedef {import('hast').Root} Root
* @import {Root} from 'hast'
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @typedef {import('vfile-message').VFileMessage} VFileMessage
* @import {VFileMessage} from 'vfile-message'
*/

import assert from 'node:assert/strict'
Expand Down

0 comments on commit 297aa8e

Please sign in to comment.