updated typings to version 2.1.6 of linq4js

This commit is contained in:
morrisjdev
2017-03-20 20:55:22 +01:00
parent 9d913b0229
commit b03293d76d

32
linq4js/index.d.ts vendored
View File

@@ -9,16 +9,37 @@ declare namespace Linq4JS {
Id: number;
}
}
declare namespace Linq4JS {
class EvaluateCommand {
Command: string;
SplitRegex: RegExp[];
Finder: RegExp[];
constructor(command: string, ...identifier: string[]);
}
class EvaluateCommandResult {
Command: string;
DynamicFunction: string;
constructor(cmd: string, fn: string);
}
}
declare namespace Linq4JS {
class Helper {
private static ConvertStringFunction(functionString);
static ConvertFunction<T>(testFunction: string | T): T;
private static ConvertStringFunction(functionString, noAutoReturn?, noBracketReplace?);
static ConvertFunction<T>(testFunction: string | T, noAutoReturn?: boolean, noBracketReplace?: boolean): T;
static OrderCompareFunction<T>(valueSelector: (item: T) => any, a: T, b: T, invert: boolean): number;
static SplitCommand(command: string): string[];
static MatchCommand(cmd: string): EvaluateCommandResult;
static Commands: EvaluateCommand[];
}
}
interface Array<T> {
Order: Linq4JS.OrderEntry[];
GroupValue: any;
/**
* Executes actions defined in the command-string
* @param command The command-string for execution
*/
Evaluate(command: string): any;
/**
* Creates a copy of the array
*/
@@ -281,3 +302,10 @@ declare namespace Linq4JS {
Descending = 1,
}
}
declare namespace Linq4JS {
class SelectEntry {
property: string;
name: string;
constructor(n: string, p: string);
}
}