|
1 | 1 | /**
|
2 |
| - * @typedef {import('@volar/language-service').CodeMapping} CodeMapping |
3 |
| - * @typedef {import('@volar/language-service').VirtualCode} VirtualCode |
4 |
| - * @typedef {import('estree').ExportDefaultDeclaration} ExportDefaultDeclaration |
5 |
| - * @typedef {import('estree').Program} Program |
6 |
| - * @typedef {import('mdast').Nodes} Nodes |
7 |
| - * @typedef {import('mdast').Root} Root |
8 |
| - * @typedef {import('mdast-util-mdxjs-esm').MdxjsEsm} MdxjsEsm |
9 |
| - * @typedef {import('typescript').IScriptSnapshot} IScriptSnapshot |
10 |
| - * @typedef {import('unified').Processor<Root>} Processor |
11 |
| - * @typedef {import('vfile-message').VFileMessage} VFileMessage |
| 2 | + * @import {CodeMapping, VirtualCode} from '@volar/language-service' |
| 3 | + * @import {ExportDefaultDeclaration, Program} from 'estree' |
| 4 | + * @import {Nodes, Root} from 'mdast' |
| 5 | + * @import {MdxjsEsm} from 'mdast-util-mdxjs-esm' |
| 6 | + * @import {IScriptSnapshot} from 'typescript' |
| 7 | + * @import {Processor} from 'unified' |
| 8 | + * @import {VFileMessage} from 'vfile-message' |
12 | 9 | */
|
13 | 10 |
|
14 | 11 | import {walk} from 'estree-walker'
|
@@ -765,7 +762,7 @@ export class VirtualMdxCode {
|
765 | 762 | /**
|
766 | 763 | * @param {IScriptSnapshot} snapshot
|
767 | 764 | * The original TypeScript snapshot.
|
768 |
| - * @param {Processor} processor |
| 765 | + * @param {Processor<Root>} processor |
769 | 766 | * The unified processor to use for parsing.
|
770 | 767 | * @param {boolean} checkMdx
|
771 | 768 | * If true, insert a `@check-js` comment into the virtual JavaScript code.
|
|
0 commit comments