We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
类或接口只能扩展对象类型或对象类型与静态已知成员的交集,因为编译器需要检查类或接口中声明的属性类型是否与基类型的相应属性(如果有)的类型兼容。
The text was updated successfully, but these errors were encountered:
解决方法是使用交叉点类型而不是子接口:
interface ITreeDataExtend { preIcon?: string; } export type TTreeNodeActionData<T> = T & ITreeDataExtend;
Sorry, something went wrong.
No branches or pull requests
类或接口只能扩展对象类型或对象类型与静态已知成员的交集,因为编译器需要检查类或接口中声明的属性类型是否与基类型的相应属性(如果有)的类型兼容。
The text was updated successfully, but these errors were encountered: