Created
April 12, 2019 13:55
-
-
Save amcdnl/ecde687d07fb023ec4e5cff31ba4ba71 to your computer and use it in GitHub Desktop.
This file contains 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
class Foo { | |
do(name: string, userObj: object); | |
do(name: string, age: string | object, birthday: string) { | |
if (typeof age !== 'string') { | |
// do thing | |
} else { | |
// do other thing | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment