Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (8 sloc) 235 Bytes
interface PersonFace {
propTest: string;
test (h: number, m: number);
}
class Person implements PersonFace {
propTest: 'test'; // 因为继承了接口,所以这个属性需要存在
test (h: number, m: number) {}
}
You can’t perform that action at this time.