mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-02 12:00:51 +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:
Vendored
+6
-6
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user