Last active
January 25, 2019 13:13
-
-
Save AmirTugi/703b39e30a9867e52135b3ada7e4362e 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
type MargheritaToppings = { | |
mushrooms?: boolean; | |
olives?: boolean; | |
onion?: boolean; | |
basil?: boolean; | |
}; | |
type HawaiianToppings = { | |
pineapple?: boolean; | |
}; | |
class Pizza<T> { | |
addToppings(toppings: T) {} | |
} | |
class PizzaMargherita extends Pizza<MargheritaToppings> {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment