Skip to content

Commit c47743b

Browse files
committed
Fix types
1 parent 1e9e3a0 commit c47743b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/util/container-phrasing.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* @typedef {import('../types.js').Node} Node
32
* @typedef {import('../types.js').Parent} Parent
43
* @typedef {import('../types.js').SafeOptions} SafeOptions
4+
* @typedef {import('../types.js').Handle} Handle
55
* @typedef {import('../types.js').Context} Context
66
*/
77

@@ -32,8 +32,11 @@ export function containerPhrasing(parent, context, safeOptions) {
3232
indexStack[indexStack.length - 1] = index
3333

3434
if (index + 1 < children.length) {
35+
/** @type {Handle} */
3536
// @ts-expect-error: hush, it’s actually a `zwitch`.
3637
let handle = context.handle.handlers[children[index + 1].type]
38+
/** @type {Handle} */
39+
// @ts-expect-error: hush, it’s actually a `zwitch`.
3740
if (handle && handle.peek) handle = handle.peek
3841
after = handle
3942
? handle(children[index + 1], parent, context, {

0 commit comments

Comments
 (0)