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
this is pretty handy code, IMO, more performant etc, big win, but at the same time we all like to avoid if/else where possible, in this case, I think TS shouldn't complain?
π Motivating Example
see above
π» Use Cases
What do you want to use this for? async/await optimizations
What shortcomings exist with current approaches?
What workarounds are you using in the meantime?
The text was updated successfully, but these errors were encountered:
π Search Terms
async/await conditional is-promise promise
β Viability Checklist
β Suggestion
For reference, isPromise(x) looks like:
here is what I saw:
this is pretty handy code, IMO, more performant etc, big win, but at the same time we all like to avoid if/else where possible, in this case, I think TS shouldn't complain?
π Motivating Example
see above
π» Use Cases
The text was updated successfully, but these errors were encountered: