4.1: the review's test and comment fixes

This commit is contained in:
2026-09-14 19:37:37 +02:00
parent 7672531cdc
commit 276433d635
7 changed files with 7 additions and 28 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ export function isAdfMark(value: unknown): value is AdfMark {
return !('attrs' in value) || isAttributes(value['attrs'])
}
export function nodeAttrs(node: { attrs?: AdfAttributes }): AdfAttributes {
export function nodeAttrs(node: { attrs?: AdfAttributes }): Readonly<AdfAttributes> {
return node.attrs ?? {}
}