@alevnyacow/nzmt 0.39.4 → 0.39.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/cli.js +3 -1
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -1125,8 +1125,10 @@ function generateController(upperCase, lowerCase, crudService) {
1125
1125
  `import { ${lowerCase}ControllerMetadata } from './${entityName}.controller.metadata'`,
1126
1126
  ...importInjections,
1127
1127
  ``,
1128
+ `type Endpoints = Controller.EndpointList<typeof ${lowerCase}ControllerMetadata>`,
1129
+ ``,
1128
1130
  `@injectable()`,
1129
- `export class ${upperCase}Controller implements Controller.EndpointList<typeof ${lowerCase}ControllerMetadata> {`,
1131
+ `export class ${upperCase}Controller implements Endpoints {`,
1130
1132
  `\tconstructor(`,
1131
1133
  ...injections.map(x => `\t\t@inject('${x}' satisfies DITokens) private readonly ${x.charAt(0).toLowerCase() + x.slice(1)}: ${x},`),
1132
1134
  `\t) {}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alevnyacow/nzmt",
3
- "version": "0.39.4",
3
+ "version": "0.39.5",
4
4
  "description": "Next Zod Modules Toolkit",
5
5
  "keywords": ["next", "full-stack", "server", "backend", "cli", "scaffolding", "zod", "rest", "contract programming", "contract-first", "react-query", "ddd", "domain-driven"],
6
6
  "repository": {