From b5a491c936a4768a4f64b60771ab1247b58d15bd Mon Sep 17 00:00:00 2001 From: Nicolas CARPi Date: Mon, 25 Mar 2024 02:12:29 +0100 Subject: [PATCH] fix doc example for fun option --- src/main.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.ts b/src/main.ts index 26856a0..2882a24 100644 --- a/src/main.ts +++ b/src/main.ts @@ -79,6 +79,7 @@ export interface Options { /** * This is the main and only mandatory option parameter. It is the user function that is called when the Submit action happens. * @example with a custom function + * ``` * // this is the user function that will process the new value * // typically this will POST to some endpoint and get some json back * // it receives the event @@ -91,6 +92,7 @@ export interface Options { * new Malle({ * fun: myCustomFunction, * }).listen(); + * ``` */ fun(value: string, original: HTMLElement, event:Event, input: HTMLInputElement|HTMLSelectElement): Promise; // The classes added to the input element.