{"repo":"vectier/tslombok","free":true,"listed":false,"github":"https://github.com/vectier/tslombok","clone":"git clone https://github.com/vectier/tslombok.git","description":"Lombok for TypeScript","language":"TypeScript","stars":27,"topics":["boilerplate","decorators","lombok","modules","node","nodejs","typescript","utilities"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"TSLombok A decorator-based module that allows developer to reduce boilerplate code, make your code more fatty-free. TSLombok use TypeScript Compiler API behind the scene to read the Abstract Syntax Tree (AST) of your TypeScript source code and then determine what should declaration to generate into .d.ts (declaration file) for using declaration merging technique. This technique allows TSLombok to merge a magic method from TSLombok into the existing decorated class. Special thanks to Lombok . This project (TSLombok) is strongly inspired from their. Preview Without any IDE extension installation, only TSLombok is installed. Getting started Install TSLombok module Then run TSLombok generator engine with npx tslombok and ready to go! (We plan to remove this step and make TSLombok a TSC plugin for automatically starting up) Features @Getter / @Setter - @Getter - The property decorator to create a getter method automatically. A getter method returns the property, and is named getFoo if the property is called foo . - @Setter - The property decorator to create a setter method automatically. A setter method is named setFoo if the property is called foo , returns void, and takes 1 parameter of the same type as the property to set the field to the given value. Example: Limitation - TSLombok generator engine reads your source code and determines what parameter type or return type should be by reading TypeReference of PropertyDeclaration on AST, so you must explicitly define the type. - W","default_branch":null,"files":null,"tree":[],"storefront":"/r/vectier","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vectier/tslombok/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}