Fix error TS2307: Cannot find module

This commit is contained in:
Elliot Lee
2018-08-11 01:34:34 -07:00
parent 2438295e70
commit 7cd517268b
2 changed files with 7 additions and 6 deletions

View File

@@ -69,7 +69,7 @@ import * as transactionUtils from './transaction/utils'
import * as schemaValidator from './common/schema-validator'
import {getServerInfo, getFee} from './common/serverinfo'
import {clamp} from './ledger/utils'
import {Instructions} from './transaction/types'
import {Instructions, Prepare} from './transaction/types'
export type APIOptions = {
server?: string,
@@ -205,7 +205,8 @@ class RippleAPI extends EventEmitter {
*
* You can later submit the transaction with `submit()`.
*/
async prepareTransaction(txJSON: object, instructions: Instructions = {}) {
async prepareTransaction(txJSON: object, instructions: Instructions = {}):
Promise<Prepare> {
return transactionUtils.prepareTransaction(txJSON, this, instructions)
}

View File

@@ -22,10 +22,10 @@ export type Instructions = {
export type Prepare = {
txJSON: string,
instructions: {
fee: string,
sequence: number,
maxLedgerVersion?: number
}
fee: string,
sequence: number,
maxLedgerVersion?: number
}
}
export type Submit = {