Skip to content

Commit

Permalink
Add Array.prototype.findLast() type declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrazee committed Sep 11, 2023
1 parent 445e057 commit 76d971a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/api/src/global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export {}

declare global {
interface Array<T> {
findLast(
predicate: (value: T, index: number, obj: T[]) => unknown,
thisArg?: any,
): T
}
}

0 comments on commit 76d971a

Please sign in to comment.