From de5f1620773798e8416089cfcea207c42aa040f5 Mon Sep 17 00:00:00 2001 From: Limon Monte <6059356+limonte@users.noreply.github.com> Date: Tue, 26 Sep 2023 12:27:35 +0300 Subject: [PATCH] fix(types): make bindClickHandler()'s param optional --- sweetalert2.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sweetalert2.d.ts b/sweetalert2.d.ts index 069547cd2..45fe0508a 100644 --- a/sweetalert2.d.ts +++ b/sweetalert2.d.ts @@ -292,7 +292,7 @@ declare module 'sweetalert2' { * * @param attribute The attribute name to search for, defaults to `data-swal-template` */ - function bindClickHandler(attribute: string): void + function bindClickHandler(attribute?: string): void /** * Determines if a given parameter name is valid.