@alevnyacow/nzmt 0.8.6 → 0.8.7

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/README.md +3 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -44,9 +44,11 @@ You can use `fromDI` method anywhere you need an instance of a controller or a s
44
44
  ```ts
45
45
  // app/api/shop/route.ts
46
46
 
47
- import { ShopController } from "@/server/controllers/shop"
47
+ import type { ShopController } from "@/server/controllers/shop"
48
48
  import { fromDI } from "@/server/di"
49
49
 
50
+ // 'ShopController' here is not just a string, you have an
51
+ // intellisense across all injected modules.
50
52
  const controller = fromDI<ShopController>('ShopController')
51
53
 
52
54
  // Suppose you have implemented the list_GET method in the controller.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alevnyacow/nzmt",
3
- "version": "0.8.6",
3
+ "version": "0.8.7",
4
4
  "description": "Next Zod Modules Toolkit",
5
5
  "repository": {
6
6
  "type": "git",