fix exporting and doc generation missing types
This commit is contained in:
+2
-2
@@ -5,7 +5,7 @@ export const TEST_CONFIG = {
|
||||
}
|
||||
export const TEST_DATA = "test123123"
|
||||
|
||||
const fetch = require('node-fetch')
|
||||
import fetch from 'node-fetch';
|
||||
|
||||
export const makeTestnetWallet = () : Promise<Wallet> => fetch('https://faucet.altnet.rippletest.net/accounts', {
|
||||
method: 'POST',
|
||||
@@ -13,7 +13,7 @@ export const makeTestnetWallet = () : Promise<Wallet> => fetch('https://faucet.a
|
||||
'Accept': 'application/json',
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
}).then(raw => {
|
||||
}).then((raw:any) => {
|
||||
return raw.json().then(content => {
|
||||
return({
|
||||
secret: content.account.secret,
|
||||
|
||||
Reference in New Issue
Block a user