I have two TS interfaces:
interface Alpha { name: string; login: string; amount: string; }
and
interface Beta { id: number; name: string; login: string; amount: string; }
I would like to create the third interface Gamma which extends those two, add new field to it and make amount field can be null as well as a string:
interface Gamma extends Alpha, Beta { targetAmount: string | null, amount: string | null }
Those amount: string | null is not possible to do without extra actions. I've find a few answers here, but they are about extending types or 'nulling' all properties.