loading...

re: TypeScript: type vs interface VIEW POST

TOP OF THREAD FULL DISCUSSION
re: types are actually aliases One of the sudden realizations I had about types and interfaces in TypeScript is that they're not actually "types", th...
 

the type hint you get is just interface IAnimal in the former case, and the whole type alias definition in the latter.

this is interesting. I saw it somewhere before but didn't pay attention, now I see what this was about.

Code of Conduct Report abuse