interface Props {
superName: string;
}
interface State {
selfName: string;
}
interface Index {
props: Props;
state: State;
}
class Index extends PureComponent {
constructor() {
this.state = {
selfName: 'selfName',
};
}
}
如上,可以使用同名的interface描述一个类的属性,但是我没有在官网上找到相信的支持文档,有哪位大佬可以提供一下吗