Skip to content

Commit 7cd5172

Browse files
committed
Fix error TS2307: Cannot find module
1 parent 2438295 commit 7cd5172

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/api.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ import * as transactionUtils from './transaction/utils'
6969
import * as schemaValidator from './common/schema-validator'
7070
import {getServerInfo, getFee} from './common/serverinfo'
7171
import {clamp} from './ledger/utils'
72-
import {Instructions} from './transaction/types'
72+
import {Instructions, Prepare} from './transaction/types'
7373

7474
export type APIOptions = {
7575
server?: string,
@@ -205,7 +205,8 @@ class RippleAPI extends EventEmitter {
205205
*
206206
* You can later submit the transaction with `submit()`.
207207
*/
208-
async prepareTransaction(txJSON: object, instructions: Instructions = {}) {
208+
async prepareTransaction(txJSON: object, instructions: Instructions = {}):
209+
Promise<Prepare> {
209210
return transactionUtils.prepareTransaction(txJSON, this, instructions)
210211
}
211212

src/transaction/types.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ export type Instructions = {
2222
export type Prepare = {
2323
txJSON: string,
2424
instructions: {
25-
fee: string,
26-
sequence: number,
27-
maxLedgerVersion?: number
28-
}
25+
fee: string,
26+
sequence: number,
27+
maxLedgerVersion?: number
28+
}
2929
}
3030

3131
export type Submit = {

0 commit comments

Comments
 (0)