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
functionworking(param: string|string[]){if(typeofparam==="string"){// param is string}else{// param is string[]}}functionnotWorking(param: string|string[]){if(typeofparam==="string"){// param is stringreturn;}// param is string | string[]// Can it be detected and inferred as string[] here?}
The text was updated successfully, but these errors were encountered:
TS (1.9.0-dev.20160407)
Don't know if this is possible 🌹 :
The text was updated successfully, but these errors were encountered: