oksy 0.1.23 → 0.1.24
Sign up to get free protection for your applications and to get access to all the features.
- package/boot.js +20 -20
- package/library.js +1 -1
- package/package.json +1 -1
- package/tsconfig.json +0 -4
- package/types/src/ReactiveStore/ReactiveStore.d.ts +3 -2
package/package.json
CHANGED
package/tsconfig.json
CHANGED
@@ -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
|
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
|
44
|
+
delete(model: null | Draft<InstanceType<typeof GlobalEntity>>): void;
|
44
45
|
}
|
45
46
|
declare class Table {
|
46
47
|
private tableName;
|