DEV Community

Discussion on: How To Use A TypeScript Interface?

Collapse
 
devbyrayray profile image
Dev By RayRay

@mbarzda thanks for the extra details 🙏.

Many codebases I've worked with use the I as a prefix. But I agree with your reason why it's not a smart idea 💡.

And as you said, let's leave the interface for a class, makes perfect sense. So that's making it much more clear when to use a interface or a type.