我已经阅读了tslint rules here,虽然它像the typedef rule的call-signature
选项一样是我想要的,但它并没有抱怨缺少返回类型.
有人知道在类方法上强制执行返回类型的规则(f one存在)吗?
我已经阅读了tslint rules here,虽然它像the typedef rule的call-signature
选项一样是我想要的,但它并没有抱怨缺少返回类型.
有人知道在类方法上强制执行返回类型的规则(f one存在)吗?
事实证明,这项工作可以通过以下方式完成:
"typedef": [
true,
"call-signature",
"property-declaration"
]