aboutsummaryrefslogtreecommitdiff
path: root/src/extensions/ExtensionsTypings.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-10-18 00:28:55 -0400
committerbobzel <zzzman@gmail.com>2024-10-18 00:28:55 -0400
commit0728e918e6d075c0eda738b7d2fdbf6095c714ae (patch)
tree24a3e316852922eb3a0a94c2c6e1a0d078d57825 /src/extensions/ExtensionsTypings.ts
parent7b29d9c14cb1ea786e64655b33b245ed14bd2d9e (diff)
fixed following links/show document of items in tabs/carousel/card view to set options.didMove correctly so that toggleTarget works.
Diffstat (limited to 'src/extensions/ExtensionsTypings.ts')
-rw-r--r--src/extensions/ExtensionsTypings.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/extensions/ExtensionsTypings.ts b/src/extensions/ExtensionsTypings.ts
index d6ffd3be3..fa8851bb3 100644
--- a/src/extensions/ExtensionsTypings.ts
+++ b/src/extensions/ExtensionsTypings.ts
@@ -1,6 +1,14 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
interface Array<T> {
+ /**
+ * returns the last element of the array or undefined
+ */
lastElement(): T;
+ /**
+ * if val is in the list, it returns its index, otherwise undefined;
+ * @param val
+ */
+ getIndex(val: T): number | undefined;
}
interface String {