Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion 04-interface-and-class/interface-basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ inteface User {
readonly height: number;
/* ... */
}
const user: MyReponse<User> = await getUserApiCall(userId);
const response: MyReponse<User> = await getUserApiCall(userId);
const user: User = response.data
user.name; // 타입 시스템은 user.name이 string임을 알 수 있다.
```

Expand Down