DEV Community

Discussion on: The Typescript "as const" trick

Collapse
 
adamcoster profile image
Adam Coster

Yep, that's the headache I've been trying to avoid. It seems that with Typescript it's generally possible to avoid DRY violations between types and expressions, but it's pretty hard to avoid with JSDoc.