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
error TS2322: Type '{ type: "A"; valueA: string; }' is not assignable to type 'Pick<AB, "type">'.
Object literal may only specify known properties, and 'valueA' does not exist in type 'Pick<AB, "type">'.
16 valueA: 'XXX'
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered:
k8w
changed the title
Omit<A | B> works unexpectly
Omit<A | B> works unexpectly, cannot keep union relationship
Dec 2, 2020
TypeScript Version: 3.7.x-dev.201xxxxx
4.0.3
Search Terms:
Omit Union
Omit<A|B>
Code
Expected behavior:
No compile error
Actual behavior:
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered: