If you are using typescript, you might use interface & type but if I ask you the difference between them, are you able to answer it ?
At the e...
Some comments have been hidden by the post's author - find out more
For further actions, you may consider blocking this person and/or reporting abuse
no errors
Coming from somewhere like C# a class implementing a type is kind of... weird... Though, all instances of a class automatically are that type... so it makes sense in a weird way too.
Hey ! thank you for your comment, I miss something wrong since a few time, this is available ! I edit my article thank you :)
In a word, interface for OOP, type for FP
FYI: A class implicitly exposes an interface that can be merged into - example:
playground
Nice remark I learn something thank you bro !
Nice Article CodeOzz !
Just follow you nice content man
Great. When I started to learn about TS, this topics confuse to me.
thank you Tiago
A type can have circular dependencies while interface can't it's super cool to try :)
nice remark Lakshya