interface InterfaceName {
propertyName: propertyType;
methodName(): returnType;
}
interface Person {
readonly id: number;
firstName: string;
lastName: string;
age?: number;
greet(): void;
}
interface ChildInterface extends ParentInterface {
// 额外的属性和方法
}