fix exporting and doc generation missing types

This commit is contained in:
nitowa
2022-02-01 19:00:22 +01:00
parent 865e4f991e
commit b78a1ca6bc
4 changed files with 150 additions and 1180 deletions
+2 -2
View File
@@ -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,