Dual backends
Use experimentalDecorators (NestJS, TypeORM) or Stage 3 ECMAScript decorators — same API surface from lombok-typescript/legacy or /stage3.
Reduce boilerplate with decorators and generated companions — legacy and Stage 3 backends, side by side.
lombok-typescript brings Project Lombok-style annotations and Gang-of-Four design patterns to TypeScript. You decorate classes and methods; the library applies runtime behavior or generates companion code so you write less boilerplate.
Phase 1 (v0.1) ships eight decorators: @NonNull, @ToString, @Builder, @Data, @Singleton, @Prototype, @Factory, and @Memoize.
toString@Injectable()@Data, @Builder, and similar ergonomicslombok-typescript is not a dependency-injection container (use NestJS, Inversify, or tsyringe), an ORM, or a state-management library. It targets TypeScript 5+ and Node 22+ and does not polyfill older runtimes.
Version 0.1.0 — code-complete on main, not published to npm yet. See the changelog on GitHub.
| Resource | Link |
|---|---|
| Full documentation | You are here |
| Source & issues | github.com/A-Dev-Kit/lombok-typescript |
| Runnable examples | examples/plain-ts, examples/nestjs |