override typescript interface code example
Example: typescript override interface property
type Modify<T, R> = Omit<T, keyof R> & R;
interface OriginalInterface {
a: string;
b: boolean;
c: number;
}
type ModifiedType = Modify<OriginalInterface , {
a: number;
b: number;
}>
// ModifiedType = { a: number; b: number; c: number; }