📅  最后修改于: 2022-03-11 14:48:21.533000             🧑  作者: Mango
type One = { p: string };
interface Two {
p: string;
}
class Three {
p = "Hello";
}
let x: One = { p: "hi" };
let two: Two = x;
two = new Three();