File tree 2 files changed +9
-10
lines changed
2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 1
- /// <reference types="remark-parse" />
2
- /// <reference types="remark-stringify" />
3
-
4
1
/**
5
- * @typedef {import('mdast').Root } Root
6
- * @typedef {import('mdast-util-gfm').Options } MdastOptions
7
- * @typedef {import('micromark-extension-gfm').Options } MicromarkOptions
8
- * @typedef {import('unified').Processor<Root> } Processor
2
+ * @import {Options as MdastOptions} from 'mdast-util-gfm'
3
+ * @import {Root} from 'mdast'
4
+ * @import {Options as MicromarkOptions} from 'micromark-extension-gfm'
5
+ * @import {} from 'remark-parse'
6
+ * @import {} from 'remark-stringify'
7
+ * @import {Processor} from 'unified'
9
8
*/
10
9
11
10
/**
@@ -31,7 +30,7 @@ const emptyOptions = {}
31
30
export default function remarkGfm ( options ) {
32
31
// @ts -expect-error: TS is wrong about `this`.
33
32
// eslint-disable-next-line unicorn/no-this-assignment
34
- const self = /** @type {Processor } */ ( this )
33
+ const self = /** @type {Processor<Root> } */ ( this )
35
34
const settings = options || emptyOptions
36
35
const data = self . data ( )
37
36
Original file line number Diff line number Diff line change 1
1
/**
2
- * @typedef { import('mdast'). Root } Root
3
- * @typedef { import( 'remark-gfm').Options } Options
2
+ * @import { Root} from 'mdast'
3
+ * @import {Options} from 'remark-gfm'
4
4
*/
5
5
6
6
import assert from 'node:assert/strict'
You can’t perform that action at this time.
0 commit comments