reactjs - 如何在类型脚本中为新类型继承模型类型?
问题描述
我想从打字稿中的另一个模型类型继承模型类型
导出模型需要从另一个模型继承
export type A extends B={
a:number,
b:String
};
export type B={
c:string
};
它在 Visual Studio 代码中显示错误并反应 ts 编译错误
解决方案
推荐阅读
- python - Pagmo2 Pygmo2 热启动功能
- php - ahref 点击后丢失会话变量
- python - 将时间列表格式化为 24 小时格式以用作 xtick 标签
- javascript - 如何使用鼠标悬停在 HTML 画布上弯曲线条
- android - ImageButton 纵横比不正确
- matlab - 从 RGB 计算 YCbCr 的结果错误
- php - PHP 'file_get_contents" 不显示换行符
- java - 在控制台中打印之前将 char 移向?
- python - Anaconda:升级到 2018.12 和 mkl 错误
- javascript - 箭头功能:我无法访问外部对象