typescript - 关键对象前的加号是什么意思?
问题描述
在打字稿中键入对象之前加上:
export type Action = {
+type: string
};
解决方案
推荐阅读
- c# - 处理电脑显示器[扩展]
- html - 是否有替代已弃用的 HTML 标记来获得相同的输出,以便将页面划分为所需的列数?
- c# - IOException on Directory.Move 使用该目录的进程后
- forms - 表单验证如何排除输入字段?
- javascript - 类型错误:无效的 URL
- server - 服务器无法处理请求。---> 客户端发现响应内容类型为“text/html”,但预期为“text/xml”
- spring-boot - 找不到类型的字段所需的 bean。错误 springboot API 部署到 ubuntu
- ios - 无法在我的 iOS 应用程序中访问我的可可框架的 .json 文件
- c# - 如何在插入数据库时将类属性的值设置为另一个类的生成 id 值?
- asp.net-mvc - 将 Google Drive API 托管到 IIS 后上传失败。将错误显示为无法启动浏览器