@modular-rest/server 1.13.0 → 1.13.1

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.
@@ -23,7 +23,7 @@ interface CollectionDefinitionOptions {
23
23
  * @type {Schema}
24
24
  * @see https://mongoosejs.com/docs/5.x/docs/guide.html
25
25
  */
26
- schema: Schema;
26
+ schema: Schema<any>;
27
27
  }
28
28
  /**
29
29
  * To have define any collection in your database you haveto use below method in your `db.[js|ts]` file and export an array of CollectionDefinition instances.
@@ -94,7 +94,7 @@ export declare class CollectionDefinition {
94
94
  /** @readonly The name of the collection */
95
95
  collection: string;
96
96
  /** @readonly Mongoose schema definition */
97
- schema: Schema;
97
+ schema: Schema<any>;
98
98
  /** @readonly List of permissions for the collection */
99
99
  permissions: Permission[];
100
100
  /** @readonly Optional database triggers */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modular-rest/server",
3
- "version": "1.13.0",
3
+ "version": "1.13.1",
4
4
  "description": "TypeScript version of a nodejs module based on KOAJS for developing Rest-APIs in a modular solution.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,7 +25,7 @@ interface CollectionDefinitionOptions {
25
25
  * @type {Schema}
26
26
  * @see https://mongoosejs.com/docs/5.x/docs/guide.html
27
27
  */
28
- schema: Schema;
28
+ schema: Schema<any>;
29
29
  }
30
30
 
31
31
  /**
@@ -102,7 +102,7 @@ export class CollectionDefinition {
102
102
  collection: string;
103
103
 
104
104
  /** @readonly Mongoose schema definition */
105
- schema: Schema;
105
+ schema: Schema<any>;
106
106
 
107
107
  /** @readonly List of permissions for the collection */
108
108
  permissions: Permission[];