Is there a way to utilize types or interfaces to provide intellisense for entire functions or object literals, rather than just function parameters or inline @type
's? For example:
type TFunc = ( x: number ) => boolean;
/**
* @implements {TFunc}
*/
function isNumber ( x ) {
return typeof x === 'number';
}
The use of @implements
does not seem to work in this case. I am curious if there is an alternative method to achieve this.