DEV Community

Discussion on: type vs interface in TypeScript

Collapse
 
king11 profile image
Lakshya Singh

One thing you missed which I hoped that this post might cover is that types can have self dependencies while interface can't

Collapse
 
s44dy profile image
s • Edited

Hey thanks for mentioning! I'll definitely look into self dependencies with types, I haven't heard of it before! This post was meant to be a little more higher level and cover the most common use cases, since I'm sure there are many other cases exists that I missed.

Collapse
 
minhhunghuynh1106 profile image
igdev

I dont know "self dependencies" you said above, can u show me what is mean? Im begginer of typescript hehe