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
with the following code the union type of name gets lost:
interfaceFullProps{/** The name to greet */name: "world"|"hello";title: string;}typeProps=Omit<FullProps,"title">/** * Hello world component */constMyComponent=({name ='world'}: Props)=>{return<div/>;
}
I have similar problems with Extract and Pick.
Is it possible to support these typescript function?
Thanks in regards
The text was updated successfully, but these errors were encountered:
bmsuseluda
changed the title
With Typescript Omit Union types gets lost
With Typescript Omit Union types get lost
Dec 19, 2023
Hello together,
with the following code the union type of name gets lost:
I have similar problems with Extract and Pick.
Is it possible to support these typescript function?
Thanks in regards
The text was updated successfully, but these errors were encountered: