Skip to content

Commit

Permalink
Update variable type.
Browse files Browse the repository at this point in the history
  • Loading branch information
silenceway committed Jul 20, 2023
1 parent 8daa19e commit 23a92eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/services/lndhub.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fetch from 'node-fetch';

import { Balance, Invoice, InvoiceResponse, PaymentResponse, Server } from '../interfaces/lndhub';
import { Balance, CheckPaymentResponse, Invoice, InvoiceResponse, PaymentResponse, Server } from '../interfaces/lndhub';
import { request } from '../utils/request';

const defaultUrl = 'lndhub://user:password@http://localhost';
Expand Down Expand Up @@ -95,7 +95,7 @@ export class LndhubRestClient {
return undefined;
}

async getPayment(paymentHash: string): Promise<any> {
async getPayment(paymentHash: string): Promise<CheckPaymentResponse | undefined> {
const access_token = await this.authentication();
const url = this.getUrl();

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
/* Language and Environment */
"target": "es5", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
"target": "es6", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
"lib": [
"es6"
], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
Expand Down

0 comments on commit 23a92eb

Please sign in to comment.