With Typescript Omit Union types get lost
bmsuseluda opened this issue · comments
Hello together,
with the following code the union type of name gets lost:
interface FullProps {
/** The name to greet */
name: "world" | "hello";
title: string;
}
type Props = Omit<FullProps, "title">
/**
* Hello world component
*/
const MyComponent = ({name = 'world'}: Props) => {
return <div />;
}
I have similar problems with Extract and Pick.
Is it possible to support these typescript function?
Thanks in regards