interface TypeA {
a: string
b: string
}
interface TypeB {
c: string
}
now i want to make a TypeC, a and b is optional, c is required.
interface TypeC {
a?: string
b?: string
c: string
}
are there any shortcut to make this? for example:
// type TypeC = TypeA? & TypeB
I think it's useful when TypeA is huge
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…