I like that little constructor shorthand a lot it almost feels like TypeScript rewarding you for trusting its compiler instead of repeating yourself how many people do you think still write the long version out of habit from other languages?
Stop manually assigning TypeScript constructor parameters
Steve FentonverifiedBackerLeader
posted
Originally published at stevefenton.co.uk
1 min read
4 Comments
Gift Balogun
•
Great reminder, Steve. That constructor shorthand is one of those subtle TypeScript features that quietly cleans up your classes. I’ve noticed it especially helps when working with dependency injection or models with several parameters — less boilerplate, same clarity. It’s small optimizations like this that make TypeScript feel truly elegant.
Please log in to add a comment.
Please log in to comment on this post.
More Posts
- © 2026 Coder Legion
- Feedback / Bug
- Privacy
- About Us
- Contacts
- Premium Subscription
- Terms of Service
- Refund
- Early Builders
chevron_left
More From Steve Fenton
Related Jobs
- Backend Engineer, Node.js/TypeScriptjobgether · Full time · Romania
- Backend Engineer, Node.js/TypeScriptjobgether · Full time · Portugal
- Backend Engineer, Node.js/TypeScriptjobgether · Full time · Switzerland County, IN
Commenters (This Week)
md.mijanur.molla
2 comments
YasirAwan4831
1 comment
yogirahul
1 comment
Contribute meaningful comments to climb the leaderboard and earn badges!