3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-19 14:45:44 +01:00

4.1: the review's test and comment fixes

This commit is contained in:
2026-09-14 19:37:37 +02:00
parent 94d5aa1dad
commit fb4caa6f3d
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 ?? {}
}