3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-17 13:50:25 +01:00

Answer architecture round 2: 0 🔴, 1 🟡; the ClaimedPrefix comment sits on its type again, README names the marks fallback

This commit is contained in:
2026-10-14 10:10:09 +02:00
parent 3ae57e5c8a
commit 41a04af310
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -11,9 +11,9 @@ import { serializeCanonicalJson } from '../canonical-json.ts'
export type AttributeReading = { refusal: 'kind' | 'nesting'; value?: undefined } | { refusal?: undefined; value: VocabularyValue }
// Proof that `!adf:` stands at `index`; only `claimDirectivePrefix` builds one.
export type Attributes = { attributes: DirectiveAttributes; end: number }
// Proof that `!adf:` stands at `index`; only `claimDirectivePrefix` builds one.
export type ClaimedPrefix = { readonly [claimedPrefix]: true; readonly index: number }
export type DirectiveValue = { decoded: string; spelling: string }