decova-dotnet
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
29 lines • 1.15 kB
TypeScript
interface ReadonlyArray<T> {
xCount(): number;
xReform<RType>(func: (op: T) => RType): RType[];
xSelectMany<RType>(func: (arg: T) => RType[]): RType[];
xSort(toSimpleValue: (arg: T) => string | number | null): T[];
xReverse(): T[];
xForeach(func: (arg: T) => void): void;
xAny(func?: (arg: T) => boolean): boolean;
xAll(func?: (arg: T) => boolean): boolean;
xIsEmpty(): boolean;
xUnion(another: T[]): T[];
xWhere(func: (arg: T) => boolean): T[];
xItemAt(index: number): T;
xIndexOf(item: T): number;
xGetRange(index: number, length: number | undefined): T[];
xInsertRange(index: number, items: T[]): void;
xFirstOrNull(func?: (arg: T) => boolean): T | null;
xFirst(func?: (arg: T) => boolean): T;
xLastOrNull(func?: (arg: T) => boolean): T | null;
xLast(func?: (arg: T) => boolean): T;
xSkip(countToSkip: number): T[];
xTake(countToTake: number): T[];
xContains(obj: T): boolean;
xDistinct(): T[];
xExcept(except: T[]): T[];
xClone(): T[];
xIntersect(otherList: T[]): T[];
}
//# sourceMappingURL=ReadonlyArray.d.ts.map