TransactionExecutorFun<T>
type TransactionExecutorFun<T> = (executor) => Promise<T>;
Defined in: packages/rxdb/src/transaction/transaction-executor.interface.ts:155
事务回调:参数是本次事务的 executor。
Type Parameters
| Type Parameter | Default type |
|---|---|
T | unknown |
Parameters
| Parameter | Type |
|---|---|
executor | TransactionExecutor |
Returns
Promise<T>