Skip to content

Commit a707f54

Browse files
committed
Prepare Interfaces lesson
1 parent 550a181 commit a707f54

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
title: Interfaces (+ mini project)
3+
description: description
4+
menuWeight: 7.8
5+
paths:
6+
- switching-to-typescript/interfaces
7+
---
8+
9+
# [](#interfaces) Interfaces
10+
11+
Interfaces just object types
12+
13+
can extend each other
14+
15+
classes can extend them to add class constraints
16+
17+
## [](#mini-project) Mini-project
18+
19+
1. Make custom interface for API response
20+
2. Case interface type to API response
21+
3. Make custom interface for modified API response (with omitted key with `Omit` + extra custom key using `extends`)
22+
4. Filter the data/modify it somehow
23+
5. Return the data having the new modified response type array

content/academy/switching_to_typescript/watch_mode_and_tsconfig.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,4 +291,4 @@ And our files in **src** will automatically compile into a folder named **dist**
291291

292292
## [](#next) Next up
293293

294-
something
294+
[something]({{@link switching_to_typescript/interfaces.md}})

0 commit comments

Comments
 (0)