Last active
October 21, 2018 10:59
-
-
Save takethefake/71039df683bb9be10fcd54c282a20afb to your computer and use it in GitHub Desktop.
Medium: Typescript compilation example
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
function foo(x: number): string { | |
if (x) { | |
return x; | |
} | |
return "default string"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment