Skip to content

类属性装饰器需要初始值 #4

Open
@noahziheng

Description

@noahziheng

如这部分代码所示,Inject 在类属性上生效是会被默认的 TS 规则视为未初始化,考虑处理:

  • 全局加规则 ignore 掉
  • 如同 nest 的最终处理,Inject 作为参数装饰器用在 constructor 里
  • other idea?

https://github.com/artusjs/core/pull/10/files/79a727d28b9546ec2d3fba638c1d0b08b746f493#diff-16a8f18a1e6d24ab6125db9b965edc8d7970d184e44ada35f3ccbf71a21670a4R13

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions