Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interface Bird {
- fly();
- }
- interface Fish {
- swim();
- }
- function getSmallPet(): Fish | Bird
- function getFlyingFish(): Fish & Bird
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement