UNPKG

reest

Version:

A library inspired by NestJS's elegance, specifically designed for efficient serverless API development on AWS Lambda. It streamlines the creation of microservices with automated Swagger documentation and enhanced decorator-based middleware support, makin

11 lines (10 loc) 291 B
export const PORT = (port?: number | string): ClassDecorator => { if (!port) { return (constructor: Function) => { Reflect.defineMetadata("port", 3000, constructor); }; } return (constructor: Function) => { Reflect.defineMetadata("port", +port, constructor); }; };