aboutsummaryrefslogtreecommitdiff
path: root/src/global.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/global.d.ts')
-rw-r--r--src/global.d.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/global.d.ts b/src/global.d.ts
new file mode 100644
index 0000000..a90ef61
--- /dev/null
+++ b/src/global.d.ts
@@ -0,0 +1,11 @@
+export {}
+
+// Temporary solution for typescript not including Array.findLast()
+declare global {
+ interface Array<T> {
+ findLast(
+ predicate: (value: T, index: number, obj: T[]) => unknown,
+ thisArg?: any
+ ): T | undefined
+ }
+}