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();
这样不行吗
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(); }
548k questions
547k answers
4 comments
86.3k users