prototypey.org - atproto lexicon typescript toolkit - mirror https://github.com/tylersayshi/prototypey

fix for type of record key and description hint

Tyler 3329654c b94eeeed

+12 -2
+5
.changeset/upset-lizards-wash.md
··· 1 + --- 2 + "prototypey": patch 3 + --- 4 + 5 + fix for type of record key and description hint
+7 -2
packages/prototypey/core/lib.ts
··· 38 38 required?: boolean; 39 39 /** Indicates this field can be explicitly set to null */ 40 40 nullable?: boolean; 41 + /** Human-readable description */ 42 + description?: string; 41 43 } 42 44 43 45 /** ··· 172 174 * @see https://atproto.com/specs/lexicon#record 173 175 */ 174 176 interface RecordOptions { 175 - /** Record key strategy: "self" for self-describing or "tid" for timestamp IDs */ 176 - key: "self" | "tid"; 177 + /** 178 + * Record key strategy: "self" for self-describing or "tid" for timestamp IDs 179 + * @see https://atproto.com/specs/record-key 180 + */ 181 + key: string; 177 182 /** Object schema defining the record structure */ 178 183 record: { type: "object" }; 179 184 /** Human-readable description */