Is there a way to preserve jsdoc in arktype?
I have this piece of code:
At the moment the TS type
Role
don't have JsDoc as part of Intellisense. Also, role
has only the overall jsdoc, but not for the key membership
& privileges
1 Reply
This isn't really possible with ArkType's standard API that includes key parsing due to how TS handles it, but is potentially doable if you want to use
type.string.optional()
or similar instead of "privileges?"
.
Feel free to create an issue and we can investigate at some point.