oksy 0.1.23 → 0.1.24

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": "oksy",
3
- "version": "0.1.23",
3
+ "version": "0.1.24",
4
4
  "description": "The OKSY framework",
5
5
  "main": "library.js",
6
6
  "typings": "./types/src/library.pub.d.ts",
package/tsconfig.json CHANGED
@@ -1,9 +1,5 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "types": [
4
- "node"
5
- ],
6
- "sourceMap": true,
7
3
  "target": "ESNext",
8
4
  "paths": {
9
5
  "oksy": ["./types/src/library.pub"],
@@ -2,6 +2,7 @@ import { SqliteClient } from './../Bootstrap/SqliteClient';
2
2
  import { Blueprint } from './../Bootstrap/TsFilesToBlueprint/Blueprint';
3
3
  import { ModelMaker } from './ModelMaker';
4
4
  import { GlobalEntity } from 'oksy';
5
+ import { Draft } from './BaseEntity';
5
6
  export interface Storage {
6
7
  getById(tableName: string, id: string): null | any;
7
8
  delete(model: any): void;
@@ -23,7 +24,7 @@ export declare class ReactiveStore implements Storage {
23
24
  getAll(tableName: string): any[];
24
25
  getAllWithDraft(tableName: string): any[];
25
26
  getById(tableName: string, id: undefined | null | string): null | any;
26
- delete(model: null | InstanceType<typeof GlobalEntity>): void;
27
+ delete(model: null | Draft<InstanceType<typeof GlobalEntity>>): void;
27
28
  }
28
29
  export declare class Database implements Storage {
29
30
  id: string;
@@ -40,7 +41,7 @@ export declare class Database implements Storage {
40
41
  getAll(tableName: string): any[];
41
42
  getAllWithDraft(tableName: string): any[];
42
43
  create(moduleName: string): any;
43
- delete(model: null | InstanceType<typeof GlobalEntity>): void;
44
+ delete(model: null | Draft<InstanceType<typeof GlobalEntity>>): void;
44
45
  }
45
46
  declare class Table {
46
47
  private tableName;