@kakasoo/proto-typescript
Advanced tools
Comparing version 1.25.1 to 1.26.0
@@ -9,3 +9,3 @@ import { ToPrimitive } from '../interfaces/to-primitive.interface'; | ||
import { TypedObject } from './typed-object.class'; | ||
export declare class TypedString<T extends string | number | boolean = ''> extends TypedObject<T> implements Pick<FunctionType.MethodsFrom<String>, 'split' | 'at' | 'concat' | 'trimStart' | 'trimEnd' | 'trim' | 'padEnd' | 'padStart' | 'toLowerCase' | 'toUpperCase' | 'includes' | 'substring' | 'startsWith' | 'endsWith' | 'repeat' | 'indexOf'>, ToPrimitive<T | `${T}`>, Iterable<ArrayType.ElementOf<StringType.Split<`${T}`>>> { | ||
export declare class TypedString<T extends string | number | boolean = ''> extends TypedObject<T> implements Pick<FunctionType.MethodsFrom<String>, 'split' | 'at' | 'concat' | 'trimStart' | 'trimEnd' | 'trim' | 'padEnd' | 'padStart' | 'toLowerCase' | 'toUpperCase' | 'includes' | 'substring' | 'startsWith' | 'endsWith' | 'repeat' | 'indexOf' | 'slice'>, ToPrimitive<T | `${T}`>, Iterable<ArrayType.ElementOf<StringType.Split<`${T}`>>> { | ||
[n: number]: ArrayType.At<StringType.Split<`${T}`>, number>; | ||
@@ -18,2 +18,6 @@ private readonly string; | ||
*/ | ||
slice<Start extends number, End extends number>(start?: Start | TypedNumber<Start>, end?: End | TypedNumber<End>): TypedString<ReturnType<typeof StringPrototype.slice<`${T}`, Start, End>>>; | ||
/** | ||
* @inheritdoc | ||
*/ | ||
concat<Strings extends ReadonlyOrNot<(string | TypedString<string>)[]>>(...strings: Strings): TypedString<ReturnType<typeof StringPrototype.concat<`${T}`, TypedString.ValueTypes<Strings>>>>; | ||
@@ -20,0 +24,0 @@ /** |
@@ -42,2 +42,11 @@ "use strict"; | ||
*/ | ||
slice(start, end) { | ||
const primitiveStart = this.isTypedClass(start) ? start.toPrimitive() : start; | ||
const primitiveEnd = this.isTypedClass(end) ? end.toPrimitive() : end; | ||
const initialValue = prototypes_1.StringPrototype.slice(this.string, primitiveStart, primitiveEnd); | ||
return new TypedString(initialValue); | ||
} | ||
/** | ||
* @inheritdoc | ||
*/ | ||
concat(...strings) { | ||
@@ -44,0 +53,0 @@ const primitiveStrs = strings.map((el) => (this.isTypedClass(el) ? el.toPrimitive() : el)); |
import { ArrayType, StringType } from '../types'; | ||
import { ReadonlyOrNot } from '../types/primitive.type'; | ||
export declare const StringPrototype: { | ||
slice<Container extends string, Start extends number, End extends number>(container: Container, start?: Start | undefined, end?: End | undefined): ArrayType.Join<ArrayType.SliceByValue<Container extends "" ? [] : Container extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container], (Container extends "" ? [] : Container extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container])[Start], import("../types").NeverType.IsNever<End> extends true ? never : (Container extends "" ? [] : Container extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container])[End], false>, "">; | ||
/** | ||
@@ -9,3 +10,3 @@ * Returns the position of the first occurrence of a substring. | ||
*/ | ||
indexOf<Container extends string, SearchString extends string = "", Position extends number = 0>(container: Container, searchString?: SearchString, position?: Position): ArrayType.Join<ArrayType.Reverse<ArrayType.Join<import("../types").Conditional<import("../types").NumberType.Sub<StringType.Length<Container>, Position> extends infer T ? T extends import("../types").NumberType.Sub<StringType.Length<Container>, Position> ? T extends 0 ? true : false : never : never, ArrayType.Join<ArrayType.Reverse<Container extends "" ? [] : Container extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container]>, ""> extends infer T_1 ? T_1 extends ArrayType.Join<ArrayType.Reverse<Container extends "" ? [] : Container extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container]>, ""> ? T_1 extends "" ? [] : T_1 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [T_1] : never : never, ArrayType.Take<ArrayType.Join<ArrayType.Reverse<Container extends "" ? [] : Container extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container]>, ""> extends infer T_2 ? T_2 extends ArrayType.Join<ArrayType.Reverse<Container extends "" ? [] : Container extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container]>, ""> ? T_2 extends "" ? [] : T_2 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [T_2] : never : never, import("../types").NumberType.Sub<StringType.Length<Container>, Position>, []>>, ""> extends infer T_3 ? T_3 extends ArrayType.Join<import("../types").Conditional<import("../types").NumberType.Sub<StringType.Length<Container>, Position> extends infer T_4 ? T_4 extends import("../types").NumberType.Sub<StringType.Length<Container>, Position> ? T_4 extends 0 ? true : false : never : never, ArrayType.Join<ArrayType.Reverse<Container extends "" ? [] : Container extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container]>, ""> extends infer T_5 ? T_5 extends ArrayType.Join<ArrayType.Reverse<Container extends "" ? [] : Container extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container]>, ""> ? T_5 extends "" ? [] : T_5 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [T_5] : never : never, ArrayType.Take<ArrayType.Join<ArrayType.Reverse<Container extends "" ? [] : Container extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container]>, ""> extends infer T_6 ? T_6 extends ArrayType.Join<ArrayType.Reverse<Container extends "" ? [] : Container extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container]>, ""> ? T_6 extends "" ? [] : T_6 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [T_6] : never : never, import("../types").NumberType.Sub<StringType.Length<Container>, Position>, []>>, ""> ? T_3 extends "" ? [] : T_3 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [T_3] : never : never>, ""> extends infer T_7 ? T_7 extends ArrayType.Join<ArrayType.Reverse<ArrayType.Join<import("../types").Conditional<import("../types").NumberType.Sub<StringType.Length<Container>, Position> extends infer T_8 ? T_8 extends import("../types").NumberType.Sub<StringType.Length<Container>, Position> ? T_8 extends 0 ? true : false : never : never, ArrayType.Join<ArrayType.Reverse<Container extends "" ? [] : Container extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container]>, ""> extends infer T_9 ? T_9 extends ArrayType.Join<ArrayType.Reverse<Container extends "" ? [] : Container extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container]>, ""> ? T_9 extends "" ? [] : T_9 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [T_9] : never : never, ArrayType.Take<ArrayType.Join<ArrayType.Reverse<Container extends "" ? [] : Container extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container]>, ""> extends infer T_10 ? T_10 extends ArrayType.Join<ArrayType.Reverse<Container extends "" ? [] : Container extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container]>, ""> ? T_10 extends "" ? [] : T_10 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [T_10] : never : never, import("../types").NumberType.Sub<StringType.Length<Container>, Position>, []>>, ""> extends infer T_11 ? T_11 extends ArrayType.Join<import("../types").Conditional<import("../types").NumberType.Sub<StringType.Length<Container>, Position> extends infer T_12 ? T_12 extends import("../types").NumberType.Sub<StringType.Length<Container>, Position> ? T_12 extends 0 ? true : false : never : never, ArrayType.Join<ArrayType.Reverse<Container extends "" ? [] : Container extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container]>, ""> extends infer T_13 ? T_13 extends ArrayType.Join<ArrayType.Reverse<Container extends "" ? [] : Container extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container]>, ""> ? T_13 extends "" ? [] : T_13 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [T_13] : never : never, ArrayType.Take<ArrayType.Join<ArrayType.Reverse<Container extends "" ? [] : Container extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container]>, ""> extends infer T_14 ? T_14 extends ArrayType.Join<ArrayType.Reverse<Container extends "" ? [] : Container extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container]>, ""> ? T_14 extends "" ? [] : T_14 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [T_14] : never : never, import("../types").NumberType.Sub<StringType.Length<Container>, Position>, []>>, ""> ? T_11 extends "" ? [] : T_11 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [T_11] : never : never>, ""> ? T_7 extends `${SearchString}${string}` ? ArrayType.Length<Position extends 0 ? [] : import("../types").NTuple<Position, [], any>> : T_7 extends `${infer FirstLetter}${infer Rest_1}` ? Rest_1 extends `${SearchString}${string}` ? ArrayType.Length<[...Position extends 0 ? [] : import("../types").NTuple<Position, [], any>, FirstLetter]> : Rest_1 extends `${infer FirstLetter}${infer Rest_1}` ? Rest_1 extends `${SearchString}${string}` ? ArrayType.Length<[...Position extends 0 ? [] : import("../types").NTuple<Position, [], any>, FirstLetter, FirstLetter]> : Rest_1 extends `${infer FirstLetter}${infer Rest_1}` ? Rest_1 extends `${SearchString}${string}` ? ArrayType.Length<[...Position extends 0 ? [] : import("../types").NTuple<Position, [], any>, FirstLetter, FirstLetter, FirstLetter]> : Rest_1 extends `${infer FirstLetter}${infer Rest_1}` ? Rest_1 extends `${SearchString}${string}` ? ArrayType.Length<[...Position extends 0 ? [] : import("../types").NTuple<Position, [], any>, FirstLetter, FirstLetter, FirstLetter, FirstLetter]> : Rest_1 extends `${infer FirstLetter}${infer Rest_1}` ? Rest_1 extends `${SearchString}${string}` ? ArrayType.Length<[...Position extends 0 ? [] : import("../types").NTuple<Position, [], any>, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter]> : Rest_1 extends `${infer FirstLetter}${infer Rest_1}` ? Rest_1 extends `${SearchString}${string}` ? ArrayType.Length<[...Position extends 0 ? [] : import("../types").NTuple<Position, [], any>, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter]> : Rest_1 extends `${infer FirstLetter}${infer Rest_1}` ? Rest_1 extends `${SearchString}${string}` ? ArrayType.Length<[...Position extends 0 ? [] : import("../types").NTuple<Position, [], any>, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter]> : Rest_1 extends `${infer FirstLetter}${infer Rest_1}` ? Rest_1 extends `${SearchString}${string}` ? ArrayType.Length<[...Position extends 0 ? [] : import("../types").NTuple<Position, [], any>, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter]> : Rest_1 extends `${infer FirstLetter}${infer Rest_1}` ? Rest_1 extends `${SearchString}${string}` ? ArrayType.Length<[...Position extends 0 ? [] : import("../types").NTuple<Position, [], any>, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter]> : Rest_1 extends `${infer FirstLetter}${infer Rest_1}` ? Rest_1 extends `${SearchString}${string}` ? ArrayType.Length<[...Position extends 0 ? [] : import("../types").NTuple<Position, [], any>, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter]> : Rest_1 extends `${infer FirstLetter}${infer Rest_1}` ? any : -1 : -1 : -1 : -1 : -1 : -1 : -1 : -1 : -1 : -1 : -1 : never : never; | ||
indexOf<Container_1 extends string, SearchString extends string = "", Position extends number = 0>(container: Container_1, searchString?: SearchString, position?: Position): ArrayType.Join<ArrayType.Reverse<ArrayType.Join<import("../types").Conditional<import("../types").NumberType.Sub<StringType.Length<Container_1>, Position> extends infer T ? T extends import("../types").NumberType.Sub<StringType.Length<Container_1>, Position> ? T extends 0 ? true : false : never : never, ArrayType.Join<ArrayType.Reverse<Container_1 extends "" ? [] : Container_1 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container_1]>, ""> extends infer T_1 ? T_1 extends ArrayType.Join<ArrayType.Reverse<Container_1 extends "" ? [] : Container_1 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container_1]>, ""> ? T_1 extends "" ? [] : T_1 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [T_1] : never : never, ArrayType.Take<ArrayType.Join<ArrayType.Reverse<Container_1 extends "" ? [] : Container_1 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container_1]>, ""> extends infer T_2 ? T_2 extends ArrayType.Join<ArrayType.Reverse<Container_1 extends "" ? [] : Container_1 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container_1]>, ""> ? T_2 extends "" ? [] : T_2 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [T_2] : never : never, import("../types").NumberType.Sub<StringType.Length<Container_1>, Position>, []>>, ""> extends infer T_3 ? T_3 extends ArrayType.Join<import("../types").Conditional<import("../types").NumberType.Sub<StringType.Length<Container_1>, Position> extends infer T_4 ? T_4 extends import("../types").NumberType.Sub<StringType.Length<Container_1>, Position> ? T_4 extends 0 ? true : false : never : never, ArrayType.Join<ArrayType.Reverse<Container_1 extends "" ? [] : Container_1 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container_1]>, ""> extends infer T_5 ? T_5 extends ArrayType.Join<ArrayType.Reverse<Container_1 extends "" ? [] : Container_1 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container_1]>, ""> ? T_5 extends "" ? [] : T_5 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [T_5] : never : never, ArrayType.Take<ArrayType.Join<ArrayType.Reverse<Container_1 extends "" ? [] : Container_1 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container_1]>, ""> extends infer T_6 ? T_6 extends ArrayType.Join<ArrayType.Reverse<Container_1 extends "" ? [] : Container_1 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container_1]>, ""> ? T_6 extends "" ? [] : T_6 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [T_6] : never : never, import("../types").NumberType.Sub<StringType.Length<Container_1>, Position>, []>>, ""> ? T_3 extends "" ? [] : T_3 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [T_3] : never : never>, ""> extends infer T_7 ? T_7 extends ArrayType.Join<ArrayType.Reverse<ArrayType.Join<import("../types").Conditional<import("../types").NumberType.Sub<StringType.Length<Container_1>, Position> extends infer T_8 ? T_8 extends import("../types").NumberType.Sub<StringType.Length<Container_1>, Position> ? T_8 extends 0 ? true : false : never : never, ArrayType.Join<ArrayType.Reverse<Container_1 extends "" ? [] : Container_1 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container_1]>, ""> extends infer T_9 ? T_9 extends ArrayType.Join<ArrayType.Reverse<Container_1 extends "" ? [] : Container_1 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container_1]>, ""> ? T_9 extends "" ? [] : T_9 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [T_9] : never : never, ArrayType.Take<ArrayType.Join<ArrayType.Reverse<Container_1 extends "" ? [] : Container_1 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container_1]>, ""> extends infer T_10 ? T_10 extends ArrayType.Join<ArrayType.Reverse<Container_1 extends "" ? [] : Container_1 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container_1]>, ""> ? T_10 extends "" ? [] : T_10 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [T_10] : never : never, import("../types").NumberType.Sub<StringType.Length<Container_1>, Position>, []>>, ""> extends infer T_11 ? T_11 extends ArrayType.Join<import("../types").Conditional<import("../types").NumberType.Sub<StringType.Length<Container_1>, Position> extends infer T_12 ? T_12 extends import("../types").NumberType.Sub<StringType.Length<Container_1>, Position> ? T_12 extends 0 ? true : false : never : never, ArrayType.Join<ArrayType.Reverse<Container_1 extends "" ? [] : Container_1 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container_1]>, ""> extends infer T_13 ? T_13 extends ArrayType.Join<ArrayType.Reverse<Container_1 extends "" ? [] : Container_1 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container_1]>, ""> ? T_13 extends "" ? [] : T_13 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [T_13] : never : never, ArrayType.Take<ArrayType.Join<ArrayType.Reverse<Container_1 extends "" ? [] : Container_1 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container_1]>, ""> extends infer T_14 ? T_14 extends ArrayType.Join<ArrayType.Reverse<Container_1 extends "" ? [] : Container_1 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container_1]>, ""> ? T_14 extends "" ? [] : T_14 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [T_14] : never : never, import("../types").NumberType.Sub<StringType.Length<Container_1>, Position>, []>>, ""> ? T_11 extends "" ? [] : T_11 extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [T_11] : never : never>, ""> ? T_7 extends `${SearchString}${string}` ? ArrayType.Length<Position extends 0 ? [] : import("../types").NTuple<Position, [], any>> : T_7 extends `${infer FirstLetter}${infer Rest_1}` ? Rest_1 extends `${SearchString}${string}` ? ArrayType.Length<[...Position extends 0 ? [] : import("../types").NTuple<Position, [], any>, FirstLetter]> : Rest_1 extends `${infer FirstLetter}${infer Rest_1}` ? Rest_1 extends `${SearchString}${string}` ? ArrayType.Length<[...Position extends 0 ? [] : import("../types").NTuple<Position, [], any>, FirstLetter, FirstLetter]> : Rest_1 extends `${infer FirstLetter}${infer Rest_1}` ? Rest_1 extends `${SearchString}${string}` ? ArrayType.Length<[...Position extends 0 ? [] : import("../types").NTuple<Position, [], any>, FirstLetter, FirstLetter, FirstLetter]> : Rest_1 extends `${infer FirstLetter}${infer Rest_1}` ? Rest_1 extends `${SearchString}${string}` ? ArrayType.Length<[...Position extends 0 ? [] : import("../types").NTuple<Position, [], any>, FirstLetter, FirstLetter, FirstLetter, FirstLetter]> : Rest_1 extends `${infer FirstLetter}${infer Rest_1}` ? Rest_1 extends `${SearchString}${string}` ? ArrayType.Length<[...Position extends 0 ? [] : import("../types").NTuple<Position, [], any>, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter]> : Rest_1 extends `${infer FirstLetter}${infer Rest_1}` ? Rest_1 extends `${SearchString}${string}` ? ArrayType.Length<[...Position extends 0 ? [] : import("../types").NTuple<Position, [], any>, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter]> : Rest_1 extends `${infer FirstLetter}${infer Rest_1}` ? Rest_1 extends `${SearchString}${string}` ? ArrayType.Length<[...Position extends 0 ? [] : import("../types").NTuple<Position, [], any>, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter]> : Rest_1 extends `${infer FirstLetter}${infer Rest_1}` ? Rest_1 extends `${SearchString}${string}` ? ArrayType.Length<[...Position extends 0 ? [] : import("../types").NTuple<Position, [], any>, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter]> : Rest_1 extends `${infer FirstLetter}${infer Rest_1}` ? Rest_1 extends `${SearchString}${string}` ? ArrayType.Length<[...Position extends 0 ? [] : import("../types").NTuple<Position, [], any>, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter]> : Rest_1 extends `${infer FirstLetter}${infer Rest_1}` ? Rest_1 extends `${SearchString}${string}` ? ArrayType.Length<[...Position extends 0 ? [] : import("../types").NTuple<Position, [], any>, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter, FirstLetter]> : Rest_1 extends `${infer FirstLetter}${infer Rest_1}` ? any : -1 : -1 : -1 : -1 : -1 : -1 : -1 : -1 : -1 : -1 : -1 : never : never; | ||
/** | ||
@@ -16,3 +17,3 @@ * Returns a String value that is made from count copies appended together. If count is 0, | ||
*/ | ||
repeat<Container_1 extends string, Counter extends number>(container: Container_1, counter: Counter): StringType.Repeat<Container_1, Counter>; | ||
repeat<Container_2 extends string, Counter extends number>(container: Container_2, counter: Counter): StringType.Repeat<Container_2, Counter>; | ||
/** | ||
@@ -23,3 +24,3 @@ * Returns true if the sequence of elements of searchString converted to a String is the | ||
*/ | ||
startsWith<Container_2 extends string, SearchString_1 extends string, Position_1 extends number>(container: Container_2, searchString: SearchString_1, position?: Position_1 | undefined): StringType.StartsWith<Container_2, SearchString_1, Position_1>; | ||
startsWith<Container_3 extends string, SearchString_1 extends string, Position_1 extends number>(container: Container_3, searchString: SearchString_1, position?: Position_1 | undefined): StringType.StartsWith<Container_3, SearchString_1, Position_1>; | ||
/** | ||
@@ -30,3 +31,3 @@ * Returns true if the sequence of elements of searchString converted to a String is the | ||
*/ | ||
endsWith<Container_3 extends string, SearchString_2 extends string, EndPosition extends number>(container: Container_3, searchString: SearchString_2, endPosition?: EndPosition | undefined): StringType.EndsWith<Container_3, SearchString_2, EndPosition>; | ||
endsWith<Container_4 extends string, SearchString_2 extends string, EndPosition extends number>(container: Container_4, searchString: SearchString_2, endPosition?: EndPosition | undefined): StringType.EndsWith<Container_4, SearchString_2, EndPosition>; | ||
/** | ||
@@ -38,3 +39,3 @@ * Returns the substring at the specified location within a String object. | ||
*/ | ||
substring<Conatiner extends string, Start extends number, End extends number = never>(container: Conatiner, start: Start, end?: End | undefined): ArrayType.Join<ArrayType.SliceByValue<Conatiner extends "" ? [] : Conatiner extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Conatiner], (Conatiner extends "" ? [] : Conatiner extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Conatiner])[Start], import("../types").NeverType.IsNever<End> extends true ? never : (Conatiner extends "" ? [] : Conatiner extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Conatiner])[End], false>, "">; | ||
substring<Conatiner extends string, Start_1 extends number, End_1 extends number = never>(container: Conatiner, start: Start_1, end?: End_1 | undefined): ArrayType.Join<ArrayType.SliceByValue<Conatiner extends "" ? [] : Conatiner extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Conatiner], (Conatiner extends "" ? [] : Conatiner extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Conatiner])[Start_1], import("../types").NeverType.IsNever<End_1> extends true ? never : (Conatiner extends "" ? [] : Conatiner extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : Rest extends `${infer FirstWord}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Conatiner])[End_1], false>, "">; | ||
/** | ||
@@ -81,3 +82,3 @@ * Converts all the alphabetic characters in a string to lowercase. | ||
*/ | ||
includes<Container_4 extends string, SearchString_3 extends string, Position_2 extends number>(container: Container_4, searchString: SearchString_3, position?: Position_2 | undefined): StringType.Includes<Container_4, SearchString_3, Position_2>; | ||
includes<Container_5 extends string, SearchString_3 extends string, Position_2 extends number>(container: Container_5, searchString: SearchString_3, position?: Position_2 | undefined): StringType.Includes<Container_5, SearchString_3, Position_2>; | ||
/** | ||
@@ -105,3 +106,3 @@ * Removes the leading white space and line terminator characters from a string. | ||
*/ | ||
concat<Container_5 extends string, Strings extends ReadonlyOrNot<string[]>>(container: Container_5, ...strings: Strings): ArrayType.Join<[Container_5, ...Strings], "">; | ||
concat<Container_6 extends string, Strings extends ReadonlyOrNot<string[]>>(container: Container_6, ...strings: Strings): ArrayType.Join<[Container_6, ...Strings], "">; | ||
/** | ||
@@ -111,3 +112,3 @@ * Returns a new String consisting of the single UTF-16 code unit located at the specified index. | ||
*/ | ||
at<Container_6 extends string, Index extends number>(container: Container_6, index: Index): StringType.At<Container_6, Index>; | ||
at<Container_7 extends string, Index extends number>(container: Container_7, index: Index): StringType.At<Container_7, Index>; | ||
/** | ||
@@ -123,4 +124,4 @@ * type-safe split. | ||
*/ | ||
split<Container_7 extends string, Splitter extends string = "", Limit extends number = 0>(container: Container_7, splitter: Splitter, limit?: Limit | undefined): import("../types").Conditional<Limit extends 0 ? true : false, Container_7 extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Container_7 extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container_7], ArrayType.Take<Container_7 extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Container_7 extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container_7], Limit, []>>; | ||
split<Container_8 extends string, Splitter extends string = "", Limit extends number = 0>(container: Container_8, splitter: Splitter, limit?: Limit | undefined): import("../types").Conditional<Limit extends 0 ? true : false, Container_8 extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Container_8 extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container_8], ArrayType.Take<Container_8 extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Container_8 extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...Rest extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Rest extends `${infer FirstWord}${Splitter}${infer Rest}` ? [FirstWord, ...any] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Rest]] : [Container_8], Limit, []>>; | ||
}; | ||
//# sourceMappingURL=string.prototype.d.ts.map |
@@ -5,2 +5,5 @@ "use strict"; | ||
exports.StringPrototype = { | ||
slice(container, start, end) { | ||
return container.slice(start, end); | ||
}, | ||
/** | ||
@@ -7,0 +10,0 @@ * Returns the position of the first occurrence of a substring. |
@@ -17,3 +17,3 @@ import { NeverType } from './never.type'; | ||
type Take<T extends ReadonlyOrNot<any[]>, P extends number, R extends ReadonlyOrNot<any[]> = []> = ArrayType.Length<R> extends P ? R : T extends [infer F, ...infer Rest] ? Take<Rest, P, ArrayType.Push<R, F>> : R; | ||
type Slice<T extends ReadonlyOrNot<any[]>, A extends number, B extends number> = SliceByValue<T, T[A], NeverType.IsNever<B> extends true ? never : T[B]>; | ||
type Slice<T extends ReadonlyOrNot<any[]>, Start extends number, End extends number> = SliceByValue<T, T[Start], NeverType.IsNever<End> extends true ? never : T[End]>; | ||
/** | ||
@@ -20,0 +20,0 @@ * Returns matching A to matching B in tuple form. |
@@ -75,4 +75,5 @@ import { Conditional } from './arithmetic.type'; | ||
export type IndexOf<Container extends string, SearchString extends string, Position extends number = 0> = _IndexOf<StringType.ThrowLeft<Container, Position>, SearchString, Position extends 0 ? [] : NTuple<Position>>; | ||
export type Slice<Container extends string, Start extends number, End extends number> = ArrayType.Join<ArrayType.Slice<Split<Container, ''>, Start, End>, ''>; | ||
export {}; | ||
} | ||
//# sourceMappingURL=string.type.d.ts.map |
{ | ||
"name": "@kakasoo/proto-typescript", | ||
"version": "1.25.1", | ||
"version": "1.26.0", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
185438
1838