3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-20 07:05:44 +01:00

Name the node every refusal came from, and close the error list

This commit is contained in:
2026-08-25 09:00:47 +02:00
parent e03a351d45
commit e6613519f3
9 changed files with 165 additions and 113 deletions
+2
View File
@@ -32,6 +32,8 @@ isAdfDocument(v: unknown): v is AdfDocument
```
`Result<T>` is `{ ok: true; value: T } | { ok: false; error: ConvertError }` — nothing throws.
`ConvertError` is `{ code, message, path }`: a code from a closed set, and the path of the node it
names, from the document root.
## The guarantees