This commit is contained in:
IDONTSUDO 2024-05-13 20:43:11 +03:00
parent 4585d079f6
commit 5162612a77
49 changed files with 1108 additions and 732 deletions

View file

@ -1,3 +1,4 @@
import { Result } from "../helper/result";
import { ArrayExtensions } from "./array";
import { MapExtensions } from "./map";
import { NumberExtensions } from "./number";
@ -11,6 +12,7 @@ export type OptionalProperties<T> = {
[P in keyof T]?: T[P];
};
declare global {
interface Array<T> {
// @strict: The parameter is determined whether the arrays must be exactly the same in content and order of this relationship or simply follow the same requirements.
@ -20,6 +22,10 @@ declare global {
isNotEmpty(): boolean;
hasIncludeElement(element: T): boolean;
repeat(quantity: number): Array<T>;
rFind<T>(
predicate: (value: T, index: number, obj: never[]) => boolean,
thisArg?: any
): Result<void, T>;
}
interface Number {
fromArray(): number[];