We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
/** @type */
// @ts-check /** * @type {(...args: [string, string] | [number, string, string]) => void} */ function foo(...args) { }
args somehow has the type string | number.
args
string | number
https://www.typescriptlang.org/v2/play?ts=4.0.0-dev.20200623&ssl=1&ssc=1&pln=7&pc=2&useJavaScript=true#code/PQKhFgCgAIWgBALgTwA4FNoG8AUA6AgQwCcBzAZwC5oBtcxYgSwDtSAaaep1gXWgB9azAK4BbAEbpiHLi3acGcngEpoAXgB80AG4B7RgBMAvlFjAoAM2HMAxoka7m0C7t34iZclFVZT0f1BGQA