mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 10:22:16 +00:00
fix(curriculum): update misleading explanation on interfaces (#67458)
This commit is contained in:
+1
-1
@@ -31,7 +31,7 @@ interface User {
|
||||
}
|
||||
```
|
||||
|
||||
`type` and `interface` are similar but one key difference is that interfaces use the `extends` keyword to build on other interfaces, while `type` aliases use intersection types (`&`) to combine types.
|
||||
`type` and `interface` are similar but one key difference is that interfaces use the `extends` keyword to build on other interfaces or types, while `type` aliases use intersection types (`&`) to combine types.
|
||||
|
||||
Let's look at some examples:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user