From d30f76f0eae64825124875375c79548327983df5 Mon Sep 17 00:00:00 2001 From: martinquestedKC <108069625+martinquestedKC@users.noreply.github.com> Date: Thu, 22 Feb 2024 13:43:25 +0100 Subject: [PATCH] Update easy-button.d.ts to match code change in f903381 button.state() can now be used without arguments to retrieve the state name. (Very belatedly!) update the TypeScript file to reflect this possible usage. --- src/easy-button.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/easy-button.d.ts b/src/easy-button.d.ts index f7363f8..7670d1f 100644 --- a/src/easy-button.d.ts +++ b/src/easy-button.d.ts @@ -75,6 +75,7 @@ declare module 'leaflet' { class EasyButton extends L.Control { constructor(options?: EasyButtonOptions) + state(): string state(stateName: string): EasyButton enable(): void disable(): void