@kakasoo/proto-typescript
Advanced tools
Comparing version 1.27.3 to 1.28.0
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>, "">; | ||
export declare namespace StringPrototype { | ||
function slice<Container extends string, Start extends number, End extends number>(container: Container, start?: Start, end?: End): StringType.Slice<Container, Start, End>; | ||
/** | ||
@@ -10,3 +10,3 @@ * Returns the position of the first occurrence of a substring. | ||
*/ | ||
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; | ||
function indexOf<Container extends string, SearchString extends string = '', Position extends number = 0>(container: Container, searchString?: SearchString, position?: Position): StringType.IndexOf<Container, SearchString, Position>; | ||
/** | ||
@@ -17,3 +17,3 @@ * Returns a String value that is made from count copies appended together. If count is 0, | ||
*/ | ||
repeat<Container_2 extends string, Counter extends number>(container: Container_2, counter: Counter): StringType.Repeat<Container_2, Counter>; | ||
function repeat<Container extends string, Counter extends number>(container: Container, counter: Counter): StringType.Repeat<Container, Counter>; | ||
/** | ||
@@ -24,3 +24,3 @@ * Returns true if the sequence of elements of searchString converted to a String is the | ||
*/ | ||
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>; | ||
function startsWith<Container extends string, SearchString extends string, Position extends number>(container: Container, searchString: SearchString, position?: Position): StringType.StartsWith<Container, SearchString, Position>; | ||
/** | ||
@@ -31,3 +31,3 @@ * Returns true if the sequence of elements of searchString converted to a String is the | ||
*/ | ||
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>; | ||
function endsWith<Container extends string, SearchString extends string, EndPosition extends number>(container: Container, searchString: SearchString, endPosition?: EndPosition): StringType.EndsWith<Container, SearchString, EndPosition>; | ||
/** | ||
@@ -39,11 +39,11 @@ * Returns the substring at the specified location within a String object. | ||
*/ | ||
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>, "">; | ||
function substring<Conatiner extends string, Start extends number, End extends number | never = never>(container: Conatiner, start: Start, end?: End): StringType.Substring<Conatiner, Start, End>; | ||
/** | ||
* Converts all the alphabetic characters in a string to lowercase. | ||
*/ | ||
toLowerCase<Conatiner_1 extends string>(container: Conatiner_1): Lowercase<Conatiner_1>; | ||
function toLowerCase<Conatiner extends string>(container: Conatiner): Lowercase<Conatiner>; | ||
/** | ||
* Converts all the alphabetic characters in a string to uppercase. | ||
*/ | ||
toUpperCase<Conatiner_2 extends string>(container: Conatiner_2): Uppercase<Conatiner_2>; | ||
function toUpperCase<Conatiner extends string>(container: Conatiner): Uppercase<Conatiner>; | ||
/** | ||
@@ -60,3 +60,3 @@ * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length. | ||
*/ | ||
padStart<Conatiner_3 extends string, TargetLength extends number, PadString extends string>(container: Conatiner_3, targetLength: TargetLength, padString: PadString): StringType.PadStart<Conatiner_3, TargetLength, PadString>; | ||
function padStart<Conatiner extends string, TargetLength extends number, PadString extends string>(container: Conatiner, targetLength: TargetLength, padString: PadString): StringType.PadStart<Conatiner, TargetLength, PadString>; | ||
/** | ||
@@ -73,3 +73,3 @@ * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length. | ||
*/ | ||
padEnd<Conatiner_4 extends string, TargetLength_1 extends number, PadString_1 extends string>(container: Conatiner_4, targetLength: TargetLength_1, padString: PadString_1): StringType.PadEnd<Conatiner_4, TargetLength_1, PadString_1>; | ||
function padEnd<Conatiner extends string, TargetLength extends number, PadString extends string>(container: Conatiner, targetLength: TargetLength, padString: PadString): StringType.PadEnd<Conatiner, TargetLength, PadString>; | ||
/** | ||
@@ -84,3 +84,3 @@ * Returns true if searchString appears as a substring of the result of converting this | ||
*/ | ||
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>; | ||
function includes<Container extends string, SearchString extends string, Position extends number>(container: Container, searchString: SearchString, position?: Position): StringType.Includes<Container, SearchString, Position>; | ||
/** | ||
@@ -91,3 +91,3 @@ * Removes the leading white space and line terminator characters from a string. | ||
*/ | ||
trimStart<Conatiner_5 extends string>(container: Conatiner_5): StringType.TrimStart<Conatiner_5>; | ||
function trimStart<Conatiner extends string>(container: Conatiner): StringType.TrimStart<Conatiner>; | ||
/** | ||
@@ -98,3 +98,3 @@ * Removes the trailing white space and line terminator characters from a string. | ||
*/ | ||
trimEnd<Conatiner_6 extends string>(container: Conatiner_6): StringType.TrimEnd<Conatiner_6>; | ||
function trimEnd<Conatiner extends string>(container: Conatiner): StringType.TrimEnd<Conatiner>; | ||
/** | ||
@@ -105,3 +105,3 @@ * Removes the leading and trailing white space and line terminator characters from a string. | ||
*/ | ||
trim<Conatiner_7 extends string>(container: Conatiner_7): StringType.TrimEnd<StringType.TrimStart<Conatiner_7>>; | ||
function trim<Conatiner extends string>(container: Conatiner): StringType.Trim<Conatiner>; | ||
/** | ||
@@ -111,3 +111,3 @@ * Returns a string that contains the concatenation of two or more strings. | ||
*/ | ||
concat<Container_6 extends string, Strings extends ReadonlyOrNot<string[]>>(container: Container_6, ...strings: Strings): ArrayType.Join<[Container_6, ...Strings], "">; | ||
function concat<Container extends string, Strings extends ReadonlyOrNot<string[]>>(container: Container, ...strings: Strings): ArrayType.Join<[Container, ...Strings], ''>; | ||
/** | ||
@@ -117,3 +117,3 @@ * Returns a new String consisting of the single UTF-16 code unit located at the specified index. | ||
*/ | ||
at<Container_7 extends string, Index extends number>(container: Container_7, index: Index): StringType.At<Container_7, Index>; | ||
function at<Container extends string, Index extends number>(container: Container, index: Index): StringType.At<Container, Index>; | ||
/** | ||
@@ -129,4 +129,4 @@ * type-safe split. | ||
*/ | ||
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, []>>; | ||
}; | ||
function split<Container extends string, Splitter extends string = '', Limit extends number = 0>(container: Container, splitter: Splitter, limit?: Limit): StringType.Split<Container, Splitter, Limit>; | ||
} | ||
//# sourceMappingURL=string.prototype.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.StringPrototype = void 0; | ||
exports.StringPrototype = { | ||
slice(container, start, end) { | ||
var StringPrototype; | ||
(function (StringPrototype) { | ||
function slice(container, start, end) { | ||
return container.slice(start, end); | ||
}, | ||
} | ||
StringPrototype.slice = slice; | ||
/** | ||
@@ -13,5 +15,6 @@ * Returns the position of the first occurrence of a substring. | ||
*/ | ||
indexOf(container, searchString = '', position = 0) { | ||
function indexOf(container, searchString = '', position = 0) { | ||
return container.indexOf(searchString, position); | ||
}, | ||
} | ||
StringPrototype.indexOf = indexOf; | ||
/** | ||
@@ -22,5 +25,6 @@ * Returns a String value that is made from count copies appended together. If count is 0, | ||
*/ | ||
repeat(container, counter) { | ||
function repeat(container, counter) { | ||
return container.repeat(counter); | ||
}, | ||
} | ||
StringPrototype.repeat = repeat; | ||
/** | ||
@@ -31,5 +35,6 @@ * Returns true if the sequence of elements of searchString converted to a String is the | ||
*/ | ||
startsWith(container, searchString, position) { | ||
function startsWith(container, searchString, position) { | ||
return container.startsWith(searchString, position); | ||
}, | ||
} | ||
StringPrototype.startsWith = startsWith; | ||
/** | ||
@@ -40,5 +45,6 @@ * Returns true if the sequence of elements of searchString converted to a String is the | ||
*/ | ||
endsWith(container, searchString, endPosition) { | ||
function endsWith(container, searchString, endPosition) { | ||
return container.endsWith(searchString, endPosition); | ||
}, | ||
} | ||
StringPrototype.endsWith = endsWith; | ||
/** | ||
@@ -50,17 +56,20 @@ * Returns the substring at the specified location within a String object. | ||
*/ | ||
substring(container, start, end) { | ||
function substring(container, start, end) { | ||
return container.substring(start, end); | ||
}, | ||
} | ||
StringPrototype.substring = substring; | ||
/** | ||
* Converts all the alphabetic characters in a string to lowercase. | ||
*/ | ||
toLowerCase(container) { | ||
function toLowerCase(container) { | ||
return container.toLowerCase(); | ||
}, | ||
} | ||
StringPrototype.toLowerCase = toLowerCase; | ||
/** | ||
* Converts all the alphabetic characters in a string to uppercase. | ||
*/ | ||
toUpperCase(container) { | ||
function toUpperCase(container) { | ||
return container.toUpperCase(); | ||
}, | ||
} | ||
StringPrototype.toUpperCase = toUpperCase; | ||
/** | ||
@@ -77,5 +86,6 @@ * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length. | ||
*/ | ||
padStart(container, targetLength, padString) { | ||
function padStart(container, targetLength, padString) { | ||
return container.padStart(targetLength, padString ?? ' '); | ||
}, | ||
} | ||
StringPrototype.padStart = padStart; | ||
/** | ||
@@ -92,5 +102,6 @@ * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length. | ||
*/ | ||
padEnd(container, targetLength, padString) { | ||
function padEnd(container, targetLength, padString) { | ||
return container.padEnd(targetLength, padString ?? ' '); | ||
}, | ||
} | ||
StringPrototype.padEnd = padEnd; | ||
/** | ||
@@ -105,5 +116,6 @@ * Returns true if searchString appears as a substring of the result of converting this | ||
*/ | ||
includes(container, searchString, position) { | ||
function includes(container, searchString, position) { | ||
return container.includes(searchString, position); | ||
}, | ||
} | ||
StringPrototype.includes = includes; | ||
/** | ||
@@ -114,5 +126,6 @@ * Removes the leading white space and line terminator characters from a string. | ||
*/ | ||
trimStart(container) { | ||
function trimStart(container) { | ||
return container.trimStart(); | ||
}, | ||
} | ||
StringPrototype.trimStart = trimStart; | ||
/** | ||
@@ -123,5 +136,6 @@ * Removes the trailing white space and line terminator characters from a string. | ||
*/ | ||
trimEnd(container) { | ||
function trimEnd(container) { | ||
return container.trimEnd(); | ||
}, | ||
} | ||
StringPrototype.trimEnd = trimEnd; | ||
/** | ||
@@ -132,5 +146,6 @@ * Removes the leading and trailing white space and line terminator characters from a string. | ||
*/ | ||
trim(container) { | ||
function trim(container) { | ||
return container.trim(); | ||
}, | ||
} | ||
StringPrototype.trim = trim; | ||
/** | ||
@@ -140,5 +155,6 @@ * Returns a string that contains the concatenation of two or more strings. | ||
*/ | ||
concat(container, ...strings) { | ||
function concat(container, ...strings) { | ||
return [container, ...strings].join(''); | ||
}, | ||
} | ||
StringPrototype.concat = concat; | ||
/** | ||
@@ -148,5 +164,6 @@ * Returns a new String consisting of the single UTF-16 code unit located at the specified index. | ||
*/ | ||
at(container, index) { | ||
function at(container, index) { | ||
return container.at(index); | ||
}, | ||
} | ||
StringPrototype.at = at; | ||
/** | ||
@@ -162,6 +179,7 @@ * type-safe split. | ||
*/ | ||
split(container, splitter, limit) { | ||
function split(container, splitter, limit) { | ||
return container.split(splitter, limit); | ||
}, | ||
}; | ||
} | ||
StringPrototype.split = split; | ||
})(StringPrototype || (exports.StringPrototype = StringPrototype = {})); | ||
//# sourceMappingURL=string.prototype.js.map |
@@ -52,3 +52,4 @@ import { Conditional } from './arithmetic.type'; | ||
*/ | ||
export type Split<Conatiner extends string, Splitter extends string = '', Limit extends number = 0> = Conditional<Limit extends 0 ? true : false, _Split<Conatiner, Splitter>, ArrayType.Take<_Split<Conatiner, Splitter>, Limit>>; | ||
export type Split<Conatiner extends string, Splitter extends string = '', Limit extends number = ArrayType.Length<_Split<Conatiner, Splitter>>> = Conditional<Limit extends 0 ? true : false, [], ArrayType.Take<_Split<Conatiner, Splitter>, Limit>>; | ||
export type SplitIfIncludes<Container extends string, Splitter extends readonly string[] = []> = Container extends '' ? [] : Container extends `${infer FirstWord}${infer SecondWord extends ArrayType.Values<Splitter>}${infer Rest}` ? [FirstWord, ...SplitIfIncludes<Rest, Splitter>] : [Container]; | ||
/** | ||
@@ -55,0 +56,0 @@ * Type of getting one character from that location with index as the key value in the string |
{ | ||
"name": "@kakasoo/proto-typescript", | ||
"version": "1.27.3", | ||
"version": "1.28.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
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
162086
1829