Created
April 21, 2017 10:35
-
-
Save undeadcat/cdeb9d4d9299ca1c144d572f702c613c 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
/** | |
* @returns {{foo:number, bar:number}} | |
*/ | |
function returnsFoobar() { | |
} | |
/** | |
@param p {number} | |
*/ | |
function acceptsNumber(p) { | |
} | |
acceptsNumber(); | |
acceptsNumber("foobar"); | |
acceptsNumber(returnsFoobar().foo); | |
acceptsNumber(returnsFoobar().baz); | |
returnsFoobar()//completion here | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment