@stemy/backend 5.1.0 → 5.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stemy/backend",
3
- "version": "5.1.0",
3
+ "version": "5.1.1",
4
4
  "license": "MIT",
5
5
  "repository": "git@github.com:stemyke/node-backend.git",
6
6
  "builders": "builders.json",
@@ -27,14 +27,14 @@ export declare abstract class BaseDoc<IDType extends RefType = mongoose.Types.Ob
27
27
  /**
28
28
  * Casts this to DocumentType<this> to allow using document methods in get/set-s
29
29
  */
30
- cast(): DocumentType<this>;
30
+ cast<ImplType = this>(): DocumentType<ImplType>;
31
31
  /**
32
32
  * Gets a pre-compiled model from typegoose cache by its class type
33
33
  * @param type
34
34
  */
35
35
  model<T extends Constructor<any>>(type: T): ReturnModelType<T>;
36
36
  }
37
- export declare type PrimitiveArray<T> = mongoose.Types.Array<T>;
37
+ export type PrimitiveArray<T> = mongoose.Types.Array<T>;
38
38
  export declare const PrimitiveArray: typeof mongoose.Types.Array;
39
- export declare type DocumentArray<T extends BaseDoc> = mongoose.Types.DocumentArray<DocumentType<T>>;
39
+ export type DocumentArray<T extends BaseDoc> = mongoose.Types.DocumentArray<DocumentType<T>>;
40
40
  export declare const DocumentArray: typeof mongoose.Types.DocumentArray;
package/utils.d.ts CHANGED
@@ -13,7 +13,7 @@ export interface IDIContainers {
13
13
  appContainer: DependencyContainer;
14
14
  }
15
15
  export declare const diContainers: IDIContainers;
16
- export declare type FilterPredicate = (value: any, key?: any, target?: any, source?: any) => boolean;
16
+ export type FilterPredicate = (value: any, key?: any, target?: any, source?: any) => boolean;
17
17
  export declare function isNullOrUndefined(value: any): boolean;
18
18
  export declare function isDefined(value: any): boolean;
19
19
  export declare function getType(obj: any): string;