Skip to content

Instantly share code, notes, and snippets.

@meekg33k
Last active January 17, 2020 17:17
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 meekg33k/9238959e7a9ac8c032636e591589737b to your computer and use it in GitHub Desktop.
Save meekg33k/9238959e7a9ac8c032636e591589737b to your computer and use it in GitHub Desktop.
Interface definition for Animal https://medium.com/p/177b4a654ef6
interface Cat {
meow();
walk();
}
interface Dog {
bark();
walk();
}
type Animal = Cat | Dog;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment