Skip to content

Commit 28d874f

Browse files
authored
Fixing type definition in TransactionPromise (#887)
The wrong type definition was causing crash while generates the DenoJS version of the driver.
1 parent 4b02866 commit 28d874f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/core/src/transaction-promise.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
* limitations under the License.
1818
*/
1919

20-
import Transaction from "./transaction"
20+
import Transaction from './transaction'
2121
import {
2222
ConnectionHolder
2323
} from './internal/connection-holder'
2424

2525
import { Bookmarks } from './internal/bookmarks'
26-
import { TxConfig } from "./internal/tx-config";
26+
import { TxConfig } from './internal/tx-config'
2727

2828
/**
2929
* Represents a {@link Promise<Transaction>} object and a {@link Transaction} object.
@@ -41,7 +41,7 @@ class TransactionPromise extends Transaction implements Promise<Transaction>{
4141
private _beginMetadata?: any;
4242
private _beginPromise?: Promise<Transaction>;
4343
private _reject?: (error: Error) => void;
44-
private _resolve?: (value?: Transaction | PromiseLike<Transaction> | undefined) => void;
44+
private _resolve?: (value: Transaction | PromiseLike<Transaction>) => void;
4545

4646
/**
4747
* @constructor

0 commit comments

Comments
 (0)