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 required?: boolean; 39 /** Indicates this field can be explicitly set to null */ 40 nullable?: boolean; 41 } 42 43 /** ··· 172 * @see https://atproto.com/specs/lexicon#record 173 */ 174 interface RecordOptions { 175 - /** Record key strategy: "self" for self-describing or "tid" for timestamp IDs */ 176 - key: "self" | "tid"; 177 /** Object schema defining the record structure */ 178 record: { type: "object" }; 179 /** Human-readable description */
··· 38 required?: boolean; 39 /** Indicates this field can be explicitly set to null */ 40 nullable?: boolean; 41 + /** Human-readable description */ 42 + description?: string; 43 } 44 45 /** ··· 174 * @see https://atproto.com/specs/lexicon#record 175 */ 176 interface RecordOptions { 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; 182 /** Object schema defining the record structure */ 183 record: { type: "object" }; 184 /** Human-readable description */