Skip to content

Commit

Permalink
Merge pull request #11978 from sandersn/simplify-MergeType-constraints
Browse files Browse the repository at this point in the history
Fix: simplify MergeType constraints
  • Loading branch information
vkarpov15 committed Jun 24, 2022
2 parents 89ec33c + 2a9ec91 commit e991892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/utility.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ declare module 'mongoose' {
? T
: Omit<T, keyof U> & U;

type MergeType<A extends Record<number | string, any>, B extends Record<number | string, any>> = Omit<A, keyof B> & B;
type MergeType<A, B> = Omit<A, keyof B> & B;

}

0 comments on commit e991892

Please sign in to comment.