type T1 = {};type T2 = {};
type A = {prop1: string;prop2: T1 | T2}
请问怎么才能做到prop1值为t1时,prop2使用类型T1,值为t2时 prop2使用类型T2?