oksy 0.1.27 → 0.1.29

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oksy",
3
- "version": "0.1.27",
3
+ "version": "0.1.29",
4
4
  "description": "The OKSY framework",
5
5
  "main": "library.js",
6
6
  "typings": "./types/src/library.pub.d.ts",
@@ -47,7 +47,7 @@ declare abstract class BasePage {
47
47
  type MODULE_KEY = keyof typeof MODULES;
48
48
  type MODEL<KEY extends MODULE_KEY> = InstanceType<(typeof MODULES[KEY])>;
49
49
  declare class Database {
50
- getById<T extends MODULE_KEY>(tableName: T, id: undefined | null | string): null | MODEL<T>;
50
+ getById<T extends MODULE_KEY>(tableName: T, id: undefined | null | string): null | MODEL<T> | Draft<MODEL<T>>;
51
51
  getAll<T extends MODULE_KEY>(tableName: T): MODEL<T>[];
52
52
  getAllWithDraft<T extends MODULE_KEY>(tableName: T): Draft<MODEL<T>>[];
53
53
  create<T extends MODULE_KEY>(moduleName: T): Draft<MODEL<T>>;