Skip to content

Instantly share code, notes, and snippets.

@notblizzard
Created June 10, 2020 22:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save notblizzard/8409e276be620e546d7f1696770c1bb5 to your computer and use it in GitHub Desktop.
Save notblizzard/8409e276be620e546d7f1696770c1bb5 to your computer and use it in GitHub Desktop.
// typescript
interface Person {
name: string;
age: number;
}
const hello = (user: Person): string => {
return `Hello, ${user.name}`!;
};
const user: Person = {name: "Blizzard", age: 420};
hello(user);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment