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:
Jeffery Grajkowski
2013-11-26 10:29:46 -08:00
parent 6321375a3f
commit 798dbfbf8f
26 changed files with 85 additions and 85 deletions
+6 -6
View File
@@ -16,7 +16,7 @@ declare module "less" {
callExtract;
stack;
column;
extract: Array;
extract: any[];
}
interface Options {
@@ -257,15 +257,15 @@ declare module "less" {
variable(): Rule;
rulesets(): Ruleset[];
find(selector: Selector, self: Rule): Rule[];
joinSelectors(paths: string[], context: Array[], selectors: Selector[]): void;
joinSelector(paths: string[], context: Array[], selector: Selector): void;
joinSelectors(paths: string[], context: any[][], selectors: Selector[]): void;
joinSelector(paths: string[], context: any[][], selector: Selector): void;
mergeElementsOnToSelectors(elements: Element[], selectors: Selector[]): void;
}
export class Ruleset extends AbstractRuleset {
constructor(selectors: Selector[], rules: Rule[], strictImports);
toCSS(context?: Array[], env?: Options): string;
toCSS(context?: any[][], env?: Options): string;
}
export class Element implements IInjectable {
@@ -476,7 +476,7 @@ declare module "less" {
emptySelectors(): Selector[];
evalTop(env: Options): IEvalable;
evalNested(env: Options): Ruleset;
permute(arr: Array): Array;
permute(arr: any[]): any[];
bubbleSelectors(selectors: Selector[]): void;
}
@@ -499,7 +499,7 @@ declare module "less" {
}
export var debugInfo: DebugInfoFunction;
export function find(obj: Array, fun: Function): any;
export function find(obj: any[], fun: Function): any;
export function jsify(obj: any): string;
export function operate(op: string, a: number, b: number): number;