diff --git a/types/global.d.ts b/types/global.d.ts new file mode 100644 index 0000000..1dfd799 --- /dev/null +++ b/types/global.d.ts @@ -0,0 +1,10 @@ +export {}; + +declare global { + interface Array { + findLast( + predicate: (value: T, index: number, obj: T[]) => unknown, + thisArg?: any + ): number; + } +}