Skip to content

Instantly share code, notes, and snippets.

@Joe1220
Created September 30, 2018 07:07
Show Gist options
  • Select an option

  • Save Joe1220/b45c06c7e3b359ed68f59b3917df1b8f to your computer and use it in GitHub Desktop.

Select an option

Save Joe1220/b45c06c7e3b359ed68f59b3917df1b8f to your computer and use it in GitHub Desktop.
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 {
return `${info.name}'s id is ${info.id}. his email address is ${info.address}.
The email will be determined based on the wait(${info.wait}) value. `
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment