Created
May 16, 2017 13:51
-
-
Save constellates/6f66d391da2bef70ecadaf595b85438d to your computer and use it in GitHub Desktop.
tsdoc-test
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
/** | |
Takes a dividend and a divisor and returns a quotient. | |
``` | |
divide(4,2); | |
//2 | |
var divTen = divide(10); | |
divTen(2); | |
//5 | |
``` | |
*/ | |
function divide(dividend:number, divisor:number):number { | |
return dividend / divisor; | |
} | |
function functionWithDefaults( | |
valueA:string = 'defaultValue', | |
valueB:number = 100, | |
valueC:number = Number.NaN, | |
valueD:boolean = true, | |
valueE:boolean = false | |
):string { | |
return valueA; | |
} |
Author
constellates
commented
May 16, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment