deco-express 0.1.2 → 0.1.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.
package/dist/index.d.mts CHANGED
@@ -80,7 +80,7 @@ declare function Controller(baseRoute?: string): (target: object) => void;
80
80
  * }
81
81
  * ```
82
82
  */
83
- declare function Validate(schema: Joi.Schema): (_target: object, _propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
83
+ declare function Validate(schema: Joi.ObjectSchema): (_target: object, _propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
84
84
 
85
85
  /** Any class constructor that produces instances of type `T`. */
86
86
  type Constructor<T = object> = new (...args: unknown[]) => T;
package/dist/index.d.ts CHANGED
@@ -80,7 +80,7 @@ declare function Controller(baseRoute?: string): (target: object) => void;
80
80
  * }
81
81
  * ```
82
82
  */
83
- declare function Validate(schema: Joi.Schema): (_target: object, _propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
83
+ declare function Validate(schema: Joi.ObjectSchema): (_target: object, _propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
84
84
 
85
85
  /** Any class constructor that produces instances of type `T`. */
86
86
  type Constructor<T = object> = new (...args: unknown[]) => T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deco-express",
3
- "version": "0.1.2",
3
+ "version": "0.1.5",
4
4
  "author": "ndrolp",
5
5
  "description": "Decorator-based utilities for building Express.js REST APIs in TypeScript",
6
6
  "main": "./dist/index.js",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "express": "^5.1.0",
49
- "joi": "^17.13.3",
49
+ "joi": "^18.0.2",
50
50
  "reflect-metadata": "^0.2.2"
51
51
  }
52
52
  }