remult 0.22.4 → 0.22.5
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/esm/src/context.d.ts +6 -1
- package/package.json +1 -1
- package/src/context.d.ts +6 -1
package/esm/src/context.d.ts
CHANGED
|
@@ -8,11 +8,15 @@ export declare class RemultAsyncLocalStorage {
|
|
|
8
8
|
private readonly remultObjectStorage;
|
|
9
9
|
static enable(): void;
|
|
10
10
|
static disable(): void;
|
|
11
|
-
constructor(remultObjectStorage:
|
|
11
|
+
constructor(remultObjectStorage: myAsyncLocalStorage<Remult>);
|
|
12
12
|
run(remult: Remult, callback: VoidFunction): void;
|
|
13
13
|
getRemult(): Remult;
|
|
14
14
|
static instance: RemultAsyncLocalStorage;
|
|
15
15
|
}
|
|
16
|
+
declare type myAsyncLocalStorage<T> = {
|
|
17
|
+
run<R>(store: T, callback: (...args: any[]) => R, ...args: any[]): R;
|
|
18
|
+
getStore(): T;
|
|
19
|
+
};
|
|
16
20
|
export declare function isBackend(): boolean;
|
|
17
21
|
export declare class Remult {
|
|
18
22
|
/**Return's a `Repository` of the specific entity type
|
|
@@ -127,3 +131,4 @@ export interface itemChange {
|
|
|
127
131
|
deleted: boolean;
|
|
128
132
|
}
|
|
129
133
|
export declare function doTransaction(remult: Remult, what: () => Promise<void>): Promise<void>;
|
|
134
|
+
export {};
|
package/package.json
CHANGED
package/src/context.d.ts
CHANGED
|
@@ -8,11 +8,15 @@ export declare class RemultAsyncLocalStorage {
|
|
|
8
8
|
private readonly remultObjectStorage;
|
|
9
9
|
static enable(): void;
|
|
10
10
|
static disable(): void;
|
|
11
|
-
constructor(remultObjectStorage:
|
|
11
|
+
constructor(remultObjectStorage: myAsyncLocalStorage<Remult>);
|
|
12
12
|
run(remult: Remult, callback: VoidFunction): void;
|
|
13
13
|
getRemult(): Remult;
|
|
14
14
|
static instance: RemultAsyncLocalStorage;
|
|
15
15
|
}
|
|
16
|
+
declare type myAsyncLocalStorage<T> = {
|
|
17
|
+
run<R>(store: T, callback: (...args: any[]) => R, ...args: any[]): R;
|
|
18
|
+
getStore(): T;
|
|
19
|
+
};
|
|
16
20
|
export declare function isBackend(): boolean;
|
|
17
21
|
export declare class Remult {
|
|
18
22
|
/**Return's a `Repository` of the specific entity type
|
|
@@ -127,3 +131,4 @@ export interface itemChange {
|
|
|
127
131
|
deleted: boolean;
|
|
128
132
|
}
|
|
129
133
|
export declare function doTransaction(remult: Remult, what: () => Promise<void>): Promise<void>;
|
|
134
|
+
export {};
|