7 ms·
The playground I posted has a description. They're pulled from JSDoc style comments. You can also use the `@doc` decorator, though that's usually reserved for m
by bterlson 2y ago
The playground I posted has a description. They're pulled from JSDoc style comments. You can also use the `@doc` decorator, though that's usually reserved for more advanced cases like when you need string interpolation or something.
- FourOnTheFloor 2y agoThanks. I don't see any in that playground though. Which document are they in? I think I looked in all the ones in the drop-down.
- bterlson 2y agoThe link should load up with a sample I wrote, I think? It does for me anyway! Let me know if you don't see it. But I'll also paste it here: model Foo { /** this is a description */ x: Bar; } /** this is also a description */ model Bar {}
- FourOnTheFloor 2y agoThanks. Never having seen a description in this language, I wouldn't know that the above syntax designated one; it looks like a comment. I also can't find any similar strings in any of the samples in the drop-down list.