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
Argument of type '(index: number, input: RemoveTitles<TIn>) => Promise<RemoveTitles<TAdd2> & RemoveTitles<TAdd>>' is not assignable to parameter of type '(index: number, row: RemoveTitles<TIn>) => Promise<RemoveTitles<TAdd & TAdd2>>'.
Type 'Promise<RemoveTitles<TAdd2> & RemoveTitles<TAdd>>' is not assignable to type 'Promise<RemoveTitles<TAdd & TAdd2>>'.
Type 'RemoveTitles<TAdd2> & RemoveTitles<TAdd>' is not assignable to type 'RemoveTitles<TAdd & TAdd2>'.
π Actual behavior
TypeScript does not detect that RemoveTitles<T1> & RemoveTitles<T2> is compatible with RemoveTitles<T1 & T2>
π Expected behavior
RemoveTitles<T1> & RemoveTitles<T2> is compatible with RemoveTitles<T1 & T2> and should be treated as equivalent, as can be seen in this example
The text was updated successfully, but these errors were encountered:
TypeScript does not detect that RemoveTitles<T1> & RemoveTitles<T2> is compatible with RemoveTitles<T1 & T2>
It's not really clear how it could, either - the definition of this type is sufficiently complex that there isn't an obvious way to identify this fact apart from some very difficult counterfactual reasoning about possible inhabitants of T1 and T2.
Bug Report
π Search Terms
omit, mapped type, intersection
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
TypeScript does not detect that
RemoveTitles<T1> & RemoveTitles<T2>
is compatible withRemoveTitles<T1 & T2>
π Expected behavior
RemoveTitles<T1> & RemoveTitles<T2>
is compatible withRemoveTitles<T1 & T2>
and should be treated as equivalent, as can be seen in this exampleThe text was updated successfully, but these errors were encountered: