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
It's callable because it has a call method. This interface is basically an implementation detail of the compiler; if you want (...args: any[]): any then write(...args: any[]): any
Search Terms
function callable signature
Suggestion
There are some posts(#20007, #34540) about
Function
and(...args: any[]): any
. It seems this is an intended design.But a
CallableFunction
should be "callable" in semantics. It should be allowed to assignCallableFunction
to(...args: any[]): any
.(and vice versa)Checklist
My suggestion meets these guidelines:
The text was updated successfully, but these errors were encountered: