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
somehow ts-patterns can not infer that Awaited is just T
'T' could be instantiated with an arbitrary type which could be unrelated to 'Exclude<Error, InvertPatternForExclude<Chainable<GuardP<unknown, Error>>, WithDefault<ExtractPreciseValue<Error | Awaited<T>, InvertPattern<Chainable<GuardP<unknown, Error>>, Error | Awaited<...>>>, Error | Awaited<...>>>> | Exclude<...>'.ts(2322)
Describe the solution you'd like
the only way I can return the correct types is as follows:
I have the following promise race condition where I'd like ts patterns to work as follows:
somehow ts-patterns can not infer that Awaited is just T
Describe the solution you'd like
the only way I can return the correct types is as follows:
The text was updated successfully, but these errors were encountered: