You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spectrum discussion here brought up the Types vs Interfaces discussion. as far as I can tell there is no real difference between them. I personally always use interfaces but i dont have a strong reason apart from I can extend them if i need to. Should we recommend one or the other? anyone have a source?
The text was updated successfully, but these errors were encountered:
I would always use interface for public API definitions. I usually use interface for internal types, but it’s less critical. In most cases they are functionally similar.
If you want one simple heuristic, just use interfaces everywhere. (Types can look and feel better in the case of unions though!)
Spectrum discussion here brought up the Types vs Interfaces discussion. as far as I can tell there is no real difference between them. I personally always use interfaces but i dont have a strong reason apart from I can extend them if i need to. Should we recommend one or the other? anyone have a source?
The text was updated successfully, but these errors were encountered: