1type Modify<T, R> = Omit<T, keyof R> & R;
2
3interface OriginalInterface {
4 a: string;
5 b: boolean;
6 c: number;
7}
8
9type ModifiedType = Modify<OriginalInterface , {
10 a: number;
11 b: number;
12}>
13
14// ModifiedType = { a: number; b: number; c: number; }