Skip to content

Commit c6e1ecb

Browse files
committed
fixed tsconfig
1 parent 035ce3c commit c6e1ecb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+58
-55
lines changed

dev/IArray.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
* Returns the first item of the array - returns `null` if no suitable item was found
128128
* @param filter If set the function returns the first item that matches the filter
129129
*/
130-
FirstOrDefault(filter?: ((item: T) => boolean) | string): T;
130+
FirstOrDefault(filter?: ((item: T) => boolean) | string): (T | null);
131131

132132
/**
133133
* Returns the last item of the array - Throws an exception if no item was found
@@ -139,7 +139,7 @@
139139
* Returns the last item of the array - returns `null` if no suitable item was found
140140
* @param filter If set the function returns the last item that matches the filter
141141
*/
142-
LastOrDefault(filter?: ((item: T) => boolean) | string): T;
142+
LastOrDefault(filter?: ((item: T) => boolean) | string): (T | null);
143143

144144
/**
145145
* Select the properties for a new array
@@ -195,13 +195,13 @@
195195
* Returns the smallest element in array
196196
* @param valueSelector The selector-function (or function-string) that selects the property for comparison
197197
*/
198-
Min(valueSelector?: ((item: T) => any) | string): T;
198+
Min(valueSelector?: ((item: T) => any) | string): (T | null);
199199

200200
/**
201201
* Returns the greates element in array
202202
* @param valueSelector The selector-function (or function-string) that selects the property for comparison
203203
*/
204-
Max(valueSelector?: ((item: T) => any) | string): T;
204+
Max(valueSelector?: ((item: T) => any) | string): (T | null);
205205

206206
/**
207207
* Groups array by property

dev/Modules/Add.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Array.prototype.Add = function<T> (object: T, generateId?: boolean): Array<T> {
1+
Array.prototype.Add = function<T> (this: Array<T>, object: T, generateId?: boolean): Array<T> {
22
let that: Array<T> = this;
33

44
if (object != null) {

dev/Modules/AddRange.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Array.prototype.AddRange = function<T> (objects: Array<T>, generateId: boolean): Array<T> {
1+
Array.prototype.AddRange = function<T> (this: Array<T>, objects: Array<T>, generateId: boolean): Array<T> {
22
let that: Array<T> = this;
33

44
objects.ForEach(function (x: T) {

dev/Modules/Aggregate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Array.prototype.Aggregate = function<T> (method: ((result: any, item: T) => any) | string, startVal?: any): string {
1+
Array.prototype.Aggregate = function<T> (this: Array<T>, method: ((result: any, item: T) => any) | string, startVal?: any): string {
22
let that: Array<T> = this;
33

44
let result: any;

dev/Modules/All.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Array.prototype.All = function<T> (filter: ((item: T) => boolean) | string): boolean {
1+
Array.prototype.All = function<T> (this: Array<T>, filter: ((item: T) => boolean) | string): boolean {
22
let that: Array<T> = this;
33

44
return that.Count(filter) == that.Count();

dev/Modules/Any.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Array.prototype.Any = function<T> (filter?: ((item: T) => boolean) | string): boolean {
1+
Array.prototype.Any = function<T> (this: Array<T>, filter?: ((item: T) => boolean) | string): boolean {
22
let that: Array<T> = this;
33

44
return that.Count(filter) > 0;

dev/Modules/Average.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Array.prototype.Average = function <T>(selector?: ((item: T) => any) | string, filter?: ((item: T) => boolean) | string): number {
1+
Array.prototype.Average = function <T>(this: Array<T>, selector?: ((item: T) => any) | string, filter?: ((item: T) => boolean) | string): number {
22
let that: Array<T> = this;
33

44
let result: number = 0;

dev/Modules/Clone.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Array.prototype.Clone = function<T> (): Array<T> {
1+
Array.prototype.Clone = function<T> (this: Array<T>): Array<T> {
22
let that: Array<T> = this;
33

44
let newArray: Array<T> = new Array<T>();

dev/Modules/Concat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Array.prototype.Concat = function<T> (array: Array<T>): Array<T> {
1+
Array.prototype.Concat = function<T> (this: Array<T>, array: Array<T>): Array<T> {
22
let that: Array<T> = this;
33
that = that.concat(array);
44
return that;

dev/Modules/Contains.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Array.prototype.Contains = function<T> (object: T): boolean {
1+
Array.prototype.Contains = function<T> (this: Array<T>, object: T): boolean {
22
let that: Array<T> = this;
33

44
return that.Any(function(x){

0 commit comments

Comments
 (0)