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
{{ message }}
Repository navigation
Type Inference in for... in combined with typeof #12944
I think the suggestion here is that a typeof x === "function" type guard should change the type of x to (typeof x) & Function under the guard. We currently do something similar for primitive types, but nothing specific for functions.
Activity
ahejlsberg commentedon Dec 15, 2016
I think the suggestion here is that a
typeof x === "function"type guard should change the type ofxto(typeof x) & Functionunder the guard. We currently do something similar for primitive types, but nothing specific for functions.