reinforced-typings - 使用强化类型,你可以在 TsInterface 上默认设置属性吗?
问题描述
我们使用属性,AutoExportMethods
在TsInterface
. 但我们必须记住将其添加到每个TsInterface
. 我想知道我们是否有办法在 Reinforced Typings 的配置中默认将此设置为 true?
这类似于Is there a configuration option in Reinforced.Typings to TsIgnore all properties and methods unless they have a TsProperty attribute set using? , 但不是每个文件都忽略它,我们希望默认忽略所有文件。
解决方案
您可以默认继承[TsInterface]
属性和制作AutoExportMethods
true
。然后使用你自己的属性而不是内置的[TsInterface]
推荐阅读
- devops - Apple Pay 显示域验证失败。无法访问服务器上的验证文件
- excel - 文件夹选择器问题 - VBA
- react-native - React Native Navigation - 无效的挂钩调用
- r - 如何在仁进汽车华宇中使用季节性?
- javascript - Google 表格到 PDF 仅获取活动表格/选项卡
- sql-server - 如何解析存储在 SQL Server 列中的 XML
- azure - API 访问 Azure 中的新磁盘 IO 和带宽指标
- java - java - 在 Java 中将 JSON 字符串拆分为 JSON 字符串
- mysql - 显示 SQL 查询的错误数据
- tuf - 如何在 AGL 平台上使用 aktualizr 进行 OTA 更新