bt builder

This commit is contained in:
IDONTSUDO 2024-05-29 15:38:36 +03:00
parent 5162612a77
commit c5ae89d18a
52 changed files with 1013 additions and 441 deletions

View file

@ -12,7 +12,6 @@ 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.
@ -22,10 +21,8 @@ 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>;
rFind<T>(predicate: (value: T, index: number, obj: never[]) => boolean, thisArg?: any): Result<void, T>;
maxLength(length: number): Array<T>;
}
interface Number {
fromArray(): number[];
@ -43,7 +40,10 @@ declare global {
replaceMany(searchValues: string[], replaceValue: string): string;
isEqual(str: string): boolean;
isEqualMany(str: string[]): boolean;
hasPattern(pattern: string): boolean;
hasNoPattern(pattern: string): boolean;
}
interface Map<K, V> {
addValueOrMakeCallback(key: K, value: V, callBack: CallBackVoidFunction): void;
getKeyFromValueIsExists(value: V): K | undefined;
@ -51,6 +51,7 @@ declare global {
keysToJson(): string;
toArray(): V[];
getPredicateValue(callBack: (value: V) => boolean): K[];
incrementValue(key: K): void;
}
interface Vector3 {}
}