mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
14 lines
555 B
TypeScript
14 lines
555 B
TypeScript
// Type definitions for array-find-index
|
|
// Project: https://github.com/sindresorhus/array-find-index
|
|
// Definitions by: Sam Verschueren <https://github.com/samverschueren>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare module "array-find-index" {
|
|
type Predicate = (element: any, index: number, array: any[]) => boolean;
|
|
|
|
function arrayFindIndex(arr: any[], predicate: Predicate): number;
|
|
function arrayFindIndex(arr: any[], predicate: Predicate, ctx: any): number;
|
|
namespace arrayFindIndex {}
|
|
export = arrayFindIndex;
|
|
}
|