mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 21:31:12 +08:00
updated typings to version 2.1.6 of linq4js
This commit is contained in:
32
linq4js/index.d.ts
vendored
32
linq4js/index.d.ts
vendored
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user