An experimental TypeSpec syntax for Lexicon

bla

+3 -2
+3 -2
DOCS.md
··· 55 55 56 56 You can `import` other `.tsp` files. 57 57 58 - For now, we're assuming you write everything in typelex. You can grab common Lexicons from the [Playground](https://playground.typelex.org/). However, if you just want a ref, you could stub out any external Lexicon, like this: 58 + For now, we're assuming you write everything in TypeSpec. You can grab common Lexicons from the [Playground](https://playground.typelex.org/). However, if you just want a ref, you could stub out any external Lexicon, like this: 59 59 60 60 ```typescript 61 61 namespace com.example.defs { ··· 77 77 ```typescript 78 78 namespace com.example.post { 79 79 @rec("tid") 80 - /** A post record */ 81 80 model Main { 82 81 @required text: string; 83 82 @required createdAt: datetime; 84 83 } 85 84 } 86 85 ``` 86 + 87 + Note it's `@rec` because (unfortunately) `record` is reserved in TypeSpec. 87 88 88 89 **Maps to:** `{"type": "record", "key": "tid", "record": {...}}` 89 90