An experimental TypeSpec syntax for Lexicon

clarify docs

+3 -3
+3 -3
DOCS.md
··· 236 236 237 237 This works across files too—just remember to `import` the file with the definition. 238 238 239 - ### External References 239 + ### External Stubs 240 240 241 241 If you don't have TypeSpec definitions for external Lexicons, you can stub them out using the `@external` decorator: 242 242 ··· 249 249 } 250 250 } 251 251 252 - // External stub (like .d.ts in TypeScript) 252 + // Empty stub (like .d.ts in TypeScript) 253 253 @external 254 254 namespace com.atproto.label.defs { 255 255 model SelfLabels { } 256 - @token model SomeToken { } // use @token for tokens 257 256 } 258 257 ``` 259 258 ··· 285 284 @external 286 285 namespace com.atproto.repo.defs { 287 286 model StrongRef { } 287 + @token model SomeToken { } // Note: Tokens still need @token 288 288 } 289 289 // ... more stubs 290 290 ```