Skip to content

Commit 9f6111c

Browse files
committed
Use @import for remaining type imports
1 parent a394ea8 commit 9f6111c

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Then in your MDX file:
109109

110110
```mdx
111111
{/**
112-
* @typedef {import('../mdx-components.js').MDXProvidedComponents} MDXProvidedComponents
112+
* @import {MDXProvidedComponents} from '../mdx-components.js'
113113
*/}
114114

115115
<Planet name="Earth" />

packages/typescript-plugin/index.cjs

+1-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22

33
/**
44
* @import {TsConfigSourceFile} from 'typescript'
5-
*/
6-
7-
/**
8-
* @typedef {import('unified', {with: {'resolution-mode': 'import'}}).Plugin} Plugin
5+
* @import {Plugin} from 'unified' with {'resolution-mode': 'import'}
96
*/
107

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

0 commit comments

Comments
 (0)