11/**
22 * @typedef {import('mdast').Emphasis } Emphasis
3- * @typedef {import('../types.js').Handle } Handle
3+ * @typedef {import('mdast').Root } Root
4+ * @typedef {import('mdast').Content } Content
5+ * @typedef {Root|Content } Node
6+ * @typedef {Extract<Node, import('mdast').Parent> } Parent
7+ * @typedef {import('../types.js').Context } Context
8+ * @typedef {import('../types.js').SafeOptions } SafeOptions
49 */
510
611import { checkEmphasis } from '../util/check-emphasis.js'
@@ -14,8 +19,11 @@ emphasis.peek = emphasisPeek
1419// There’s no way around that though, except for injecting zero-width stuff.
1520// Do we need to safeguard against that?
1621/**
17- * @type {Handle }
1822 * @param {Emphasis } node
23+ * @param {Parent|undefined } _
24+ * @param {Context } context
25+ * @param {SafeOptions } safeOptions
26+ * @returns {string }
1927 */
2028export function emphasis ( node , _ , context , safeOptions ) {
2129 const marker = checkEmphasis ( context )
@@ -35,8 +43,10 @@ export function emphasis(node, _, context, safeOptions) {
3543}
3644
3745/**
38- * @type {Handle }
3946 * @param {Emphasis } _
47+ * @param {Parent|undefined } _1
48+ * @param {Context } context
49+ * @returns {string }
4050 */
4151function emphasisPeek ( _ , _1 , context ) {
4252 return context . options . emphasis || '*'
0 commit comments