The other definition of Array
is Array<T>
(with a type parameter) in lib.d.ts
. You need to declare yours as:
interface Array<T> {
indexOfField : (propertyName: string, value: any) => number;
}
in order to have the same number of type parameters.