You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/**@deprecated Use the other overload instead.*/functionbaz(): string;functionbaz(v: string): string;functionbaz(...args: string[]){returnargs[0];}baz;// should be no errorsetTimeout(baz,1000);// should be an errordeclarefunctiontakeNoArgsCb(cb: ()=>any): void;declarefunctiontakeStringArgCb(cb: (v: string)=>any): void;takeNoArgsCb(baz);// should be an errortakeStringArgCb(baz);// no error if feasible
Proposal: only report uncalled function if it has a contextual type with call signature. The same probably applies to constructor types.
The text was updated successfully, but these errors were encountered:
Proposal: only report uncalled function if it has a contextual type with call signature. The same probably applies to constructor types.
The text was updated successfully, but these errors were encountered: