@snowtop/ent 0.1.4 → 0.1.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/action/transaction.d.ts +3 -3
- package/package.json +1 -1
package/action/transaction.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Ent, Viewer } from "../core/base";
|
|
2
2
|
import { Action, Builder } from "./action";
|
|
3
|
-
type ActionAny = Action<Ent<
|
|
4
|
-
export declare class Transaction {
|
|
3
|
+
type ActionAny<TViewer extends Viewer = Viewer> = Action<Ent<TViewer>, Builder<Ent<TViewer>, TViewer, any>, Viewer<any, any>, any, any>;
|
|
4
|
+
export declare class Transaction<TViewer extends Viewer = Viewer> {
|
|
5
5
|
private viewer;
|
|
6
6
|
private actions;
|
|
7
|
-
constructor(viewer:
|
|
7
|
+
constructor(viewer: TViewer, actions: ActionAny<TViewer>[]);
|
|
8
8
|
run(): Promise<void>;
|
|
9
9
|
}
|
|
10
10
|
export {};
|