A human-friendly DSL for ATProto Lexicons
27
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update docs to align with actual syntax

+14 -14
+1 -1
website/content/_index.md
··· 18 18 }, 19 19 /// Thread creation timestamp 20 20 createdAt!: Datetime, 21 - }; 21 + } 22 22 ```''' 23 23 24 24 json_example = '''```json
+2 -2
website/content/docs/cli/05-validate.md
··· 27 27 }, 28 28 createdAt!: Datetime, 29 29 posts: Post[], 30 - }; 30 + } 31 31 32 - def Post = { 32 + def type Post = { 33 33 text!: string, 34 34 createdAt!: Datetime, 35 35 };
+1 -1
website/content/docs/cli/06-generate.md
··· 220 220 /// Creation timestamp 221 221 createdAt!: Datetime, 222 222 posts: Post[], 223 - }; 223 + } 224 224 ``` 225 225 226 226 **Generated TypeScript:**
+1 -1
website/content/docs/getting-started.md
··· 44 44 }, 45 45 /// Thread creation timestamp 46 46 createdAt!: Datetime, 47 - }; 47 + } 48 48 ``` 49 49 50 50 ## Generate JSON Lexicon
+2 -2
website/content/docs/language-guide/07-xrpc.md
··· 216 216 } 217 217 ):{ 218 218 posts!: post[], 219 - } 219 + }; 220 220 ``` 221 221 222 222 ## Return Types ··· 300 300 NotFound, 301 301 /// Post is private 302 302 Forbidden, 303 - } 303 + }; 304 304 305 305 /// List posts by author 306 306 query listPosts(
+2 -2
website/content/docs/language-guide/08-imports.md
··· 135 135 // Local definition 136 136 def type thread = { 137 137 localId!: string, 138 - } 138 + }; 139 139 140 140 // Import with rename to avoid conflict 141 141 use com.example.types.thread as ExternalThread; ··· 172 172 def type threadMeta = { 173 173 id!: string, 174 174 viewCount!: integer, 175 - } 175 + }; 176 176 ``` 177 177 178 178 **File: `com/example/post.mlf`**
+4 -4
website/content/docs/language-guide/10-important-info.md
··· 193 193 uri!: Uri, 194 194 title!: string, 195 195 description!: string, 196 - } 196 + }; 197 197 ``` 198 198 199 199 ### Rules ··· 230 230 id!: string, 231 231 viewCount!: integer, 232 232 replyCount!: integer, 233 - } 233 + }; 234 234 235 235 record reply { 236 236 threadMeta: thread, // References the def type, not the record ··· 252 252 def type author = { 253 253 did!: Did, 254 254 handle!: Handle, 255 - } 255 + }; 256 256 ``` 257 257 258 258 ### Error: Missing @main ··· 265 265 266 266 def type thread = { 267 267 id!: string, 268 - } 268 + }; 269 269 // This will fail - you must add @main to one of them 270 270 ``` 271 271
+1 -1
website/content/docs/wasm.md
··· 48 48 const result = mlf.parse(` 49 49 record post { 50 50 text: string, 51 - }; 51 + } 52 52 `); 53 53 54 54 if (result.success) {