UNPKG
ts-gems
Version:
latest (3.11.3)
3.11.3
3.11.2
3.11.1
3.11.0
3.10.0
3.9.0
3.8.0
3.7.0
3.6.0
3.5.1
3.5.0
3.4.0
3.3.0
3.2.1
3.2.0
3.1.1
3.1.0
3.0.0
2.9.3
2.9.2
2.9.1
2.9.0
2.8.0
2.7.6
2.7.5
2.7.4
2.7.3
2.7.2
2.7.1
2.7.0
2.6.0
2.5.0
2.4.1
2.4.0
2.3.0
2.2.1
2.2.0
2.1.0
2.0.0
1.5.2
1.5.1
1.5.0
1.4.0
1.3.0
1.2.0
1.1.2
1.1.1
1.1.0
1.0.0
0.0.3
0.0.2
0.0.1
Valuable typing extensions for TypeScript
github.com/panates/ts-gems
panates/ts-gems
ts-gems
/
lib
/
combine.d.ts
8 lines
(7 loc)
•
215 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
/** * Merges types without merging types of properties. */
export type
Combine
<
T1
,
T2
,
T3
= {},
T4
= {}>
=
T1
&
Omit
<
T2
, keyof
T1
> &
Omit
<
T3
, keyof
T1
| keyof
T2
> &
Omit
<
T4
, keyof
T1
| keyof
T2
| keyof
T3
>;