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
●15 ●103 ●184
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.
🔥 Join developers growing publicly
Share your knowledge, build in public, and grow your developer presence with a global community.
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
Related Jobs
- Full Stack Developer - TypescriptDSN · Full time · Las Vegas, NV
- Full Stack Javascript/TypeScript DeveloperLift Enablement · Full time · United States
- TypeScript DeveloperKasmo Global · Full time · San Francisco, CA
Commenters (This Week)
Built2Win
2 comments
near
1 comment
Artem Senenko
1 comment
Contribute meaningful comments to climb the leaderboard and earn badges!