Skip to content

Instantly share code, notes, and snippets.

@takethefake
Last active October 21, 2018 10:59
Show Gist options
  • Save takethefake/71039df683bb9be10fcd54c282a20afb to your computer and use it in GitHub Desktop.
Save takethefake/71039df683bb9be10fcd54c282a20afb to your computer and use it in GitHub Desktop.
Medium: Typescript compilation example
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