这样不行吗
interface person?{
sex: string;
}
interface stu extends person?{
name: string;
order?: number;
}
class Test implements stu?{
name: string = "joyKit";
sex!: string;
order?: number = 1;
}
export function test()?{
const t?= new Test();
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…