Merge branch 'morrisjdev-linq4js'

This commit is contained in:
Paul van Brenk
2017-03-21 14:03:51 -07:00
+30 -2
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);
}
}