We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
interface A { t1?: number; t2?: number; t3?: number; t4?: number; } type B = Pick<A, 't2' | 't4'> & { hostList: string[]; };
When the Merge method is executed
type MergeB = Merge<Pick<A, 't2' | 't4'>, { hostList: string[]; }>;
the desired result is:
type MergeB = { t2?: number; t4?: number; hostList: IRegionPoint[]; }
The actual result is:
type MergeB = { t2?: number; t4?: number; hostList?: IRegionPoint[]; // <--- Not what I expected }
The text was updated successfully, but these errors were encountered:
Merge
readonly
Successfully merging a pull request may close this issue.
When the Merge method is executed
the desired result is:
The actual result is:
Upvote & Fund
The text was updated successfully, but these errors were encountered: