I'm struggling to document an overload to a method, though it works fine for object.
This works:
const test = {
/**
* @type {{
* (bar: string) => boolean
* (bar: number) => string
* }}
* */
foo: (bar) => {
// something...
}
}
Doesn't work:
class Test {
/**
* @type {{
* (bar: string) => boolean
* (bar: number) => string
* }}
* */
foo(bar) {
// something...
}
}

