25 lines
No EOL
433 B
TypeScript
25 lines
No EOL
433 B
TypeScript
// @allowJs: true
|
|
// @out: dummy.js
|
|
|
|
// @filename: returns.js
|
|
// @ts-check
|
|
/**
|
|
* @returns {string} This comment is not currently exposed
|
|
*/
|
|
function f() {
|
|
return "hello";
|
|
}
|
|
|
|
/**
|
|
* @returns {string=} This comment is not currently exposed
|
|
*/
|
|
function f1() {
|
|
return "hello world";
|
|
}
|
|
|
|
/**
|
|
* @returns {string|number} This comment is not currently exposed
|
|
*/
|
|
function f2() {
|
|
return 5 || "hello";
|
|
} |