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 };