1

I really like some patterns made much easier by the Lombok library. Annotations like @Builder and @Data will generate methods for me that I almost always want on certain kinds of objects.

I'd like to use these patterns in typescript as well, but it's a bit of a pain to write all this code which could be done by a decorator. Are there any well-known, supported libraries for this? And if not, is there a reason (such as these patterns not being as necessary in typescript for whatever reason)?

I found the builder-pattern npm package, which looks great, but I'm greedy and am wondering if there is a bigger, more widely used typescript library with more of these common patterns built in and exposed through decorators.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.