Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kakasoo/proto-typescript

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kakasoo/proto-typescript - npm Package Compare versions

Comparing version 1.23.0 to 1.24.0

8

dist/classes/typed-string.class.d.ts

@@ -12,3 +12,3 @@ import { ToPrimitive } from '../interfaces/to-primitive.interface';

*/
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'>, 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'>, ToPrimitive<T | `${T}`>, Iterable<ArrayType.ElementOf<StringType.Split<`${T}`>>> {
[n: number]: ArrayType.At<StringType.Split<`${T}`>, number>;

@@ -21,2 +21,6 @@ private readonly string;

*/
concat<Strings extends ReadonlyOrNot<(string | TypedString<string>)[]>>(...strings: Strings): TypedString<ReturnType<typeof StringPrototype.concat<`${T}`, TypedString.ValueTypes<Strings>>>>;
/**
* @inheritdoc
*/
repeat<Counter extends number>(counter?: Counter): TypedString<StringType.Repeat<`${T}`, Counter>>;

@@ -26,3 +30,3 @@ /**

*/
concat<Strings extends ReadonlyOrNot<(string | TypedString<string>)[]>>(...strings: Strings): TypedString<ReturnType<typeof StringPrototype.concat<`${T}`, TypedString.ValueTypes<Strings>>>>;
indexOf<SearchString extends string = '', Position extends number = 0>(searchString?: SearchString, position?: Position): TypedNumber<ReturnType<typeof StringPrototype.indexOf<`${T}`, SearchString, Position>>>;
/**

@@ -29,0 +33,0 @@ * @inheritdoc

@@ -45,2 +45,10 @@ "use strict";

*/
concat(...strings) {
const primitiveStrs = strings.map((el) => (this.isTypedClass(el) ? el.toPrimitive() : el));
const initialValue = prototypes_1.ArrayPrototype.join([this.string, ...primitiveStrs], '');
return new TypedString(initialValue);
}
/**
* @inheritdoc
*/
repeat(counter = 0) {

@@ -53,6 +61,5 @@ const initialValue = prototypes_1.StringPrototype.repeat(this.string, counter);

*/
concat(...strings) {
const primitiveStrs = strings.map((el) => (this.isTypedClass(el) ? el.toPrimitive() : el));
const initialValue = prototypes_1.ArrayPrototype.join([this.string, ...primitiveStrs], '');
return new TypedString(initialValue);
indexOf(searchString = '', position = 0) {
const initialValue = prototypes_1.StringPrototype.indexOf(this.string, searchString, position);
return new typed_number_class_1.TypedNumber(initialValue);
}

@@ -59,0 +66,0 @@ /**

@@ -5,2 +5,8 @@ import { ArrayType, StringType } from '../types';

/**
* Returns the position of the first occurrence of a substring.
* @param searchString The substring to search for in the string
* @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.
*/
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;
/**
* Returns a String value that is made from count copies appended together. If count is 0,

@@ -10,3 +16,3 @@ * the empty string is returned.

*/
repeat<Container extends string, Counter extends number>(container: Container, counter: Counter): StringType.Repeat<Container, Counter>;
repeat<Container_1 extends string, Counter extends number>(container: Container_1, counter: Counter): StringType.Repeat<Container_1, Counter>;
/**

@@ -17,3 +23,3 @@ * Returns true if the sequence of elements of searchString converted to a String is the

*/
startsWith<Container_1 extends string, SearchString extends string, Position extends number>(container: Container_1, searchString: SearchString, position?: Position | undefined): StringType.StartsWith<Container_1, SearchString, Position>;
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>;
/**

@@ -24,3 +30,3 @@ * Returns true if the sequence of elements of searchString converted to a String is the

*/
endsWith<Container_2 extends string, SearchString_1 extends string, EndPosition extends number>(container: Container_2, searchString: SearchString_1, endPosition?: EndPosition | undefined): StringType.EndsWith<Container_2, SearchString_1, EndPosition>;
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>;
/**

@@ -74,3 +80,3 @@ * Returns the substring at the specified location within a String object.

*/
includes<Container_3 extends string, SearchString_2 extends string, Position_1 extends number>(container: Container_3, searchString: SearchString_2, position?: Position_1 | undefined): StringType.Includes<Container_3, SearchString_2, Position_1>;
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>;
/**

@@ -98,3 +104,3 @@ * Removes the leading white space and line terminator characters from a string.

*/
concat<Container_4 extends string, Strings extends ReadonlyOrNot<string[]>>(container: Container_4, ...strings: Strings): ArrayType.Join<[Container_4, ...Strings], "">;
concat<Container_5 extends string, Strings extends ReadonlyOrNot<string[]>>(container: Container_5, ...strings: Strings): ArrayType.Join<[Container_5, ...Strings], "">;
/**

@@ -104,3 +110,3 @@ * Returns a new String consisting of the single UTF-16 code unit located at the specified index.

*/
at<Container_5 extends string, Index extends number>(container: Container_5, index: Index): StringType.At<Container_5, Index>;
at<Container_6 extends string, Index extends number>(container: Container_6, index: Index): StringType.At<Container_6, Index>;
/**

@@ -116,4 +122,4 @@ * type-safe split.

*/
split<Container_6 extends string, Splitter extends string = "", Limit extends number = 0>(container: Container_6, splitter: Splitter, limit?: Limit | undefined): import("../types").Conditional<Limit extends 0 ? true : false, Container_6 extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Container_6 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_6], ArrayType.Take<Container_6 extends "" ? [] : import("../types").Equal<Splitter, string> extends true ? string[] : Container_6 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_6], Limit, []>>;
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, []>>;
};
//# sourceMappingURL=string.prototype.d.ts.map

@@ -6,2 +6,10 @@ "use strict";

/**
* Returns the position of the first occurrence of a substring.
* @param searchString The substring to search for in the string
* @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.
*/
indexOf(container, searchString = '', position = 0) {
return container.indexOf(searchString, position);
},
/**
* Returns a String value that is made from count copies appended together. If count is 0,

@@ -8,0 +16,0 @@ * the empty string is returned.

import { Conditional } from './arithmetic.type';
import { ArrayType } from './array.type';
import { ArrayType, NTuple } from './array.type';
import { ErrorType } from './error.type';

@@ -73,4 +73,6 @@ import { NumberType } from './number.type';

export type ThrowLeft<T extends string, P extends number> = Reverse<ArrayType.Join<Split<Reverse<T>, '', NumberType.Sub<StringType.Length<T>, P>>, ''>>;
type _IndexOf<Container extends string, SearchString extends string, Stack extends string[] = []> = Container extends `${SearchString}${string}` ? ArrayType.Length<Stack> : Container extends `${infer FirstLetter}${infer Rest}` ? _IndexOf<Rest, SearchString, ArrayType.Push<Stack, FirstLetter>> : -1;
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 {};
}
//# sourceMappingURL=string.type.d.ts.map
{
"name": "@kakasoo/proto-typescript",
"version": "1.23.0",
"version": "1.24.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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc