Skip to content

Commit c841261

Browse files
committed
Update typescript-basics.md
1 parent 55d6a59 commit c841261

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

TypeScript/Basics/typescript-basics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ const animal: Animal = {
6161
};
6262
```
6363

64-
_You can extending a type_
65-
6664
```ts
65+
// extending a type
6766
type Cat = Animal & {
6867
color: string;
6968
};
7069
```
7170

7271
```ts
72+
// value with 2 types
7373
type ID = string | number;
7474

7575
const userId: ID = 239053;

0 commit comments

Comments
 (0)