cancel fast zap

This commit is contained in:
2023-02-27 21:19:26 +00:00
parent 17c6b65158
commit 7463196edf
2 changed files with 16 additions and 9 deletions

View File

@ -1,11 +1,19 @@
import { useEffect } from "react";
interface WebLNPaymentResponse {
paymentHash: string;
preimage: string;
route: {
total_amt: number;
total_fees: number;
};
}
declare global {
interface Window {
webln?: {
enabled: boolean;
enable: () => Promise<void>;
sendPayment: (pr: string) => Promise<unknown>;
sendPayment: (pr: string) => Promise<WebLNPaymentResponse>;
};
}
}