Created
September 30, 2018 07:05
-
-
Save Joe1220/57bd9c48bdcf6e5dcb56269f2217e6cb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| interface User { | |
| id: number; | |
| name: string; | |
| address: string; | |
| wait: boolean; | |
| } | |
| const info = { | |
| id: "1", | |
| name: "joe1220", | |
| address: "joe1220@daum.net", | |
| wait: false | |
| } | |
| function create_mail(info: User): string { // what is info's type? | |
| return `${name}'s id is ${id}. his email address is ${address}. | |
| The email will be determined based on the wait(${wait}) value. ` | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment