From 4d28b67f9d8ddbec1d64d0864af84f415e4487d8 Mon Sep 17 00:00:00 2001 From: max Date: Sun, 24 Dec 2023 18:02:46 +0200 Subject: [PATCH] Update `htmx.ajax` type signature Signed-off-by: max --- src/htmx.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/htmx.d.ts b/src/htmx.d.ts index 197ac527f..0de59831c 100644 --- a/src/htmx.d.ts +++ b/src/htmx.d.ts @@ -21,7 +21,7 @@ export function addClass(elt: Element, clazz: string, delay?: number): void; * @param element the element to target (defaults to the **body**) * @returns Promise that resolves immediately if no request is sent, or when the request is complete */ -export function ajax(verb: string, path: string, element: Element): Promise; +export function ajax(verb: string, path: string, element?: Element): Promise; /** * Issues an htmx-style AJAX request