Then I would have to wrap the whole class, rather than individual fields...
user29889977
–
user29889977
2025-04-10 15:14:15 +00:00
CommentedApr 10 at 15:14
1
Indeed, but that's the only thing you can do in TS other than manually tweaking Foo's type independently of the decorator. ms/TS#4881 remains open, decorators don't mutate the types of a class declaration.
Foo's type independently of the decorator. ms/TS#4881 remains open, decorators don't mutate the types of a class declaration.