Skip to content

Commit

Permalink
Merge pull request #12 from WebBTC/fix/lookup-invoice
Browse files Browse the repository at this point in the history
fix: lookup invoice args and response type
  • Loading branch information
rolznz authored Dec 19, 2023
2 parents 12133ce + 1713423 commit 791b904
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@webbtc/webln-types",
"description": "Type definitions for WebLN",
"version": "2.1.0",
"version": "3.0.0",
"types": "types/index.d.ts",
"repository": {
"type": "git",
Expand Down
5 changes: 3 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,13 @@ interface GetBalanceResponse {
}

interface LookupInvoiceArgs {
invoice?: string;
payment_hash?: string;
paymentRequest?: string;
paymentHash?: string;
}

interface LookupInvoiceResponse {
paymentRequest: string;
preimage?: string;
paid: boolean;
}

Expand Down

0 comments on commit 791b904

Please sign in to comment.