From f302f37f56185423acd781c858a31da65b5b6e8e Mon Sep 17 00:00:00 2001 From: dtbuild Date: Tue, 25 Feb 2025 16:15:18 +0000 Subject: [PATCH] 007b84a7c2d2d4a0d17edae350188b74976f125e Types: Add callback to the button `action` function signature Sync to source repo @007b84a7c2d2d4a0d17edae350188b74976f125e --- datatables.json | 2 +- types/types.d.ts | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/datatables.json b/datatables.json index 1e3cd55..c4850f7 100644 --- a/datatables.json +++ b/datatables.json @@ -25,5 +25,5 @@ ], "src-repo": "http://github.com/DataTables/Buttons", "last-tag": "3.2.2", - "last-sync": "d3938f9dc17f2be4927fdffd979cdca25298b78f" + "last-sync": "007b84a7c2d2d4a0d17edae350188b74976f125e" } \ No newline at end of file diff --git a/types/types.d.ts b/types/types.d.ts index 0d3e885..33c5d3d 100644 --- a/types/types.d.ts +++ b/types/types.d.ts @@ -490,7 +490,13 @@ declare module 'datatables.net' { type FunctionButtonInit = (dt: Api, node: JQuery, config: any) => void; - type FunctionButtonAction = (e: JQuery.Event, dt: Api, node: JQuery, config: ButtonConfig) => void; + type FunctionButtonAction = ( + e: JQuery.Event, + dt: Api, + node: JQuery, + config: ButtonConfig, + callback: () => {} + ) => void; type FunctionButtonCustomize = (win: Window|string) => void;