使用强化类型,您可以默认设置 TsInterface 上的属性吗?
With reinforced typings, can you set properties on TsInterface by default?
我们在TsInterface
上使用属性、AutoExportMethods
。但我们必须记住将此添加到每个 TsInterface
。我想知道我们是否有办法在强化类型的配置中将其默认设置为 true?
这与 类似,但不是针对每个文件忽略它,我们希望默认忽略所有文件。
可以继承[TsInterface]
属性,默认为AutoExportMethods
true
。然后使用您自己的属性而不是内置的 [TsInterface]
我们在TsInterface
上使用属性、AutoExportMethods
。但我们必须记住将此添加到每个 TsInterface
。我想知道我们是否有办法在强化类型的配置中将其默认设置为 true?
这与
可以继承[TsInterface]
属性,默认为AutoExportMethods
true
。然后使用您自己的属性而不是内置的 [TsInterface]