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
●19 ●140 ●261
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
- You Tube
- Tiktok
- Premium Subscription
- Terms of Service
- Early Builders
chevron_left
More From Steve Fentonverified
Related Jobs
- Bilingual Retail Sales Associate (Spanish) - VerizonVerizon · Full time · Germany
- Lead Full Stack Developer (React, TypeScript, Go, Java, Python, Node.js, AWS)Brillio · Full time · Seattle, WA
- NodeJS Developer with strong TypescriptHAN Staffing · Full time · Iselin, NJ
Commenters (This Week)
Mike Dabydeen
13 comments
Minh
1 comment
Dilip Kumar
1 comment
Contribute meaningful comments to climb the leaderboard and earn badges!