Skip to content

Commit

Permalink
Use @import for remaining type imports
Browse files Browse the repository at this point in the history
  • Loading branch information
remcohaszing committed Aug 12, 2024
1 parent a394ea8 commit 9f6111c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Then in your MDX file:

```mdx
{/**
* @typedef {import('../mdx-components.js').MDXProvidedComponents} MDXProvidedComponents
* @import {MDXProvidedComponents} from '../mdx-components.js'
*/}

<Planet name="Earth" />
Expand Down
5 changes: 1 addition & 4 deletions packages/typescript-plugin/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

/**
* @import {TsConfigSourceFile} from 'typescript'
*/

/**
* @typedef {import('unified', {with: {'resolution-mode': 'import'}}).Plugin} Plugin
* @import {Plugin} from 'unified' with {'resolution-mode': 'import'}
*/

const {pathToFileURL} = require('node:url')
Expand Down

0 comments on commit 9f6111c

Please sign in to comment.