Make all properties in T mutable (remove readonly decorator) .
Signature:
export type Mutable<T> = {
-readonly [P in keyof T]: T[P]
} interface Props {
readonly a: number;
readonly b: number;
readonly c: number;
};
// Expect: { a: number; b: number; c: number; }
type NewProps = Mutable<Props>;