From 3247e2d65ca038cc6c9f4c4ddc272e4c58bf007f Mon Sep 17 00:00:00 2001 From: fisker Cheung Date: Sat, 11 Jul 2026 21:46:10 +0800 Subject: [PATCH] Fix JSDoc (#19601) --- src/document/builders/break-parent.js | 2 +- src/document/builders/line-suffix-boundary.js | 2 +- src/document/builders/trim.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/document/builders/break-parent.js b/src/document/builders/break-parent.js index 07b989d70..e4f2aeb37 100644 --- a/src/document/builders/break-parent.js +++ b/src/document/builders/break-parent.js @@ -4,7 +4,7 @@ import { DOC_TYPE_BREAK_PARENT } from "./types.js"; @typedef {{readonly type: DOC_TYPE_BREAK_PARENT}} BreakParent */ -/** @typedef {BreakParent} */ +/** @type {BreakParent} */ const breakParent = { type: DOC_TYPE_BREAK_PARENT }; export { breakParent }; diff --git a/src/document/builders/line-suffix-boundary.js b/src/document/builders/line-suffix-boundary.js index b774b9ba2..d4bcbc68f 100644 --- a/src/document/builders/line-suffix-boundary.js +++ b/src/document/builders/line-suffix-boundary.js @@ -4,7 +4,7 @@ import { DOC_TYPE_LINE_SUFFIX_BOUNDARY } from "./types.js"; @typedef {{readonly type: DOC_TYPE_LINE_SUFFIX_BOUNDARY}} LineSuffixBoundary */ -/** @typedef {LineSuffixBoundary} */ +/** @type {LineSuffixBoundary} */ const lineSuffixBoundary = { type: DOC_TYPE_LINE_SUFFIX_BOUNDARY }; export { lineSuffixBoundary }; diff --git a/src/document/builders/trim.js b/src/document/builders/trim.js index 6b5450d2c..ae80f4e45 100644 --- a/src/document/builders/trim.js +++ b/src/document/builders/trim.js @@ -4,7 +4,7 @@ import { DOC_TYPE_TRIM } from "./types.js"; @typedef {{readonly type: DOC_TYPE_TRIM}} Trim */ -/** @typedef {Trim} */ +/** @type {Trim} */ const trim = { type: DOC_TYPE_TRIM }; export { trim };