alado 2.1.1 → 2.1.2

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/README.md CHANGED
@@ -354,7 +354,6 @@ transformProperty(propertyTransformer: (value:any) => any | Promise<any>)
354
354
 
355
355
  ```
356
356
 
357
-
358
357
  ### `validateProperty`
359
358
 
360
359
  ```ts
@@ -1,7 +1,10 @@
1
+ export type ResponseError = {
2
+ message: string;
3
+ };
1
4
  export interface Response<T> {
2
5
  title?: string;
3
6
  description?: string;
4
7
  statusCode: number;
5
8
  headers?: Record<string, string>;
6
- body?: T;
9
+ body?: T | ResponseError;
7
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alado",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "Extremely fast, lightweight, robust framework for HTTP applications written in Node.js",
5
5
  "keywords": [
6
6
  "HTTP",