-
-
Notifications
You must be signed in to change notification settings - Fork 310
Open
Labels
Description
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
akhvistik and TomaszSz368