WithProperties
可以添加到 NgElement 类的其他类型信息,用于基于基础组件的输入和方法添加的属性。
Additional type information that can be added to the NgElement class, for properties that are added based on the inputs and methods of the underlying component.
type WithProperties<P> = {
[property in keyof P]: P[property];
};