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
●20 ●161 ●270
calendar_today
• schedule1 min read
— Originally published at stevefenton.co.uk
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
- You Tube
- Tiktok
- Premium Subscription
- Terms of Service
- Early Builders
chevron_left
More From Steve Fentonverified
Related Jobs
- Software Engineer Backend - TypeScript/Node.js/React/AngularMotion Recruitment · Full time · Boston, MA
- Senior Web Applications Engineer / Typescript / Node.js / ReactMotion Recruitment · Full time · Detroit, MI
- Software Engineer Backend - TypeScript/Node.jsMotion Recruitment · Full time · Boston, MA
Commenters (This Week)
QuestMeet
1 comment
ApogeeWatcherverified
1 comment
IbrahimSEO
1 comment
Contribute meaningful comments to climb the leaderboard and earn badges!