Try these instead:
Last active
August 25, 2022 21:19
-
-
Save coolaj86/aaaf1a5c469a47d40f5f57d37ea4484f 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
/** | |
* @param {import('foo/types.js').Foo} foo | |
*/ | |
function bazzer(foo) { | |
return { | |
baz: foo.name, | |
qux: foo.flavor, | |
}; | |
} |
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
/** | |
* @typedef {Object} Foo | |
* @property {String} name | |
* @property {"vanilla"|"chocolate"|"strawberry"} flavor | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment