@clairejs/server 3.0.13 → 3.0.14

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
@@ -1,6 +1,6 @@
1
1
  ## Change Log
2
2
 
3
- #### 3.0.13:
3
+ #### 3.0.14:
4
4
 
5
5
  - add getById and getByIds to IQuery
6
6
 
@@ -10,7 +10,7 @@ export declare abstract class AbstractQuery<T extends AbstractModel> implements
10
10
  }): Promise<Pick<T, K> | undefined>;
11
11
  abstract getByIds<K extends keyof T>(ids: number[], options?: {
12
12
  projection?: K[];
13
- }): Promise<Pick<T, K>[] | undefined>;
13
+ }): Promise<Pick<T, K>[]>;
14
14
  abstract getOne<K extends keyof T>(queries?: QueryCondition<T>, options?: {
15
15
  projection?: K[];
16
16
  }): Promise<Pick<T, K> | undefined>;
@@ -36,7 +36,7 @@ export interface IQuery<T extends AbstractModel> extends IJoin<T> {
36
36
  }): Promise<Pick<T, K> | undefined>;
37
37
  getByIds<K extends keyof T>(ids: number[], options?: {
38
38
  projection?: K[];
39
- }): Promise<Pick<T, K>[] | undefined>;
39
+ }): Promise<Pick<T, K>[]>;
40
40
  getOne<K extends keyof T>(queries?: QueryCondition<T>, options?: {
41
41
  projection?: K[];
42
42
  }): Promise<Pick<T, K> | undefined>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clairejs/server",
3
- "version": "3.0.13",
3
+ "version": "3.0.14",
4
4
  "description": "Claire server NodeJs framework written in Typescript.",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",