interface person {
sex: string;
}
interface stu {
name: string;
order?: number;
new (p: person): any;
class Test implements stu {
name: string = "joyKit";
order?: number = 1;
export function test()?{
const t = new Test();
你没提供相应的构造函数啊……
548k questions
547k answers
4 comments
86.3k users