UNPKG

decova-dotnet-developer

Version:

This package provides fundumentals that a .net developer may miss while working with Typescript, whether they are missing functinalities or funcionalities provided in a non-elegant design in javascript. Bad naming, bad design of optional parameters, non-c

39 lines 1.65 kB
import { Func, Action } from "./CommonDelegates"; export declare class List<T> { constructor(array?: Array<T> | Iterable<T> | IterableIterator<T> | ArrayLike<T> | null); private _Array; get Array(): Array<T>; get Count(): number; Select<RType>(func: Func<T, RType>): List<RType>; SelectMany<RType>(func: Func<T, List<RType>>): List<RType>; Sort(toSimpleValue?: Func<T, string | number> | null): List<T>; Reverse(): List<T>; Foreach(func: Action<T>): void; Any(func?: Func<T, boolean> | null): boolean; All(func: Func<T, boolean>): boolean; get IsEmpty(): boolean; Add(item: T): void; EnsureItem(item: T): void; AddRange(items: List<T> | Array<T>): void; Where(func: Func<T, boolean>): List<T>; ItemAt(index: number): T; IndexOf(item: T): number; RemoveAt(index: any): void; RemoveRange(index: number, lenght: number): void; RemoveWhere(func: Func<T, boolean>): void; GetRange(index: number, length?: number | undefined): List<T>; Insert(index: number, item: T): void; InsertRange(index: number, items: List<T> | Array<T>): void; FirstOrDefault(func: Func<T, boolean> | null): T | null; First(func?: Func<T, boolean> | null): T; LastOrDefault(func?: Func<T, boolean> | null): T | null; Last(func?: Func<T, boolean> | null): T; Skip(countToSkip: number): List<T>; Take(countToTake: number): List<T>; Contains(obj: T): boolean; Distinct(): List<T>; Except(excepted: List<T>): List<T>; Clone(): List<T>; Intersect(otherList: List<T>): List<T>; } //# sourceMappingURL=List.d.ts.map