From 517312d80159bf868d54988d4829a67e41dcb6d4 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Mon, 20 Feb 2023 12:17:44 +0000 Subject: [PATCH] 5baf771b943a348392d121a4ee7c81181922f9e0 add ApiSelectorModifier interface b91480bd48b97700d4681e733bc33477237e301a Fix: Add ApiSelectorModifier interface for typescript Merge pull request #49 from hanisko/fix_missing_typescript_apiselector 75eecfd4a6dab78f5cc33980639f48a03f0b321a Dev: Add comment to selected modifier Sync to source repo @75eecfd4a6dab78f5cc33980639f48a03f0b321a --- datatables.json | 2 +- types/types.d.ts | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/datatables.json b/datatables.json index ae68977..a2fe719 100644 --- a/datatables.json +++ b/datatables.json @@ -15,5 +15,5 @@ ], "src-repo": "http://github.com/DataTables/Select", "last-tag": "1.6.0", - "last-sync": "1ee0bcdb388e1e4520f8c5c971951a4163805a5e" + "last-sync": "75eecfd4a6dab78f5cc33980639f48a03f0b321a" } \ No newline at end of file diff --git a/types/types.d.ts b/types/types.d.ts index f5cb7a1..70dfca5 100644 --- a/types/types.d.ts +++ b/types/types.d.ts @@ -25,6 +25,13 @@ declare module 'datatables.net' { select: ApiSelect> } + interface ApiSelectorModifier { + /** + * Pick rows / columns / cells which are selected + */ + selected?: boolean | undefined; + } + interface ApiRowMethods { /** * Select a row