mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Converting ungeneric "Array" to "any[]"
TypeScript 0.9.5 beta does not allow generic type references without the type argument. This code will still compile for 0.9.1 users. Flight and Ember have further compile problems in 0.9.5 that I don't feel qualified to address as I'm not versed in those libraries.
This commit is contained in:
@@ -819,9 +819,9 @@ function test_corefns() {
|
||||
f1 = core.propEq("name", "Joe");
|
||||
f1 = core.pluck("name");
|
||||
|
||||
var a1: Array;
|
||||
var a2: Array;
|
||||
var a3: Array;
|
||||
var a1: any[];
|
||||
var a2: any[];
|
||||
var a3: any[];
|
||||
var b: boolean;
|
||||
var n: number;
|
||||
|
||||
|
||||
Vendored
+6
-6
@@ -62,12 +62,12 @@ declare module breeze.core {
|
||||
export function extend(target: Object, source: Object): Object;
|
||||
export function propEq(propertyName: string, value: any): (obj: Object) => boolean;
|
||||
export function pluck(propertyName: string): (obj: Object) => any;
|
||||
export function arrayEquals(a1:Array, a2:Array, equalsFn: (e1:any, e2:any) => boolean): boolean;
|
||||
export function arrayFirst(a1:Array, predicate: (e:any) => boolean): any;
|
||||
export function arrayIndexOf(a1: Array, predicate: (e: any) => boolean): number;
|
||||
export function arrayRemoveItem(array: Array, item: any, shouldRemoveMultiple: boolean): any;
|
||||
export function arrayRemoveItem(array: Array, predicate: (e: any) => boolean, shouldRemoveMultiple: boolean): any;
|
||||
export function arrayZip(a1: Array, a2: Array, callback: (e1:any, e2:any) => any): Array;
|
||||
export function arrayEquals(a1: any[], a2: any[], equalsFn: (e1:any, e2:any) => boolean): boolean;
|
||||
export function arrayFirst(a1: any[], predicate: (e:any) => boolean): any;
|
||||
export function arrayIndexOf(a1: any[], predicate: (e: any) => boolean): number;
|
||||
export function arrayRemoveItem(array: any[], item: any, shouldRemoveMultiple: boolean): any;
|
||||
export function arrayRemoveItem(array: any[], predicate: (e: any) => boolean, shouldRemoveMultiple: boolean): any;
|
||||
export function arrayZip(a1: any[], a2: any[], callback: (e1:any, e2:any) => any): any[];
|
||||
|
||||
export function requireLib(libnames: string, errMessage: string): Object;
|
||||
export function using(obj: Object, property: string, tempValue: any, fn: () => any): any;
|
||||
|
||||
Reference in New Issue
Block a user