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
2 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
- Frontend Developer - Angular SPA, TypeScript, Node.jsGlobalsoftwaresolution · Full time · California, MO
- Frontend Developer — React + TypeScriptWeekday AI (YC W21) · Full time · New York, NY
- Remote Full Stack Engineer (TypeScript/Node.js) — Gov TechLast Call Media · Full time · Chicago, IL
Commenters (This Week)
alejandrotg-code
2 comments
Shawn
2 comments
Flamehaven
1 comment
Contribute meaningful comments to climb the leaderboard and earn badges!