From decfc512429b4a01d8c1e64fe73dbde896df3428 Mon Sep 17 00:00:00 2001 From: Forostovec Date: Mon, 13 Oct 2025 21:55:19 +0300 Subject: [PATCH] docs: add JSDoc to open() method callback parameter --- packages/wc-qrcode-modal/src/index.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/wc-qrcode-modal/src/index.tsx b/packages/wc-qrcode-modal/src/index.tsx index 0762f2f8dd..b34d535ada 100644 --- a/packages/wc-qrcode-modal/src/index.tsx +++ b/packages/wc-qrcode-modal/src/index.tsx @@ -49,6 +49,11 @@ export class KeplrQRCodeModalV2 { } } + /** + * Opens the QR code modal with the provided URI. + * @param uri - The WalletConnect URI to display in the QR code + * @param cb - Callback function to execute when the modal is closed (used for cleanup logic) + */ open(uri: string, cb: any) { const wrapper = document.createElement("div"); wrapper.setAttribute("id", "keplr-qrcode-modal-v2");