3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-18 22:25:44 +01:00

Answer prose round 1: 0 🔴, 5 🟡; state the directive boundary, split the spelling-questions sentence and tighten the plan items

This commit is contained in:
2026-10-22 00:06:35 +02:00
committed by Lillem4n
parent d36c99cd55
commit 48e5f045d1
3 changed files with 26 additions and 25 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ export type ParseError = ConvertError & { position: SourcePosition }
export type Result<T, E extends ConvertError = ConvertError> = { error: E; ok: false } | { ok: true; value: T }
// A reader with no path to name; the walk attaches the path where it knows it.
// A fault without a path, for a reader that cannot know it; its caller adds the path.
export type Read<T> = { fault: ConvertFault; value?: undefined } | { fault?: undefined; value: T }
export function failure<T>(code: ConvertErrorCode, message: string, path: ConvertErrorPath): Result<T> {