Create a helper type:
type Overwrite<T, U> = Pick<T, Exclude<keyof T, keyof U>> & U;
Usage:
type HexColorLine = Overwrite<Line, { color: number }>
Create a helper type:
type Overwrite<T, U> = Pick<T, Exclude<keyof T, keyof U>> & U;
Usage:
type HexColorLine = Overwrite<Line, { color: number }>