File: index.d.ts

package info (click to toggle)
node-array-find-index 1.0.2%2B~1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 140 kB
  • sloc: javascript: 29; makefile: 2
file content (8 lines) | stat: -rw-r--r-- 532 bytes parent folder | download
1
2
3
4
5
6
7
8
// Type definitions for array-find-index 1.0
// Project: https://github.com/sindresorhus/array-find-index
// Definitions by: Sam Verschueren <https://github.com/samverschueren>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare function arrayFindIndex<T>(arr: T[], predicate: (element: T, index: number, array: T[]) => boolean): number;
declare function arrayFindIndex<T, U>(arr: T[], predicate: (this: U, element: T, index: number, array: T[]) => boolean, ctx: U): number;
export = arrayFindIndex;