inferred-types 0.55.19 → 0.55.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/modules/constants/dist/index.cjs +22 -22
- package/modules/constants/dist/index.cjs.map +1 -1
- package/modules/constants/dist/index.d.ts +22 -22
- package/modules/constants/dist/index.js +22 -22
- package/modules/constants/dist/index.js.map +1 -1
- package/modules/inferred-types/dist/index.cjs +44 -44
- package/modules/inferred-types/dist/index.cjs.map +1 -1
- package/modules/inferred-types/dist/index.d.ts +439 -424
- package/modules/inferred-types/dist/index.js +44 -44
- package/modules/inferred-types/dist/index.js.map +1 -1
- package/modules/runtime/dist/index.cjs +22 -22
- package/modules/runtime/dist/index.cjs.map +1 -1
- package/modules/runtime/dist/index.d.ts +166 -162
- package/modules/runtime/dist/index.js +22 -22
- package/modules/runtime/dist/index.js.map +1 -1
- package/modules/types/dist/index.cjs.map +1 -1
- package/modules/types/dist/index.d.ts +251 -240
- package/package.json +1 -1
|
@@ -3288,17 +3288,17 @@ declare const TW_HUE: {
|
|
|
3288
3288
|
readonly stone: 273;
|
|
3289
3289
|
};
|
|
3290
3290
|
declare const TW_LUMINOSITY: {
|
|
3291
|
-
readonly 50: 97.78;
|
|
3292
|
-
readonly 100: 93.56;
|
|
3293
|
-
readonly 200: 88.11;
|
|
3294
|
-
readonly 300: 82.67;
|
|
3295
|
-
readonly 400: 74.22;
|
|
3296
|
-
readonly 500: 64.78;
|
|
3297
|
-
readonly 600: 57.33;
|
|
3298
|
-
readonly 700: 46.89;
|
|
3299
|
-
readonly 800: 39.44;
|
|
3300
|
-
readonly 900: 32;
|
|
3301
|
-
readonly 950: 23.78;
|
|
3291
|
+
readonly "50": 97.78;
|
|
3292
|
+
readonly "100": 93.56;
|
|
3293
|
+
readonly "200": 88.11;
|
|
3294
|
+
readonly "300": 82.67;
|
|
3295
|
+
readonly "400": 74.22;
|
|
3296
|
+
readonly "500": 64.78;
|
|
3297
|
+
readonly "600": 57.33;
|
|
3298
|
+
readonly "700": 46.89;
|
|
3299
|
+
readonly "800": 39.44;
|
|
3300
|
+
readonly "900": 32;
|
|
3301
|
+
readonly "950": 23.78;
|
|
3302
3302
|
};
|
|
3303
3303
|
/**
|
|
3304
3304
|
* **TW_CHROMA**
|
|
@@ -3309,17 +3309,17 @@ declare const TW_LUMINOSITY: {
|
|
|
3309
3309
|
* **Related:** `TW_CHROMA_50`, `TW_CHROMA_100`, ...
|
|
3310
3310
|
*/
|
|
3311
3311
|
declare const TW_CHROMA: {
|
|
3312
|
-
readonly 50: 0.0108;
|
|
3313
|
-
readonly 100: 0.0321;
|
|
3314
|
-
readonly 200: 0.0609;
|
|
3315
|
-
readonly 300: 0.0908;
|
|
3316
|
-
readonly 400: 0.1398;
|
|
3317
|
-
readonly 500: 0.1472;
|
|
3318
|
-
readonly 600: 0.1299;
|
|
3319
|
-
readonly 700: 0.1067;
|
|
3320
|
-
readonly 800: 0.0898;
|
|
3321
|
-
readonly 900: 0.0726;
|
|
3322
|
-
readonly 950: 0.054;
|
|
3312
|
+
readonly "50": 0.0108;
|
|
3313
|
+
readonly "100": 0.0321;
|
|
3314
|
+
readonly "200": 0.0609;
|
|
3315
|
+
readonly "300": 0.0908;
|
|
3316
|
+
readonly "400": 0.1398;
|
|
3317
|
+
readonly "500": 0.1472;
|
|
3318
|
+
readonly "600": 0.1299;
|
|
3319
|
+
readonly "700": 0.1067;
|
|
3320
|
+
readonly "800": 0.0898;
|
|
3321
|
+
readonly "900": 0.0726;
|
|
3322
|
+
readonly "950": 0.054;
|
|
3323
3323
|
};
|
|
3324
3324
|
/**
|
|
3325
3325
|
* The list of "targets" where Tailwind color string references
|
|
@@ -4445,23 +4445,23 @@ type ValidChars<T extends readonly string[]> = [] extends T ? true : First<T> ex
|
|
|
4445
4445
|
*/
|
|
4446
4446
|
type IsVariable<T extends string> = T extends Variable ? ValidChars<Chars<T>> extends true ? true : false : false;
|
|
4447
4447
|
|
|
4448
|
-
type Process$
|
|
4448
|
+
type Process$1A<TVal, TDefault> = TVal extends Something ? TVal : TDefault;
|
|
4449
4449
|
/**
|
|
4450
4450
|
* **Default**`<TVal,TDefault,[TProtect]>`
|
|
4451
4451
|
*
|
|
4452
4452
|
* Branching operator which allows giving a value `TVal` a _default value_ when
|
|
4453
4453
|
* it's value is either `null` or `undefined`.
|
|
4454
4454
|
*/
|
|
4455
|
-
type Default<TVal, TDefault> = Process$
|
|
4455
|
+
type Default<TVal, TDefault> = Process$1A<TVal, TDefault>;
|
|
4456
4456
|
|
|
4457
|
-
type Process$
|
|
4457
|
+
type Process$1z<TConditions extends readonly boolean[], TBooleanSeen extends boolean> = [] extends TConditions ? IfEqual<TBooleanSeen, true, boolean, true> : [First<TConditions>] extends [false] ? false : Process$1z<AfterFirst<TConditions>, TBooleanSeen>;
|
|
4458
4458
|
/**
|
|
4459
4459
|
* **And**`<TConditions, [TEmpty]>`
|
|
4460
4460
|
*
|
|
4461
4461
|
* Allows an array of conditions which are either ARE a boolean value or a
|
|
4462
4462
|
* function which evaluates to a boolean value to be logically AND'd together.
|
|
4463
4463
|
*/
|
|
4464
|
-
type And<TConditions, TEmpty extends boolean = false> = TConditions extends readonly (boolean | LogicFunction)[] ? IsEqual<TConditions, []> extends true ? TEmpty : LogicalReturns<TConditions> extends readonly boolean[] ? Process$
|
|
4464
|
+
type And<TConditions, TEmpty extends boolean = false> = TConditions extends readonly (boolean | LogicFunction)[] ? IsEqual<TConditions, []> extends true ? TEmpty : LogicalReturns<TConditions> extends readonly boolean[] ? Process$1z<LogicalReturns<TConditions>, NarrowlyContains<LogicalReturns<TConditions>, boolean>> : never : never;
|
|
4465
4465
|
|
|
4466
4466
|
/**
|
|
4467
4467
|
* comparison operators which require the base type to be a string
|
|
@@ -4506,14 +4506,14 @@ type Comparison<TOp extends ComparatorOperation = ComparatorOperation, TArgs ext
|
|
|
4506
4506
|
fn: TFn;
|
|
4507
4507
|
} : ErrorCondition<"invalid-comparison">;
|
|
4508
4508
|
type Unionize<T> = T extends readonly unknown[] ? TupleToUnion<T> : T;
|
|
4509
|
-
type Process$
|
|
4509
|
+
type Process$1y<TVal, TOp extends ComparatorOperation, TComparator> = TOp extends "extends" ? DoesExtend<TVal, Unionize<TComparator>> : TOp extends "equals" ? IsEqual<TVal, Unionize<TComparator>> : TOp extends "contains" ? [TVal] extends [string | number | Tuple] ? Contains<TVal, TComparator> : never : TOp extends "containsAll" ? [TVal] extends [Tuple] ? [TComparator] extends [string | number | readonly string[]] ? Contains<TVal, TComparator> : never : never : TOp extends "startsWith" ? [TVal] extends [string | number] ? [TComparator] extends [string | number | readonly string[]] ? StartsWith<TVal, TComparator> : never : never : TOp extends "greaterThan" ? And<[Extends<TComparator, NumberLike>, Extends<TVal, NumberLike>]> extends true ? IsGreaterThan<As<TVal, NumberLike>, As<TComparator, NumberLike>> : never : TOp extends "greaterThanOrEqual" ? And<[Extends<TComparator, NumberLike>, Extends<TVal, NumberLike>]> extends true ? IsGreaterThanOrEqual<As<TVal, NumberLike>, As<TComparator, NumberLike>> : never : TOp extends "lessThan" ? And<[Extends<TComparator, NumberLike>, Extends<TVal, NumberLike>]> extends true ? IsLessThan<As<TVal, NumberLike>, As<TComparator, NumberLike>> : never : TOp extends "lessThanOrEqual" ? And<[Extends<TComparator, NumberLike>, Extends<TVal, NumberLike>]> extends true ? IsLessThanOrEqual<As<TVal, NumberLike>, As<TComparator, NumberLike>> : never : TOp extends "endsWith" ? [TVal] extends [string | number] ? [TComparator] extends [string | number | readonly string[]] ? EndsWith<TVal, TComparator> : never : never : TOp extends "returnEquals" ? TVal extends ((...args: any[]) => any) ? IsEqual<ReturnType<TVal>, TComparator> : false : TOp extends "returnExtends" ? TVal extends ((...args: any[]) => any) ? IsEqual<ReturnType<TVal>, TComparator> : false : never;
|
|
4510
4510
|
/**
|
|
4511
4511
|
* **Compare**`<TVal,TOp,TComparator>`
|
|
4512
4512
|
*
|
|
4513
4513
|
* Compares the value `TVal` with `TComparator` using
|
|
4514
4514
|
* the `TOp` _operator_.
|
|
4515
4515
|
*/
|
|
4516
|
-
type Compare$1<TVal, TOp extends ComparatorOperation, TComparator> = WhenNever<Process$
|
|
4516
|
+
type Compare$1<TVal, TOp extends ComparatorOperation, TComparator> = WhenNever<Process$1y<TVal, TOp, TComparator>>;
|
|
4517
4517
|
|
|
4518
4518
|
type Negate<TVal> = IsNever<TVal> extends true ? never : [TVal] extends [boolean] ? IsTrue<TVal> extends true ? false : IsFalse<TVal> extends true ? true : boolean : [TVal] extends [LogicFunction] ? Negate<ReturnType<LogicFunction>> : never;
|
|
4519
4519
|
type NegateTuple<TTuple extends readonly (boolean | LogicFunction)[], TResults extends readonly (boolean | LogicFunction)[] = []> = [] extends TTuple ? IsEqual<TResults, [], false, TResults> : NegateTuple<AfterFirst<TTuple>, [
|
|
@@ -4535,7 +4535,7 @@ type NegateTuple<TTuple extends readonly (boolean | LogicFunction)[], TResults e
|
|
|
4535
4535
|
*/
|
|
4536
4536
|
type Not<TVal, TNotBoolean extends boolean = false> = [TVal] extends [boolean] ? Exclude<As<Negate<TVal>, boolean>, any[]> : [TVal] extends [LogicFunction] ? As<Negate<ReturnType<TVal>>, boolean> : [TVal] extends [readonly (LogicFunction | boolean)[]] ? As<NegateTuple<TVal>, readonly boolean[]> : TNotBoolean;
|
|
4537
4537
|
|
|
4538
|
-
type Process$
|
|
4538
|
+
type Process$1x<TConditions extends readonly boolean[], TBooleanSean extends boolean> = NarrowlyContains<TConditions, true> extends true ? true : [IsEqual<TBooleanSean, true>] extends [true] ? boolean : false;
|
|
4539
4539
|
type ConditionError<TErr> = TErr extends ErrorCondition ? ProxyError<TErr, "Or", "TConditions"> : never;
|
|
4540
4540
|
/**
|
|
4541
4541
|
* **Or**`<TConditions, [TEmpty]>`
|
|
@@ -4548,16 +4548,16 @@ type ConditionError<TErr> = TErr extends ErrorCondition ? ProxyError<TErr, "Or",
|
|
|
4548
4548
|
*
|
|
4549
4549
|
* **Related:** `And`
|
|
4550
4550
|
*/
|
|
4551
|
-
type Or<TConditions, TEmpty extends boolean = false> = IsNever<TConditions> extends true ? Throw<"invalid-never", `Or<TConditions> received "never" for it's conditions!`, "Or"> : IsEqual<TConditions, []> extends true ? TEmpty : TConditions extends readonly (boolean | LogicFunction)[] ? LogicalReturns<TConditions> extends readonly boolean[] ? Process$
|
|
4551
|
+
type Or<TConditions, TEmpty extends boolean = false> = IsNever<TConditions> extends true ? Throw<"invalid-never", `Or<TConditions> received "never" for it's conditions!`, "Or"> : IsEqual<TConditions, []> extends true ? TEmpty : TConditions extends readonly (boolean | LogicFunction)[] ? LogicalReturns<TConditions> extends readonly boolean[] ? Process$1x<LogicalReturns<TConditions>, NarrowlyContains<LogicalReturns<TConditions>, boolean>> : never : IsErrorCondition<TConditions> extends true ? ConditionError<TConditions> : Throw<"invalid-conditions", `The conditions passed to Or<TConditions> were invalid!`, "Or", {
|
|
4552
4552
|
library: "inferred-types/constants";
|
|
4553
4553
|
value: TConditions;
|
|
4554
4554
|
}>;
|
|
4555
4555
|
|
|
4556
|
-
type Process$
|
|
4556
|
+
type Process$1w<TElements extends readonly unknown[], TOp extends ComparatorOperation, TComparator> = [] extends TElements ? false : [WhenNever<Compare$1<First<TElements>, TOp, TComparator>>] extends [true] ? true : Process$1w<AfterFirst<TElements>, TOp, TComparator>;
|
|
4557
4557
|
type Some<TContainer extends Container, TOp extends "extends" | "equals" | "startsWith" | "endsWith" | "lessThan" | "greaterThan", TComparator extends Or<[
|
|
4558
4558
|
IsEqual<TOp, "startsWith">,
|
|
4559
4559
|
IsEqual<TOp, "endsWith">
|
|
4560
|
-
]> extends true ? string : Or<[IsEqual<TOp, "lessThan">, IsEqual<TOp, "greaterThan">]> extends true ? NumberLike : unknown> = TContainer extends readonly unknown[] ? Process$
|
|
4560
|
+
]> extends true ? string : Or<[IsEqual<TOp, "lessThan">, IsEqual<TOp, "greaterThan">]> extends true ? NumberLike : unknown> = TContainer extends readonly unknown[] ? Process$1w<TContainer, TOp, TComparator> : TContainer extends Dictionary ? Process$1w<Values<TContainer>, TOp, TComparator> : never;
|
|
4561
4561
|
|
|
4562
4562
|
type AllAcc<TList extends readonly unknown[], TExtend> = [] extends TList ? true : If<Extends<First<TList>, TExtend>, AllAcc<AfterFirst<TList>, TExtend>, false>;
|
|
4563
4563
|
/**
|
|
@@ -4782,11 +4782,11 @@ type DoesExtend<TValue, TExtends> = IsNever<TValue> extends true ? false : [TVal
|
|
|
4782
4782
|
type DoesNotExtend<TValue, TNotExtends> = TValue extends TNotExtends ? false : true;
|
|
4783
4783
|
|
|
4784
4784
|
type Test$1<TValue extends string, TComparator extends string> = TValue extends `${string}${TComparator}` ? true : false;
|
|
4785
|
-
type Process$
|
|
4785
|
+
type Process$1v<TValue extends string, TComparator extends string> = IsStringLiteral<TComparator> extends true ? IsStringLiteral<TValue> extends true ? Test$1<TValue, TComparator> : boolean : boolean;
|
|
4786
4786
|
type ProcessEach$1<TValue extends string, TComparator extends readonly string[]> = Or<{
|
|
4787
|
-
[K in keyof TComparator]: Process$
|
|
4787
|
+
[K in keyof TComparator]: Process$1v<TValue, TComparator[K]>;
|
|
4788
4788
|
}>;
|
|
4789
|
-
type PreProcess$4<TValue extends string, TComparator extends string | readonly string[]> = TComparator extends readonly string[] ? ProcessEach$1<TValue, TComparator> : TComparator extends string ? Process$
|
|
4789
|
+
type PreProcess$4<TValue extends string, TComparator extends string | readonly string[]> = TComparator extends readonly string[] ? ProcessEach$1<TValue, TComparator> : TComparator extends string ? Process$1v<TValue, TComparator> : never;
|
|
4790
4790
|
/**
|
|
4791
4791
|
* **EndsWith**<TValue, TComparator>
|
|
4792
4792
|
*
|
|
@@ -4861,13 +4861,13 @@ type _HasArray<TList extends readonly unknown[]> = [] extends TList ? false : Is
|
|
|
4861
4861
|
*/
|
|
4862
4862
|
type HasArray<TList extends readonly unknown[]> = _HasArray<TList>;
|
|
4863
4863
|
|
|
4864
|
-
type Process$
|
|
4864
|
+
type Process$1u<TStr extends string, TChars extends string, _TOp extends "any" | "all"> = TStr extends `${string}${TChars}${string}` ? true : false;
|
|
4865
4865
|
type ProcessTuple$4<TStr extends string, TChars extends readonly string[], TOp extends "any" | "all"> = TOp extends "any" ? Or<{
|
|
4866
4866
|
[K in keyof TChars]: TStr extends `${string}${TChars[K]}${string}` ? true : false;
|
|
4867
4867
|
}> : And<{
|
|
4868
4868
|
[K in keyof TChars]: TStr extends `${string}${TChars[K]}${string}` ? true : false;
|
|
4869
4869
|
}>;
|
|
4870
|
-
type PreProcess$3<TStr extends string, TChars extends string, TOp extends "any" | "all"> = IsUnion<TChars> extends true ? UnionToTuple$1<TChars> extends readonly string[] ? ProcessTuple$4<TStr, UnionToTuple$1<TChars>, TOp> : never : Process$
|
|
4870
|
+
type PreProcess$3<TStr extends string, TChars extends string, TOp extends "any" | "all"> = IsUnion<TChars> extends true ? UnionToTuple$1<TChars> extends readonly string[] ? ProcessTuple$4<TStr, UnionToTuple$1<TChars>, TOp> : never : Process$1u<TStr, TChars, TOp>;
|
|
4871
4871
|
/**
|
|
4872
4872
|
* **HasCharacters**`<TStr,TChars>`
|
|
4873
4873
|
*
|
|
@@ -4889,7 +4889,7 @@ type HasCharacters<TStr extends string, TChars extends string | readonly string[
|
|
|
4889
4889
|
*/
|
|
4890
4890
|
type HasIndex<TContainer, TIdx extends PropertyKey> = TContainer extends Container ? TIdx extends keyof TContainer ? true : false : false;
|
|
4891
4891
|
|
|
4892
|
-
type Process$
|
|
4892
|
+
type Process$1t<TStr extends string, TChars extends string> = ReplaceAll<TStr, TChars, ""> extends "" ? false : true;
|
|
4893
4893
|
/**
|
|
4894
4894
|
* **HasOtherCharacters**`<TStr,TChars>`
|
|
4895
4895
|
*
|
|
@@ -4901,7 +4901,7 @@ type Process$1s<TStr extends string, TChars extends string> = ReplaceAll<TStr, T
|
|
|
4901
4901
|
*
|
|
4902
4902
|
* **Related:** `HasCharacters`
|
|
4903
4903
|
*/
|
|
4904
|
-
type HasOtherCharacters<TStr extends string, TChars extends string | readonly string[]> = [IsWideType<TStr>] extends [true] ? boolean : [TChars] extends [string] ? IsWideType<TChars> extends true ? boolean : Process$
|
|
4904
|
+
type HasOtherCharacters<TStr extends string, TChars extends string | readonly string[]> = [IsWideType<TStr>] extends [true] ? boolean : [TChars] extends [string] ? IsWideType<TChars> extends true ? boolean : Process$1t<TStr, TChars> : TChars extends readonly string[] ? Process$1t<TStr, TupleToUnion<TChars>> : never;
|
|
4905
4905
|
|
|
4906
4906
|
/**
|
|
4907
4907
|
* **HasParameters**`<T>`
|
|
@@ -4935,7 +4935,7 @@ type HasProp<TTest, TProp extends string, TIf = true, TElse = false> = TTest ext
|
|
|
4935
4935
|
*/
|
|
4936
4936
|
type HasRequiredProps<T extends AnyObject> = IsWideContainer<T> extends true ? IsEqual<T, EmptyObject> extends true ? false : boolean : RequiredKeysTuple<T> extends readonly ObjectKey[] ? RequiredKeysTuple<T>["length"] extends 0 ? false : true : false;
|
|
4937
4937
|
|
|
4938
|
-
type Process$
|
|
4938
|
+
type Process$1s<A extends readonly unknown[], B extends readonly unknown[]> = And<{
|
|
4939
4939
|
[K in keyof A]: K extends keyof B ? true : false;
|
|
4940
4940
|
}>;
|
|
4941
4941
|
type _Keys$8<T extends object> = UnionToTuple$1<keyof RemoveIndexKeys<T>> extends readonly ObjectKey[] ? UnionToTuple$1<keyof RemoveIndexKeys<T>> : never;
|
|
@@ -4944,7 +4944,7 @@ type _Keys$8<T extends object> = UnionToTuple$1<keyof RemoveIndexKeys<T>> extend
|
|
|
4944
4944
|
*
|
|
4945
4945
|
* Boolean operator which compares two lists to see if they have the same keys.
|
|
4946
4946
|
*/
|
|
4947
|
-
type HasSameKeys<A extends Container, B extends Container> = IsTuple<A> extends true ? IsTuple<B> extends true ? AsTuple<A>["length"] extends AsTuple<B>["length"] ? Process$
|
|
4947
|
+
type HasSameKeys<A extends Container, B extends Container> = IsTuple<A> extends true ? IsTuple<B> extends true ? AsTuple<A>["length"] extends AsTuple<B>["length"] ? Process$1s<AsTuple<A>, AsTuple<B>> : false : false : DoesExtend<A, object> extends true ? DoesExtend<B, object> extends true ? _Keys$8<A>["length"] extends _Keys$8<B>["length"] ? HasSameValues<_Keys$8<A>, _Keys$8<B>> : false : false : false;
|
|
4948
4948
|
|
|
4949
4949
|
type Find$1<TList extends readonly unknown[], TComparator> = Or<{
|
|
4950
4950
|
[K in keyof TList]: [TList[K]] extends [TComparator] ? true : false;
|
|
@@ -4952,8 +4952,8 @@ type Find$1<TList extends readonly unknown[], TComparator> = Or<{
|
|
|
4952
4952
|
type Compare<TList extends readonly unknown[], TComparator extends readonly unknown[]> = And<{
|
|
4953
4953
|
[K in keyof TList]: Find$1<TComparator, TList[K]> extends boolean ? Find$1<TComparator, TList[K]> : never;
|
|
4954
4954
|
}, true>;
|
|
4955
|
-
type Process$
|
|
4956
|
-
type _HasSameValues<TContainer extends readonly unknown[], TComparator extends readonly unknown[]> = TContainer extends readonly unknown[] ? Process$
|
|
4955
|
+
type Process$1r<TList extends readonly unknown[], TComparator extends readonly unknown[]> = TList["length"] extends TComparator["length"] ? Compare<TList, TComparator> : false;
|
|
4956
|
+
type _HasSameValues<TContainer extends readonly unknown[], TComparator extends readonly unknown[]> = TContainer extends readonly unknown[] ? Process$1r<TContainer, TComparator> : TContainer extends Dictionary ? Process$1r<Values<TContainer>, TComparator> : never;
|
|
4957
4957
|
/**
|
|
4958
4958
|
* **HasSameValues**`<TContainer,TComparator>`
|
|
4959
4959
|
*
|
|
@@ -5314,7 +5314,7 @@ type RegularFn<Fn> = Fn extends ((...args: any[]) => any) ? (...args: Parameters
|
|
|
5314
5314
|
*/
|
|
5315
5315
|
type IsLiteralFn<TFn> = TFn extends AnyFunction ? IsEqual<RegularFn<TFn>, TFn> : false;
|
|
5316
5316
|
|
|
5317
|
-
type Process$
|
|
5317
|
+
type Process$1q<T> = UnionToTuple$1<T> extends readonly unknown[] ? RetainLiterals<UnionToTuple$1<T>>["length"] extends UnionToTuple$1<T>["length"] ? true : false : never;
|
|
5318
5318
|
/**
|
|
5319
5319
|
* **IsLiteralUnion**`<T>`
|
|
5320
5320
|
*
|
|
@@ -5323,7 +5323,7 @@ type Process$1p<T> = UnionToTuple$1<T> extends readonly unknown[] ? RetainLitera
|
|
|
5323
5323
|
*
|
|
5324
5324
|
* **Related:** `IsLiteralUnion`, `IsWideUnion`
|
|
5325
5325
|
*/
|
|
5326
|
-
type IsLiteralUnion<T> = [IsUnion<T>] extends [true] ? Process$
|
|
5326
|
+
type IsLiteralUnion<T> = [IsUnion<T>] extends [true] ? Process$1q<T> : false;
|
|
5327
5327
|
|
|
5328
5328
|
/**
|
|
5329
5329
|
* **IsNarrowingFn**`<TFn>`
|
|
@@ -5345,7 +5345,7 @@ type IsNarrowingFn<TFn> = TFn extends AnyFunction ? Not<IsEqual<LiteralFn<TFn>,
|
|
|
5345
5345
|
*/
|
|
5346
5346
|
type IsNegativeNumber<T extends NumberLike> = IsWideType<T> extends true ? boolean : IsEqual<T, NumberLike> extends true ? boolean : AsString<T> extends `-${number}` ? true : false;
|
|
5347
5347
|
|
|
5348
|
-
type Process$
|
|
5348
|
+
type Process$1p<T> = UnionToTuple$1<T> extends readonly unknown[] ? RetainLiterals<UnionToTuple$1<T>>["length"] extends UnionToTuple$1<T>["length"] ? false : true : never;
|
|
5349
5349
|
/**
|
|
5350
5350
|
* **IsNonLiteralUnion**`<T>`
|
|
5351
5351
|
*
|
|
@@ -5354,7 +5354,7 @@ type Process$1o<T> = UnionToTuple$1<T> extends readonly unknown[] ? RetainLitera
|
|
|
5354
5354
|
*
|
|
5355
5355
|
* **Related:** `IsLiteralUnion`, `IsWideUnion`
|
|
5356
5356
|
*/
|
|
5357
|
-
type IsNonLiteralUnion<T> = If<IsUnion<T>, Process$
|
|
5357
|
+
type IsNonLiteralUnion<T> = If<IsUnion<T>, Process$1p<T>, false>;
|
|
5358
5358
|
|
|
5359
5359
|
/**
|
|
5360
5360
|
* **NotEqual**`<X,Y>`
|
|
@@ -5446,7 +5446,7 @@ type IsOptional<T> = IsUnion<T> extends true ? Contains<UnionToTuple$1<T>, undef
|
|
|
5446
5446
|
*/
|
|
5447
5447
|
type IsRequired<T> = Not<IsOptional<T>>;
|
|
5448
5448
|
|
|
5449
|
-
type Process$
|
|
5449
|
+
type Process$1o<T> = [IsNever<T>] extends [true] ? false : [IsScalar<T>] extends [true] ? true : [IsUndefined<T>] extends [true] ? true : [IsUnion<T>] extends [true] ? boolean : false;
|
|
5450
5450
|
/**
|
|
5451
5451
|
* **IsOptionalScalar**`<T>`
|
|
5452
5452
|
*
|
|
@@ -5454,7 +5454,7 @@ type Process$1n<T> = [IsNever<T>] extends [true] ? false : [IsScalar<T>] extends
|
|
|
5454
5454
|
*
|
|
5455
5455
|
* **Related:** `IsScalar`
|
|
5456
5456
|
*/
|
|
5457
|
-
type IsOptionalScalar<T> = Process$
|
|
5457
|
+
type IsOptionalScalar<T> = Process$1o<T> extends boolean ? Process$1o<T> : never;
|
|
5458
5458
|
|
|
5459
5459
|
/**
|
|
5460
5460
|
* **IsPositiveNumber**`<T>`
|
|
@@ -5544,7 +5544,7 @@ type IsStrictPromise<T> = T extends {
|
|
|
5544
5544
|
finally?: (onfinally?: () => void) => any;
|
|
5545
5545
|
} ? true : false;
|
|
5546
5546
|
|
|
5547
|
-
type Process$
|
|
5547
|
+
type Process$1n<T, TNever> = [IsNever<T>] extends [true] ? TNever : [IsEqual<T, true>] extends [true] ? true : false;
|
|
5548
5548
|
/**
|
|
5549
5549
|
* **IsTrue**`<T,[TNever]>`
|
|
5550
5550
|
*
|
|
@@ -5558,7 +5558,7 @@ type Process$1m<T, TNever> = [IsNever<T>] extends [true] ? TNever : [IsEqual<T,
|
|
|
5558
5558
|
* type F2 = IsTrue<"foobar">;
|
|
5559
5559
|
* ```
|
|
5560
5560
|
*/
|
|
5561
|
-
type IsTrue<T, TNever = never> = Process$
|
|
5561
|
+
type IsTrue<T, TNever = never> = Process$1n<T, TNever>;
|
|
5562
5562
|
|
|
5563
5563
|
/**
|
|
5564
5564
|
* **IsTruthy**`<T>`
|
|
@@ -5572,7 +5572,7 @@ type IsTruthy<T> = [
|
|
|
5572
5572
|
T
|
|
5573
5573
|
] extends [string] ? T extends "" ? false : If<IsStringLiteral<T>, true, boolean> : [T] extends [number] ? If<IsNumericLiteral<T>, If<SomeEqual<[0, -0], T>, false, true>, boolean> : [T] extends [boolean] ? If<IsFalse<T>, false, If<IsTrue<T>, true, boolean>> : If<SomeEqual<[null, undefined, typeof Number.NaN], T>, false, boolean>;
|
|
5574
5574
|
|
|
5575
|
-
type Process$
|
|
5575
|
+
type Process$1m<T> = [IsNever<T>] extends [true] ? false : T extends readonly unknown[] ? number extends T["length"] ? false : true : false;
|
|
5576
5576
|
/**
|
|
5577
5577
|
* **IsTuple**`<T>`
|
|
5578
5578
|
*
|
|
@@ -5585,7 +5585,7 @@ type Process$1l<T> = [IsNever<T>] extends [true] ? false : T extends readonly un
|
|
|
5585
5585
|
* - types such as `string[]`, etc. are _not_ tuples as they
|
|
5586
5586
|
* do not discretely specify a length of elements
|
|
5587
5587
|
*/
|
|
5588
|
-
type IsTuple<T> = Process$
|
|
5588
|
+
type IsTuple<T> = Process$1m<T> extends boolean ? Process$1m<T> : never;
|
|
5589
5589
|
|
|
5590
5590
|
/**
|
|
5591
5591
|
* **IsUndefined**
|
|
@@ -5746,7 +5746,7 @@ type InvalidNever = Throw<"invalid-never", `The value of T when calling IsWideTy
|
|
|
5746
5746
|
*/
|
|
5747
5747
|
type IsWideType<T, TNever = InvalidNever> = [IsNever<T>] extends [true] ? TNever : [T] extends [ErrorCondition] ? ProxyError<T, "IsWideType"> : IsWideScalar<T> extends true ? true : IsWideContainer<T> extends true ? true : IsWideUnion<T> extends true ? true : false;
|
|
5748
5748
|
|
|
5749
|
-
type Process$
|
|
5749
|
+
type Process$1l<T extends readonly unknown[]> = {
|
|
5750
5750
|
[K in keyof T]: IsWideType<T[K]> extends true ? true : Or<[IsUndefined<T[K]>, IsNull<T[K]>]> extends true ? true : false;
|
|
5751
5751
|
};
|
|
5752
5752
|
/**
|
|
@@ -5757,7 +5757,7 @@ type Process$1k<T extends readonly unknown[]> = {
|
|
|
5757
5757
|
*
|
|
5758
5758
|
* **Related:** `IsNonLiteralUnion`
|
|
5759
5759
|
*/
|
|
5760
|
-
type IsWideUnion<T> = [IsUnion<T>] extends [true] ? [Process$
|
|
5760
|
+
type IsWideUnion<T> = [IsUnion<T>] extends [true] ? [Process$1l<UnionToTuple$1<T>>] extends [readonly true[]] ? true : false : false;
|
|
5761
5761
|
|
|
5762
5762
|
type Overlap<TKeys extends readonly ObjectKey[], TComparator extends AnyObject> = [] extends TKeys ? false : First<TKeys> extends keyof TComparator ? true : Overlap<AfterFirst<TKeys>, TComparator>;
|
|
5763
5763
|
/**
|
|
@@ -5965,7 +5965,7 @@ type SomeAcc<TList extends readonly unknown[], TExtend> = [] extends TList ? fal
|
|
|
5965
5965
|
type SomeExtend<TList extends readonly unknown[], TExtend> = SomeAcc<TList, TExtend>;
|
|
5966
5966
|
|
|
5967
5967
|
type Check<TValue extends string, TComparator extends string | number> = TValue extends `${TComparator}${string}` ? true : false;
|
|
5968
|
-
type Process$
|
|
5968
|
+
type Process$1k<TValue extends string, TComparator extends string | number | readonly string[]> = TComparator extends readonly string[] ? Check<[
|
|
5969
5969
|
TValue
|
|
5970
5970
|
] extends [number] ? `${TValue}` : TValue, TupleToUnion<TComparator>> : Check<[
|
|
5971
5971
|
TValue
|
|
@@ -5984,9 +5984,9 @@ type Process$1j<TValue extends string, TComparator extends string | number | rea
|
|
|
5984
5984
|
* - this can be much more type efficient for unions with lots of characters
|
|
5985
5985
|
* - if you need larger pattern matches then use a Tuple for `TComparator`
|
|
5986
5986
|
*/
|
|
5987
|
-
type StartsWith<TValue extends string | number, TComparator extends string | number | readonly string[]> = [IsWideType<TValue>] extends [true] ? boolean : [IsWideType<TComparator>] extends [true] ? boolean : IsEqual<Process$
|
|
5987
|
+
type StartsWith<TValue extends string | number, TComparator extends string | number | readonly string[]> = [IsWideType<TValue>] extends [true] ? boolean : [IsWideType<TComparator>] extends [true] ? boolean : IsEqual<Process$1k<AsString<TValue>, TComparator>, boolean> extends true ? true : Process$1k<AsString<TValue>, TComparator>;
|
|
5988
5988
|
|
|
5989
|
-
type Process$
|
|
5989
|
+
type Process$1j<T extends readonly unknown[]> = HasArray<T> extends true ? true : false;
|
|
5990
5990
|
/**
|
|
5991
5991
|
* **UnionHasArray**`<T>`
|
|
5992
5992
|
*
|
|
@@ -5996,7 +5996,7 @@ type Process$1i<T extends readonly unknown[]> = HasArray<T> extends true ? true
|
|
|
5996
5996
|
* - and that one of the elements of the union is an array
|
|
5997
5997
|
* of some sort.
|
|
5998
5998
|
*/
|
|
5999
|
-
type UnionHasArray<T> = IsUnion<T> extends true ? Process$
|
|
5999
|
+
type UnionHasArray<T> = IsUnion<T> extends true ? Process$1j<UnionToTuple$1<T>> : false;
|
|
6000
6000
|
|
|
6001
6001
|
type WideBooleanNotAllowed = ErrorCondition<"wide-boolean-not-allowed", `Call to Validate<T,E> received a wide boolean type for T!`>;
|
|
6002
6002
|
type WideReturnNotAllowed<T> = ErrorCondition<"wide-return-not-allowed", `Call to Validate<T,E> returned a wide type: ${AsString<T>}!`>;
|
|
@@ -6102,7 +6102,7 @@ type IfEquals<X, Y, IF = X & Y, ELSE = Exclude<X, Y>> = IfEqual<X, Y, IF, ELSE>;
|
|
|
6102
6102
|
type IfErrorCondition<T, IF, ELSE = T> = IsErrorCondition<T> extends true ? T extends ErrorConditionShape ? IF : never : ELSE;
|
|
6103
6103
|
|
|
6104
6104
|
type ProcessContainers<TValues extends readonly (Container | TIgnore)[], TIgnore, TOffset extends PropertyKey | null, TNotFound> = [] extends TValues ? TNotFound : IndexOf<First<TValues>, TOffset, TIgnore> extends TIgnore ? ProcessContainers<AfterFirst<TValues>, TIgnore, TOffset, TNotFound> : IndexOf<First<TValues>, TOffset>;
|
|
6105
|
-
type Process$
|
|
6105
|
+
type Process$1i<TValues extends readonly unknown[], TIgnore, TNotFound> = [] extends TValues ? TNotFound : First<TValues> extends TIgnore ? Process$1i<AfterFirst<TValues>, TIgnore, TNotFound> : First<TValues>;
|
|
6106
6106
|
/**
|
|
6107
6107
|
* **Iff**`<TValues,[TIgnore],[TOffset],[TNotFound]>`
|
|
6108
6108
|
*
|
|
@@ -6121,7 +6121,7 @@ type Iff<TValues extends NonArray | readonly unknown[], TIgnore = Nothing, TOffs
|
|
|
6121
6121
|
library: "inferred-types/constants";
|
|
6122
6122
|
values: AsArray<TValues>;
|
|
6123
6123
|
offset: TOffset;
|
|
6124
|
-
}> : Process$
|
|
6124
|
+
}> : Process$1i<AsArray<TValues>, TIgnore, TNotFound>;
|
|
6125
6125
|
|
|
6126
6126
|
/**
|
|
6127
6127
|
* **IfLength**`<TEvaluate,TLength,IF,[ELSE],[MAYBE]>`
|
|
@@ -6166,8 +6166,8 @@ type Merge$1<TUser extends Partial<OnPassRemap>, TKeys extends readonly (ObjectK
|
|
|
6166
6166
|
false: false;
|
|
6167
6167
|
error: Constant<"not-set">;
|
|
6168
6168
|
}> = [] extends TKeys ? TConfig : Merge$1<TUser, AfterFirst<TKeys>, As<ExpandDictionary<Record<First<TKeys>, TUser[First<TKeys>]> & Omit<TConfig, First<TKeys>>>, OnPassRemap>>;
|
|
6169
|
-
type Process$
|
|
6170
|
-
type Iterate$7<TTest extends readonly unknown[], TPass, TRemap extends OnPassRemap<unknown, unknown, unknown>> = [] extends TTest ? TPass : Process$
|
|
6169
|
+
type Process$1h<TTest, TPass, TRemap extends OnPassRemap<unknown, unknown, unknown>> = [IsNever<TTest>] extends [true] ? TRemap["never"] : [IsErrorCondition<TTest>] extends [true] ? TRemap["error"] extends Constant<"not-set"> ? TTest : TRemap["error"] : [IsFalse<TTest>] extends [true] ? TRemap["false"] : TPass;
|
|
6170
|
+
type Iterate$7<TTest extends readonly unknown[], TPass, TRemap extends OnPassRemap<unknown, unknown, unknown>> = [] extends TTest ? TPass : Process$1h<First<TTest>, TPass, TRemap> extends TPass ? Iterate$7<AfterFirst<TTest>, TPass, TRemap> : Process$1h<First<TTest>, TPass, TRemap>;
|
|
6171
6171
|
/**
|
|
6172
6172
|
* **OnPass**`<TTest, TPass,[TRemap],[TFalse]>`
|
|
6173
6173
|
*
|
|
@@ -6181,7 +6181,7 @@ type Iterate$7<TTest extends readonly unknown[], TPass, TRemap extends OnPassRem
|
|
|
6181
6181
|
* - the `TRemap` allows you to remap error conditions
|
|
6182
6182
|
* as well if needed
|
|
6183
6183
|
*/
|
|
6184
|
-
type OnPass<TTest, TPass, TRemap extends Partial<OnPassRemap<unknown, unknown, unknown>> = OnPassRemap<never, false, Constant<"not-set">>> = TTest extends readonly unknown[] ? Iterate$7<TTest, TPass, TRemap extends OnPassRemap<never, false, Constant<"not-set">> ? TRemap : Merge$1<TRemap, Keys<TRemap>>> : Process$
|
|
6184
|
+
type OnPass<TTest, TPass, TRemap extends Partial<OnPassRemap<unknown, unknown, unknown>> = OnPassRemap<never, false, Constant<"not-set">>> = TTest extends readonly unknown[] ? Iterate$7<TTest, TPass, TRemap extends OnPassRemap<never, false, Constant<"not-set">> ? TRemap : Merge$1<TRemap, Keys<TRemap>>> : Process$1h<TTest, TPass, TRemap extends OnPassRemap<never, false, Constant<"not-set">> ? TRemap : Merge$1<TRemap, Keys<TRemap>>>;
|
|
6185
6185
|
|
|
6186
6186
|
/**
|
|
6187
6187
|
* **Passthrough**`<TContent,TPass,THandle>`
|
|
@@ -6233,7 +6233,7 @@ type AsDoneFn<T> = T extends {
|
|
|
6233
6233
|
*/
|
|
6234
6234
|
type AsIndexOf<T extends Dictionary | object | Tuple, K extends PropertyKey, ERR = Constant<"NoErr">> = K extends keyof T ? T[K] : IfEqual<ERR, Constant<"NoErr">, Throw<"invalid-key", `the key '${AsString<K>}' is not a valid key of the passed container`, "AsIndexOf">, ERR>;
|
|
6235
6235
|
|
|
6236
|
-
type Process$
|
|
6236
|
+
type Process$1g<T extends readonly unknown[]> = TupleToUnion<RemoveMarked<{
|
|
6237
6237
|
[K in keyof T]: T[K] extends Nothing ? Constant<"Marked"> : T[K];
|
|
6238
6238
|
}>>;
|
|
6239
6239
|
/**
|
|
@@ -6248,7 +6248,7 @@ type Process$1f<T extends readonly unknown[]> = TupleToUnion<RemoveMarked<{
|
|
|
6248
6248
|
* which defaults to `never`)
|
|
6249
6249
|
* - all other values are just proxied through
|
|
6250
6250
|
*/
|
|
6251
|
-
type AsSomething<T, TNonUnion = never> = IsUnion<T> extends true ? Process$
|
|
6251
|
+
type AsSomething<T, TNonUnion = never> = IsUnion<T> extends true ? Process$1g<UnionToTuple$1<T>> : T extends Nothing ? TNonUnion : T;
|
|
6252
6252
|
|
|
6253
6253
|
/**
|
|
6254
6254
|
* Define a class constructor; allowing strong typing for constructor's parameters
|
|
@@ -6326,13 +6326,13 @@ type RemoveEmpty<T> = T extends Tuple ? As<RemoveMarked<ProcessTup<T>>, readonly
|
|
|
6326
6326
|
|
|
6327
6327
|
type Marked$2 = typeof MARKED;
|
|
6328
6328
|
type _Keys$4<T extends object> = UnionToTuple$1<keyof RemoveIndexKeys<T>> extends readonly ObjectKey[] ? UnionToTuple$1<keyof RemoveIndexKeys<T>> : never;
|
|
6329
|
-
type Process$
|
|
6329
|
+
type Process$1f<T extends Container, TKeys extends readonly PropertyKey[], TResults extends Container = T extends readonly unknown[] ? [] : EmptyObject> = [] extends TKeys ? TResults : First<TKeys> extends keyof T ? DoesExtend<T[First<TKeys>], Marked$2> extends true ? Process$1f<T, AfterFirst<TKeys>, TResults> : Process$1f<T, AfterFirst<TKeys>, First<TKeys> extends keyof T ? TResults extends readonly unknown[] ? [...TResults, T[First<TKeys>]] : TResults extends Dictionary ? TResults & Record<First<TKeys>, T[First<TKeys>]> : never : never> : never;
|
|
6330
6330
|
/**
|
|
6331
6331
|
* **RemoveMarked**`<T>`
|
|
6332
6332
|
*
|
|
6333
6333
|
* Removes all values in `T` which extends `Constant<"Marked">`
|
|
6334
6334
|
*/
|
|
6335
|
-
type RemoveMarked<T extends Container> = Process$
|
|
6335
|
+
type RemoveMarked<T extends Container> = Process$1f<T, T extends Tuple ? NumericKeys<T> : _Keys$4<T>>;
|
|
6336
6336
|
|
|
6337
6337
|
/**
|
|
6338
6338
|
* **RemoveIndexKeys**`<T>`
|
|
@@ -6391,7 +6391,7 @@ type _AsArray<T> = T extends Tuple ? Mutable<T> : If<IsUndefined<T>, [
|
|
|
6391
6391
|
*/
|
|
6392
6392
|
type AsArray<T> = _AsArray<T> extends any[] ? _AsArray<T> : never;
|
|
6393
6393
|
|
|
6394
|
-
type Process$
|
|
6394
|
+
type Process$1e<T extends `${number}`> = If<IsStringLiteral<T>, StripLeading<T, "-">, string>;
|
|
6395
6395
|
/**
|
|
6396
6396
|
* **Abs**`<T>`
|
|
6397
6397
|
*
|
|
@@ -6400,7 +6400,7 @@ type Process$1d<T extends `${number}`> = If<IsStringLiteral<T>, StripLeading<T,
|
|
|
6400
6400
|
* - you can pass in a numeric string literal and it perform ABS func while
|
|
6401
6401
|
* preserving string literal type
|
|
6402
6402
|
*/
|
|
6403
|
-
type Abs<T extends NumberLike> = T extends number ? AsNumber<Process$
|
|
6403
|
+
type Abs<T extends NumberLike> = T extends number ? AsNumber<Process$1e<`${T}`>> : T extends `${number}` ? Process$1e<T> : never;
|
|
6404
6404
|
|
|
6405
6405
|
/**
|
|
6406
6406
|
* **AbsMaybe**`<T>`
|
|
@@ -6445,13 +6445,13 @@ type GrowExp<A extends any[], N extends number, P extends any[][], L extends num
|
|
|
6445
6445
|
type MapItemType<T, I> = {
|
|
6446
6446
|
[K in keyof T]: I;
|
|
6447
6447
|
};
|
|
6448
|
-
type Process$
|
|
6448
|
+
type Process$1d<T, N extends number> = N extends 0 ? [] : MapItemType<GrowExp<[0], N, []>, T>;
|
|
6449
6449
|
/**
|
|
6450
6450
|
* **FixedLengthArray**`<T,N>`
|
|
6451
6451
|
*
|
|
6452
6452
|
* Creates a fixed length `<N>` array of a given type `<T>`
|
|
6453
6453
|
*/
|
|
6454
|
-
type FixedLengthArray<T, N extends number> = Process$
|
|
6454
|
+
type FixedLengthArray<T, N extends number> = Process$1d<T, N> extends readonly unknown[] ? Process$1d<T, N> : never;
|
|
6455
6455
|
|
|
6456
6456
|
/**
|
|
6457
6457
|
* **ParseInt**`<T>`
|
|
@@ -6474,7 +6474,7 @@ type ParseInt<T> = T extends `${infer N extends number}` ? N : never;
|
|
|
6474
6474
|
*/
|
|
6475
6475
|
type AsNumber<T> = T extends number ? T : T extends `${number}` ? ParseInt<T> : never;
|
|
6476
6476
|
|
|
6477
|
-
type Process$
|
|
6477
|
+
type Process$1c<TTuple extends readonly string[], TSeparator extends string, TResult extends string = ""> = [] extends TTuple ? TResult : Process$1c<AfterFirst<TTuple>, TSeparator, TResult extends "" ? First<TTuple> extends "" ? TResult : `${First<TTuple>}` : First<TTuple> extends "" ? TResult : `${TResult}${TSeparator}${First<TTuple>}`>;
|
|
6478
6478
|
type Slicer<TTuple extends readonly unknown[], TMax extends number | null, TEllipsis extends string | false> = TMax extends number ? TakeFirst<TTuple, TMax> extends readonly unknown[] ? TEllipsis extends string ? ToStringArray<[...TakeFirst<TTuple, TMax>, TEllipsis]> : ToStringArray<TakeFirst<TTuple, TMax>> : never : ToStringArray<TTuple>;
|
|
6479
6479
|
/**
|
|
6480
6480
|
* **Join**`<TArr,[TSeparator],[TMax]>`
|
|
@@ -6489,7 +6489,7 @@ type Slicer<TTuple extends readonly unknown[], TMax extends number | null, TElli
|
|
|
6489
6489
|
*
|
|
6490
6490
|
* **Related:** `Concat<TArr>`
|
|
6491
6491
|
*/
|
|
6492
|
-
type Join<TTuple extends readonly unknown[], TSeparator extends string = "", TMax extends number | null = null, TEllipsis extends string | false = "..."> = ToStringArray<TTuple> extends readonly string[] ? TMax extends number ? IsGreaterThan<TTuple["length"], TMax> extends true ? Process$
|
|
6492
|
+
type Join<TTuple extends readonly unknown[], TSeparator extends string = "", TMax extends number | null = null, TEllipsis extends string | false = "..."> = ToStringArray<TTuple> extends readonly string[] ? TMax extends number ? IsGreaterThan<TTuple["length"], TMax> extends true ? Process$1c<Slicer<TTuple, TMax, TEllipsis>, TSeparator> : Process$1c<ToStringArray<TTuple>, TSeparator> : Process$1c<ToStringArray<TTuple>, TSeparator> : never;
|
|
6493
6493
|
|
|
6494
6494
|
/**
|
|
6495
6495
|
* **AsString**<T>
|
|
@@ -6575,9 +6575,9 @@ type RightMostDigit<s extends string> = s extends `${infer rest}${NumericChar}`
|
|
|
6575
6575
|
type SumStrings<left extends string, right extends string, accumulatedResultDigits extends string = "", carry extends boolean = false> = "" extends left ? "" extends right ? carry extends true ? `1${accumulatedResultDigits}` : accumulatedResultDigits : RightMostDigit<right> extends RightMostDigitResult<infer remainingRight, infer rightDigit> ? SumSingleDigits<"0", rightDigit, carry> extends SingleDigitSumResult<infer resultDigit, infer resultCarry> ? SumStrings<"", remainingRight, `${resultDigit}${accumulatedResultDigits}`, resultCarry> : never : never : "" extends right ? RightMostDigit<left> extends RightMostDigitResult<infer remainingLeft, infer leftDigit> ? SumSingleDigits<"0", leftDigit, carry> extends SingleDigitSumResult<infer resultDigit, infer resultCarry> ? SumStrings<remainingLeft, "", `${resultDigit}${accumulatedResultDigits}`, resultCarry> : never : never : RightMostDigit<left> extends RightMostDigitResult<infer remainingLeft, infer leftDigit> ? RightMostDigit<right> extends RightMostDigitResult<infer remainingRight, infer rightDigit> ? SumSingleDigits<leftDigit, rightDigit, carry> extends SingleDigitSumResult<infer resultDigit, infer resultCarry> ? SumStrings<remainingLeft, remainingRight, `${resultDigit}${accumulatedResultDigits}`, resultCarry> : never : never : never;
|
|
6576
6576
|
type _Subtract<TValue extends `${number}`, TCountArr extends readonly unknown[]> = [] extends TCountArr ? TValue : _Subtract<Decrement<TValue>, AfterFirst<TCountArr>>;
|
|
6577
6577
|
type AddNegatives<A extends `${number}`, B extends `${number}`> = SumStrings<A, B>;
|
|
6578
|
-
type Process$
|
|
6578
|
+
type Process$1b<A extends `${number}`, B extends `${number}`> = And<[IsNegativeNumber<A>, IsNegativeNumber<B>]> extends true ? `-${AddNegatives<Abs<A>, Abs<B>>}` : IsNegativeNumber<B> extends true ? FixedLengthArray<unknown, AsNumber<Abs<B>>> extends readonly unknown[] ? _Subtract<A, FixedLengthArray<unknown, AsNumber<Abs<B>>>> : never : IsNegativeNumber<A> extends true ? FixedLengthArray<unknown, AsNumber<Abs<A>>> extends readonly unknown[] ? _Subtract<B, FixedLengthArray<unknown, AsNumber<Abs<A>>>> : never : SumStrings<A, B>;
|
|
6579
6579
|
type CheckWide<A extends NumberLike, B extends NumberLike> = IsWideType<A> extends true ? true : IsWideType<B> extends true ? true : false;
|
|
6580
|
-
type PreProcess$2<A extends NumberLike, B extends NumberLike> = CheckWide<A, B> extends true ? Or<[IsString<A>, IsString<A>]> extends true ? string : number : Or<[IsWideType<A>, IsWideType<B>]> extends true ? If<IsString<A>, string, number> : A extends `${number}` ? B extends `${number}` ? As<Process$
|
|
6580
|
+
type PreProcess$2<A extends NumberLike, B extends NumberLike> = CheckWide<A, B> extends true ? Or<[IsString<A>, IsString<A>]> extends true ? string : number : Or<[IsWideType<A>, IsWideType<B>]> extends true ? If<IsString<A>, string, number> : A extends `${number}` ? B extends `${number}` ? As<Process$1b<A, B>, `${number}`> : As<Process$1b<A, AsString<B>>, `${number}`> : A extends number ? B extends number ? AsNumber<Process$1b<`${A}`, `${B}`>> : AsNumber<Process$1b<`${A}`, As<B, `${number}`>>> : never;
|
|
6581
6581
|
/**
|
|
6582
6582
|
* **Add**`<A,B>`
|
|
6583
6583
|
*
|
|
@@ -6588,7 +6588,7 @@ type PreProcess$2<A extends NumberLike, B extends NumberLike> = CheckWide<A, B>
|
|
|
6588
6588
|
*/
|
|
6589
6589
|
type Add<A extends NumberLike, B extends NumberLike> = A extends number ? As<PreProcess$2<A, B>, number> : A extends `${number}` ? As<PreProcess$2<A, B>, `${number}`> : never;
|
|
6590
6590
|
|
|
6591
|
-
type Process$
|
|
6591
|
+
type Process$1a<T extends `${number}`> = EnsureLeading<T, "-">;
|
|
6592
6592
|
/**
|
|
6593
6593
|
* **AsNegativeNumber**
|
|
6594
6594
|
*
|
|
@@ -6596,7 +6596,7 @@ type Process$19<T extends `${number}`> = EnsureLeading<T, "-">;
|
|
|
6596
6596
|
*
|
|
6597
6597
|
* **Related**: `Abs`, `InvertNumericSign`
|
|
6598
6598
|
*/
|
|
6599
|
-
type AsNegativeNumber<T extends NumberLike> = T extends Zero ? T : T extends number ? AsNumber<Process$
|
|
6599
|
+
type AsNegativeNumber<T extends NumberLike> = T extends Zero ? T : T extends number ? AsNumber<Process$1a<`${T}`>> extends number ? AsNumber<Process$1a<`${T}`>> : never : T extends `${number}` ? Process$1a<T> extends `${number}` ? Process$1a<T> : never : never;
|
|
6600
6600
|
|
|
6601
6601
|
type Convert$4<T> = T extends `${number}` ? ToNumber<T> : T;
|
|
6602
6602
|
type ConvertTuple<T> = T extends unknown[] ? {
|
|
@@ -6669,7 +6669,7 @@ type AsError__Meta = [
|
|
|
6669
6669
|
type Props$1<T extends AnyObject | undefined> = T extends AnyObject ? T : EmptyObject;
|
|
6670
6670
|
type IdFrom<T extends AnyObject> = AsIndexOf<T, "id", never>;
|
|
6671
6671
|
type LibraryFrom<T extends AnyObject> = AsIndexOf<T, "library", never>;
|
|
6672
|
-
type Process$
|
|
6672
|
+
type Process$19<T extends AsError__Meta> = IsEqual<T, [string, string]> extends true ? ErrorCondition<T[0], T[1], never> : T extends [string, string, TypeErrorInfo] ? Throw<T[0], T[1], "AsError", {
|
|
6673
6673
|
id: IdFrom<Props$1<T[2]>>;
|
|
6674
6674
|
library: LibraryFrom<Props$1<T[2]>>;
|
|
6675
6675
|
}> : ErrorCondition<T[0], T[1], never>;
|
|
@@ -6698,7 +6698,7 @@ type Process$18<T extends AsError__Meta> = IsEqual<T, [string, string]> extends
|
|
|
6698
6698
|
*/
|
|
6699
6699
|
type AsError<TType> = TType extends ErrorCondition ? TType : IfNever<TType, ErrorCondition<"never-value", "a 'never' type was encountered which is not allowed in this context!">, TType extends Error$1<string> ? Throw<"runtime-error", `the JS runtime's Error class was found with the message: '${TType["message"]}'`, "AsError", {
|
|
6700
6700
|
library: "inferred-types/constants";
|
|
6701
|
-
}> : TType extends AsError__Meta ? Process$
|
|
6701
|
+
}> : TType extends AsError__Meta ? Process$19<TType> : Throw<"failed-to-wrap", Concat<[
|
|
6702
6702
|
"An unexpected value -- ",
|
|
6703
6703
|
ToString<TType>,
|
|
6704
6704
|
" -- was passed into the AsError<T> type utility!"
|
|
@@ -6943,7 +6943,7 @@ type StackTrace = StackFrame[];
|
|
|
6943
6943
|
* Iterates over each element of the Tuple
|
|
6944
6944
|
*/
|
|
6945
6945
|
type SingleFilter$3<TList extends readonly unknown[], TFilter, TOp extends ComparatorOperation, Result extends unknown[] = []> = TList extends [infer Head, ...infer Rest] ? [Compare$1<Head, TOp, TFilter>] extends [true] ? SingleFilter$3<Rest, TFilter, TOp, Result> : SingleFilter$3<Rest, TFilter, TOp, [...Result, Head]> : Result;
|
|
6946
|
-
type Process$
|
|
6946
|
+
type Process$18<TList extends unknown[] | readonly unknown[], TFilter, TOp extends ComparatorOperation> = TList extends unknown[] ? SingleFilter$3<TList, TFilter, TOp> : TList extends readonly unknown[] ? Readonly<SingleFilter$3<[...TList], TFilter, TOp>> : never;
|
|
6947
6947
|
/**
|
|
6948
6948
|
* **Filter**`<TList, TComparator, [TOp]>`
|
|
6949
6949
|
*
|
|
@@ -6967,7 +6967,7 @@ type Process$17<TList extends unknown[] | readonly unknown[], TFilter, TOp exten
|
|
|
6967
6967
|
*
|
|
6968
6968
|
* **Related:** `RetainFromList`, `RemoveFromList`
|
|
6969
6969
|
*/
|
|
6970
|
-
type Filter<TList extends readonly unknown[], TComparator, TOp extends ComparatorOperation = "extends"> = TList extends readonly unknown[] ? IfNever<TComparator, RemoveNever<TList>, If<IsArray<TComparator>, Process$
|
|
6970
|
+
type Filter<TList extends readonly unknown[], TComparator, TOp extends ComparatorOperation = "extends"> = TList extends readonly unknown[] ? IfNever<TComparator, RemoveNever<TList>, If<IsArray<TComparator>, Process$18<TList, TupleToUnion<TComparator>, TOp>, Process$18<TList, TComparator, TOp>>> : never;
|
|
6971
6971
|
|
|
6972
6972
|
/**
|
|
6973
6973
|
* Converts a Tuple type into a _union_ of the tuple elements
|
|
@@ -7211,7 +7211,7 @@ type CardinalityIn<T extends Cardinality> = T extends `${infer IN}:${string}` ?
|
|
|
7211
7211
|
type CardinalityOut<T extends Cardinality> = T extends `${string}:${infer OUT}` ? OUT : never;
|
|
7212
7212
|
type CardinalityInput<T, C extends Cardinality> = UnionToTuple$1<C> extends readonly unknown[] ? First<UnionToTuple$1<C>> extends 1 ? T : T[] : T | undefined;
|
|
7213
7213
|
|
|
7214
|
-
type Process$
|
|
7214
|
+
type Process$17<TChars extends readonly string[]> = {
|
|
7215
7215
|
[K in keyof TChars]: Capitalize<TChars[K]>;
|
|
7216
7216
|
};
|
|
7217
7217
|
/**
|
|
@@ -7220,7 +7220,7 @@ type Process$16<TChars extends readonly string[]> = {
|
|
|
7220
7220
|
* Type utility which converts all alphabetic characters to their
|
|
7221
7221
|
* UPPERCASE variant.
|
|
7222
7222
|
*/
|
|
7223
|
-
type AllCaps<T extends string> = If<IsStringLiteral<T>, Chars<T> extends readonly string[] ? Process$
|
|
7223
|
+
type AllCaps<T extends string> = If<IsStringLiteral<T>, Chars<T> extends readonly string[] ? Process$17<Chars<T>> extends readonly string[] ? Concat<Process$17<Chars<T>>> : never : Chars<T>, string>;
|
|
7224
7224
|
|
|
7225
7225
|
/**
|
|
7226
7226
|
* **CamelCase**`<TString,TPreserveWhitespace>`
|
|
@@ -7268,7 +7268,7 @@ type _DU<T extends string> = T extends Lowercase<T> ? T : `-${Lowercase<T>}`;
|
|
|
7268
7268
|
*/
|
|
7269
7269
|
type DashUppercase<T extends string> = HasUppercase<T> extends false ? T : T extends `${infer C0}${infer C1}${infer R}` ? `${_DU<C0>}${_DU<C1>}${DashUppercase<R>}` : T extends `${infer C0}${infer R}` ? `${_DU<C0>}${DashUppercase<R>}` : "";
|
|
7270
7270
|
|
|
7271
|
-
type Process$
|
|
7271
|
+
type Process$16<TString extends string, TPreserve extends boolean = false> = TPreserve extends true ? Concat<[
|
|
7272
7272
|
LeftWhitespace<TString>,
|
|
7273
7273
|
KebabCase<TString, false>,
|
|
7274
7274
|
RightWhitespace<TString>
|
|
@@ -7288,7 +7288,7 @@ type Process$15<TString extends string, TPreserve extends boolean = false> = TPr
|
|
|
7288
7288
|
* type Dash = Dasherize<"\n foo bar \t">;
|
|
7289
7289
|
* ```
|
|
7290
7290
|
*/
|
|
7291
|
-
type KebabCase<TString extends string, TPreserve extends boolean = false> = Process$
|
|
7291
|
+
type KebabCase<TString extends string, TPreserve extends boolean = false> = Process$16<TString, TPreserve> extends string ? Process$16<TString, TPreserve> : never;
|
|
7292
7292
|
|
|
7293
7293
|
/**
|
|
7294
7294
|
* **LowerAllCaps**`<T>
|
|
@@ -10133,7 +10133,7 @@ type PhoneCountryLookup = Mutable<[...typeof PHONE_COUNTRY_CODES]>;
|
|
|
10133
10133
|
*/
|
|
10134
10134
|
type PhoneCountryCode = FirstOfEach<PhoneCountryLookup>;
|
|
10135
10135
|
|
|
10136
|
-
type Process$
|
|
10136
|
+
type Process$15<T extends string, _TDelimiter extends PhoneNumberDelimiter = PhoneNumberDelimiter> = OnPass<[
|
|
10137
10137
|
], T>;
|
|
10138
10138
|
/**
|
|
10139
10139
|
* **PhoneNumber**`<[T]>`
|
|
@@ -10154,7 +10154,7 @@ type Process$14<T extends string, _TDelimiter extends PhoneNumberDelimiter = Pho
|
|
|
10154
10154
|
*
|
|
10155
10155
|
* - Related: `PhoneNumberWithCountryCode`, `UsPhoneNumber`
|
|
10156
10156
|
*/
|
|
10157
|
-
type PhoneNumber<T extends number | string | null = null, TDelimiter extends PhoneNumberDelimiter = PhoneNumberDelimiter> = T extends null ? LocalPhoneNumber<TDelimiter> | CountryPhoneNumber<TDelimiter> | InternationalPhoneNumber<TDelimiter> : IsStringLiteral<T> extends true ? Process$
|
|
10157
|
+
type PhoneNumber<T extends number | string | null = null, TDelimiter extends PhoneNumberDelimiter = PhoneNumberDelimiter> = T extends null ? LocalPhoneNumber<TDelimiter> | CountryPhoneNumber<TDelimiter> | InternationalPhoneNumber<TDelimiter> : IsStringLiteral<T> extends true ? Process$15<As<T, string>, TDelimiter> : IsNumericLiteral<T> extends true ? Process$15<`${As<T, number>}`, TDelimiter> : T extends string ? string | ErrorCondition<"invalid-phone-number"> : T extends number ? number | ErrorCondition<"invalid-phone-number"> : never;
|
|
10158
10158
|
type PhoneNumberWithCountryCode = `+${PhoneCountryCode} ${string}`;
|
|
10159
10159
|
type Sep = "." | " " | "-";
|
|
10160
10160
|
type AreaCode = `(${number}) ` | `${number}${Sep}`;
|
|
@@ -11518,8 +11518,8 @@ interface GetUrlDynamics<T extends string> {
|
|
|
11518
11518
|
allVars: PathAndQueryDynamics<T>;
|
|
11519
11519
|
}
|
|
11520
11520
|
|
|
11521
|
-
type Process$
|
|
11522
|
-
type ValueAtDotPath<TValue extends Container, TPath extends string> = [IsValidDotPath<TValue, TPath>] extends [true] ? IsLiteral<TValue> extends true ? IsStringLiteral<TPath> extends true ? Split<TPath, "."> extends readonly string[] ? Process$
|
|
11521
|
+
type Process$14<TContainer extends Container, TIndexes extends readonly string[]> = [] extends TIndexes ? TContainer : First<TIndexes> extends keyof TContainer ? TContainer[First<TIndexes>] extends Container ? Process$14<TContainer[First<TIndexes>], AfterFirst<TIndexes>> : AfterFirst<TIndexes>["length"] extends 0 ? TContainer[First<TIndexes>] : false : IsVueRef<TContainer> extends true ? First<TIndexes> extends keyof AsRef<TContainer>["value"] ? TIndexes["length"] extends 1 ? AsRef<TContainer>["value"][First<TIndexes>] : AsRef<TContainer>["value"][First<TIndexes>] extends Container ? Process$14<AsRef<TContainer>["value"][First<TIndexes>], AfterFirst<TIndexes>> : AfterFirst<TIndexes>["length"] extends 0 ? AsRef<TContainer>["value"][First<TIndexes>] : false : false : false;
|
|
11522
|
+
type ValueAtDotPath<TValue extends Container, TPath extends string> = [IsValidDotPath<TValue, TPath>] extends [true] ? IsLiteral<TValue> extends true ? IsStringLiteral<TPath> extends true ? Split<TPath, "."> extends readonly string[] ? Process$14<TValue, Split<TPath, ".">> : never : string : string : never;
|
|
11523
11523
|
|
|
11524
11524
|
/**
|
|
11525
11525
|
* **VariableChar**
|
|
@@ -11679,7 +11679,7 @@ type YouTubeSubscriptionsUrl = `https://www.youtube.com/feed/subscriptions${AnyQ
|
|
|
11679
11679
|
*/
|
|
11680
11680
|
type GetYouTubePageType<T> = T extends YouTubeUrl ? T extends YouTubeHome ? "home" : T extends YouTubeVideoUrl ? HasQueryParameter<T, "list"> extends true ? T extends YouTubeShareUrl ? HasQueryParameter<T, "t"> extends true ? "play::video::in-list::share-link::with-timestamp" : "play::video::in-list::share-link" : "play::video::in-list" : T extends YouTubeShareUrl ? HasQueryParameter<T, "t"> extends true ? "play::video::solo::share-link::with-timestamp" : "play::video::solo::share-link" : "play::video::solo" : T extends YouTubeCreatorUrl ? GetUrlPath<T> extends `${string}/videos` ? "creator::videos" : GetUrlPath<T> extends `${string}/playlists` ? "creator::playlists" : Last<Split<GetUrlPath<T>, "/">> extends `@${string}` ? "creator::featured" : GetUrlPath<T> extends `${string}/featured` ? "creator::featured" : "creator::other" : T extends YouTubeFeedUrl ? T extends YouTubeFeedUrl<"history"> ? "feed::history" : T extends YouTubeFeedUrl<"playlists"> ? "feed::playlists" : T extends YouTubeFeedUrl<"liked"> ? "feed::liked" : T extends YouTubeFeedUrl<"subscriptions"> ? "feed::subscriptions" : T extends YouTubeFeedUrl<"trending"> ? "feed::trending" : "feed::other" : T extends YouTubeVideosInPlaylist ? "playlist::show" : "other" : never;
|
|
11681
11681
|
|
|
11682
|
-
type Process$
|
|
11682
|
+
type Process$13<TStr extends string, TResult extends readonly string[] = []> = IsStringLiteral<TStr> extends true ? IsEqual<TStr["length"], 0> extends true ? [] : TStr extends `${infer Char}${infer Rest}` ? Process$13<Rest, [
|
|
11683
11683
|
...TResult,
|
|
11684
11684
|
Char
|
|
11685
11685
|
]> : TResult : string;
|
|
@@ -11688,10 +11688,10 @@ type Process$12<TStr extends string, TResult extends readonly string[] = []> = I
|
|
|
11688
11688
|
*
|
|
11689
11689
|
* Takes a literal string and converts it to an array of characters.
|
|
11690
11690
|
*/
|
|
11691
|
-
type Chars<TStr extends string> = IsStringLiteral<TStr> extends true ? Process$
|
|
11691
|
+
type Chars<TStr extends string> = IsStringLiteral<TStr> extends true ? Process$13<TStr> extends readonly string[] ? Process$13<TStr> : never : readonly string[];
|
|
11692
11692
|
|
|
11693
11693
|
type ElementLiteral<T> = [T] extends [string] ? IsStringLiteral<T> extends true ? T : string : [T] extends [number] ? IsNumericLiteral<T> extends true ? T : `${number}` : [T] extends [boolean] ? IsBooleanLiteral<T> extends true ? T : `${boolean}` : never;
|
|
11694
|
-
type Process$
|
|
11694
|
+
type Process$12<T extends Tuple, Result extends string = ""> = [] extends T ? Result : Process$12<AfterFirst<T>, `${Result}${ElementLiteral<First<T>>}`>;
|
|
11695
11695
|
/**
|
|
11696
11696
|
* **Concat**`<T>`
|
|
11697
11697
|
*
|
|
@@ -11707,7 +11707,7 @@ type Process$11<T extends Tuple, Result extends string = ""> = [] extends T ? Re
|
|
|
11707
11707
|
*
|
|
11708
11708
|
* **Related:** `Join<TArr,TWith>`
|
|
11709
11709
|
*/
|
|
11710
|
-
type Concat<T extends readonly unknown[]> = Process$
|
|
11710
|
+
type Concat<T extends readonly unknown[]> = Process$12<T>;
|
|
11711
11711
|
|
|
11712
11712
|
type Year<T extends "strong" | "simple" = "strong"> = T extends "strong" ? `${"1" | "2"}${NumericChar}${NumericChar}${NumericChar}` : `${"1" | "2"}${number}`;
|
|
11713
11713
|
type ZeroThenDigit = `0${NumericChar}`;
|
|
@@ -11939,9 +11939,9 @@ type EmptyString = "";
|
|
|
11939
11939
|
*/
|
|
11940
11940
|
type EmptyStringOr<T extends string | readonly string[]> = T extends readonly string[] ? EmptyString | TupleToUnion<T & readonly string[]> : EmptyString | (T & string);
|
|
11941
11941
|
|
|
11942
|
-
type Process$
|
|
11942
|
+
type Process$11<TContent extends string, TLeading extends string> = TContent extends `${TLeading}${string}` ? TContent : `${TLeading}${TContent}`;
|
|
11943
11943
|
type IterateOver$1<TContent extends readonly (string | number)[], TLeading extends string | number> = {
|
|
11944
|
-
[K in keyof TContent]: TContent[K] extends string ? Process$
|
|
11944
|
+
[K in keyof TContent]: TContent[K] extends string ? Process$11<TContent[K], AsStringUnion<TLeading>> : TContent[K] extends number ? AsNumber<Process$11<`${TContent[K]}`, AsStringUnion<TLeading>>> : never;
|
|
11945
11945
|
};
|
|
11946
11946
|
type WideContent<TContent extends string | number, TLeading extends string | number> = IsString<TContent> extends true ? `${TLeading}${string}` : number;
|
|
11947
11947
|
type WideLeading<TContent extends string | number, TLeading extends string | number> = TContent extends string ? `${TLeading}${TContent}` : number;
|
|
@@ -11966,7 +11966,7 @@ type WideLeading<TContent extends string | number, TLeading extends string | num
|
|
|
11966
11966
|
*
|
|
11967
11967
|
* **Related:** `EnsureLeadingEvery`, `EnsureTrailing`, `EnsureSurround`, `Surround`
|
|
11968
11968
|
*/
|
|
11969
|
-
type EnsureLeading<TContent extends string | number | readonly (string | number)[], TLeading extends string | number> = TContent extends readonly (string | number)[] ? IterateOver$1<TContent, TLeading> : IsWideType<TContent> extends true ? WideContent<As<TContent, string | number>, TLeading> : IsWideType<TLeading> extends true ? WideLeading<As<TContent, string | number>, TLeading> : TContent extends string ? Process$
|
|
11969
|
+
type EnsureLeading<TContent extends string | number | readonly (string | number)[], TLeading extends string | number> = TContent extends readonly (string | number)[] ? IterateOver$1<TContent, TLeading> : IsWideType<TContent> extends true ? WideContent<As<TContent, string | number>, TLeading> : IsWideType<TLeading> extends true ? WideLeading<As<TContent, string | number>, TLeading> : TContent extends string ? Process$11<TContent, AsStringUnion<TLeading>> : TContent extends number ? AsNumber<Process$11<`${TContent}`, AsStringUnion<TLeading>>> : never;
|
|
11970
11970
|
|
|
11971
11971
|
/**
|
|
11972
11972
|
* **EnsureLeadingEvery**`<TList, TLeader>`
|
|
@@ -12121,9 +12121,9 @@ type _FindIndexesWithMeta__Tuple<TOriginal extends readonly unknown[], TContent
|
|
|
12121
12121
|
*/
|
|
12122
12122
|
type FindIndexesWithMeta<TContent extends string | readonly unknown[], TFind, TOp extends ComparatorOperation = "extends"> = TContent extends string ? _FindIndexesWithMeta__String<Chars<TContent>, Chars<TContent>, TFind, TOp> : TContent extends readonly unknown[] ? _FindIndexesWithMeta__Tuple<TContent, TContent, TFind, TOp> : never;
|
|
12123
12123
|
|
|
12124
|
-
type Process
|
|
12124
|
+
type Process$10<TContent extends string> = First<Chars<TContent>>;
|
|
12125
12125
|
type Iterate$5<TContent extends readonly string[]> = {
|
|
12126
|
-
[K in keyof TContent]: Process
|
|
12126
|
+
[K in keyof TContent]: Process$10<TContent[K]>;
|
|
12127
12127
|
};
|
|
12128
12128
|
/**
|
|
12129
12129
|
* **FirstChar**`<TContent>`
|
|
@@ -12138,7 +12138,7 @@ type Iterate$5<TContent extends readonly string[]> = {
|
|
|
12138
12138
|
*
|
|
12139
12139
|
* **Related:** `LastChar`, `AfterFirstChar`
|
|
12140
12140
|
*/
|
|
12141
|
-
type FirstChar<TContent extends string | readonly string[]> = TContent extends readonly string[] ? Iterate$5<TContent> : TContent extends string ? string extends TContent ? string : Process
|
|
12141
|
+
type FirstChar<TContent extends string | readonly string[]> = TContent extends readonly string[] ? Iterate$5<TContent> : TContent extends string ? string extends TContent ? string : Process$10<TContent> : never;
|
|
12142
12142
|
|
|
12143
12143
|
type UsStateLookup = Mutable<typeof US_STATE_LOOKUP>;
|
|
12144
12144
|
type UsProvinceLookup = Mutable<typeof US_STATE_LOOKUP_PROVINCES>;
|
|
@@ -12234,9 +12234,9 @@ type HasUppercase<T extends string> = string extends T ? "unknown" : T extends `
|
|
|
12234
12234
|
*/
|
|
12235
12235
|
type IsCapitalized<T extends string> = string extends T ? "unknown" : T extends Capitalize<T> ? true : false;
|
|
12236
12236
|
|
|
12237
|
-
type Process
|
|
12237
|
+
type Process$$<TContent extends string> = Last<Chars<TContent>>;
|
|
12238
12238
|
type Iterate$4<TContent extends readonly string[]> = {
|
|
12239
|
-
[K in keyof TContent]: Process
|
|
12239
|
+
[K in keyof TContent]: Process$$<TContent[K]>;
|
|
12240
12240
|
};
|
|
12241
12241
|
/**
|
|
12242
12242
|
* **LastChar**`<TContent>`
|
|
@@ -12251,7 +12251,7 @@ type Iterate$4<TContent extends readonly string[]> = {
|
|
|
12251
12251
|
*
|
|
12252
12252
|
* **Related:** `FirstChar`, `AfterFirstChar`
|
|
12253
12253
|
*/
|
|
12254
|
-
type LastChar<TContent extends string | readonly string[]> = TContent extends readonly string[] ? Iterate$4<TContent> : TContent extends string ? string extends TContent ? string : Process
|
|
12254
|
+
type LastChar<TContent extends string | readonly string[]> = TContent extends readonly string[] ? Iterate$4<TContent> : TContent extends string ? string extends TContent ? string : Process$$<TContent> : never;
|
|
12255
12255
|
|
|
12256
12256
|
type AccelerationMetricsLookup = typeof ACCELERATION_METRICS_LOOKUP;
|
|
12257
12257
|
/**
|
|
@@ -12815,7 +12815,7 @@ type TypeStrength = "strong" | "simple";
|
|
|
12815
12815
|
type StripSlash<T extends readonly string[]> = {
|
|
12816
12816
|
[K in keyof T]: T[K] extends `/${infer Middle}/` ? Middle : T[K] extends `/${infer Trailing}` ? Trailing : T[K] extends `${infer Leading}/` ? Leading : T[K];
|
|
12817
12817
|
};
|
|
12818
|
-
type Process$
|
|
12818
|
+
type Process$_<TPath extends string, TFirst extends string, TLast extends string> = TFirst extends `/${string}` ? TLast extends `${string}/` ? `/${TPath}/` : `/${TPath}` : TLast extends `${string}/` ? `${TPath}/` : TPath;
|
|
12819
12819
|
/**
|
|
12820
12820
|
* **PathJoin**`<T,U>`
|
|
12821
12821
|
*
|
|
@@ -12829,7 +12829,7 @@ type Process$Z<TPath extends string, TFirst extends string, TLast extends string
|
|
|
12829
12829
|
* `EnsureStarting<T>`, and `StripStarting<T>` to further shape
|
|
12830
12830
|
* the type.
|
|
12831
12831
|
*/
|
|
12832
|
-
type PathJoin<TSegments extends readonly string[]> = StripSlash<TSegments> extends readonly string[] ? Process$
|
|
12832
|
+
type PathJoin<TSegments extends readonly string[]> = StripSlash<TSegments> extends readonly string[] ? Process$_<Join<StripSlash<TSegments>, "/">, First<TSegments>, Last<TSegments>> : never;
|
|
12833
12833
|
|
|
12834
12834
|
type ExceptionLookup = typeof PLURAL_EXCEPTIONS;
|
|
12835
12835
|
type SingularNoun = "s" | "sh" | "ch" | "x" | "z" | "o";
|
|
@@ -12931,7 +12931,7 @@ type RetainAfterLast<TStr extends string, TBreak extends string, TInclude extend
|
|
|
12931
12931
|
TBreak
|
|
12932
12932
|
], TStr extends `${string}${infer Break extends TBreak}${infer REST}` ? If<IsTrue<TInclude>, `${Break}${REST}`, `${REST}`> : TStr, string>;
|
|
12933
12933
|
|
|
12934
|
-
type Process$
|
|
12934
|
+
type Process$Z<TChars extends readonly string[], TOp extends "is" | "not", TComparator extends string, TInclude extends boolean = false, TResult extends string = ""> = [] extends TChars ? TResult : First<TChars> extends TComparator ? TOp extends "is" ? Process$Z<AfterFirst<TChars>, TOp, TComparator, TInclude, `${TResult}${First<TChars>}`> : If<TInclude, `${TResult}${First<TChars>}`, TResult> : TOp extends "is" ? If<TInclude, `${TResult}${First<TChars>}`, TResult> : Process$Z<AfterFirst<TChars>, TOp, TComparator, TInclude, `${TResult}${First<TChars>}`>;
|
|
12935
12935
|
/**
|
|
12936
12936
|
* **RetainUntil**`<TContent,TComparator>`
|
|
12937
12937
|
*
|
|
@@ -12945,7 +12945,7 @@ type Process$Y<TChars extends readonly string[], TOp extends "is" | "not", TComp
|
|
|
12945
12945
|
*
|
|
12946
12946
|
* **Related:** `RetainWhile`
|
|
12947
12947
|
*/
|
|
12948
|
-
type RetainUntil<TContent extends string, TComparator extends string, TInclude extends boolean = false> = Process$
|
|
12948
|
+
type RetainUntil<TContent extends string, TComparator extends string, TInclude extends boolean = false> = Process$Z<Chars<TContent>, "not", TComparator, TInclude>;
|
|
12949
12949
|
/**
|
|
12950
12950
|
* **RetainWhile**`<TContent,TComparator>`
|
|
12951
12951
|
*
|
|
@@ -12959,7 +12959,7 @@ type RetainUntil<TContent extends string, TComparator extends string, TInclude e
|
|
|
12959
12959
|
*
|
|
12960
12960
|
* **Related:** `RetainUntil`
|
|
12961
12961
|
*/
|
|
12962
|
-
type RetainWhile<TContent extends string, TComparator extends string> = Process$
|
|
12962
|
+
type RetainWhile<TContent extends string, TComparator extends string> = Process$Z<Chars<TContent>, "is", TComparator>;
|
|
12963
12963
|
|
|
12964
12964
|
type Policy = "omit" | "before" | "after";
|
|
12965
12965
|
type Postfix<T extends string> = ["postfix", T];
|
|
@@ -12976,7 +12976,7 @@ type EachBlock<TContent extends readonly (string | Postfix<string>)[], TSep exte
|
|
|
12976
12976
|
First<TContent>
|
|
12977
12977
|
]>;
|
|
12978
12978
|
type Iterate$3<TContent extends readonly (string | Postfix<string>)[], TSep extends readonly string[], TPolicy extends Policy> = [] extends TSep ? FixPostfix<Filter<TContent, "", "equals">> : Iterate$3<EachBlock<TContent, First<TSep>, TPolicy>, AfterFirst<TSep>, TPolicy>;
|
|
12979
|
-
type Process$
|
|
12979
|
+
type Process$Y<TContent extends string, TSep extends string | readonly string[], TPolicy extends Policy = "omit"> = IsLiteral<TSep> extends true ? TSep extends "" ? ErrMsg<"invalid-separator", `Split<T>: an empty string was used as a separator. Use Chars<T> if you want to split a string into characters!`> : TSep extends readonly string[] ? Iterate$3<[TContent], TSep, TPolicy> : TSep extends string ? Convert$3<TContent, TSep, TPolicy> extends readonly (string | Postfix<string>)[] ? FixPostfix<Convert$3<TContent, TSep, TPolicy>> : never : never : never;
|
|
12980
12980
|
/**
|
|
12981
12981
|
* **Split**`<TContent,TSep,[TPolicy]>`
|
|
12982
12982
|
*
|
|
@@ -12991,7 +12991,7 @@ type Process$X<TContent extends string, TSep extends string | readonly string[],
|
|
|
12991
12991
|
* than `SplitAlt` but there are instances where `SplitAlt` is more performant
|
|
12992
12992
|
* in inference.
|
|
12993
12993
|
*/
|
|
12994
|
-
type Split<TContent extends string, TSep extends string | readonly string[], TPolicy extends Policy = "omit"> = IsStringLiteral<TContent> extends true ? IsUnion<TSep> extends true ? UnionToTuple$1<TSep> extends readonly string[] ? Split<TContent, UnionToTuple$1<TSep>, TPolicy> : ErrMsg<"invalid-union"> : Process$
|
|
12994
|
+
type Split<TContent extends string, TSep extends string | readonly string[], TPolicy extends Policy = "omit"> = IsStringLiteral<TContent> extends true ? IsUnion<TSep> extends true ? UnionToTuple$1<TSep> extends readonly string[] ? Split<TContent, UnionToTuple$1<TSep>, TPolicy> : ErrMsg<"invalid-union"> : Process$Y<TContent, TSep, TPolicy> : string[];
|
|
12995
12995
|
|
|
12996
12996
|
type UnionPolicy = "omit" | "include";
|
|
12997
12997
|
type UnionSplit<TContent extends readonly string[], TSep extends string, TUnionPolicy extends UnionPolicy, TResult extends readonly string[] = []> = [] extends TContent ? TResult : UnionSplit<AfterFirst<TContent>, // advance to next character
|
|
@@ -13006,8 +13006,8 @@ type LiteralSplit<TContent extends string, TSep extends string, TUnionPolicy ext
|
|
|
13006
13006
|
...TResults,
|
|
13007
13007
|
TUnionPolicy extends "omit" ? Block : `${Block}${TSep}`
|
|
13008
13008
|
]> : Filter<[...TResults, TContent], "">;
|
|
13009
|
-
type Process$
|
|
13010
|
-
type PreProcess$1<TContent extends string, TSep extends string | readonly string[], TUnionPolicy extends UnionPolicy = "omit"> = IsUnion<TSep> extends true ? UnionToTuple$1<TSep> extends readonly string[] ? Process$
|
|
13009
|
+
type Process$X<TContent extends string, TSep extends string | readonly string[], TUnionPolicy extends UnionPolicy = "omit"> = IsWideType<TContent> extends true ? string : TSep extends readonly string[] ? TupleToUnion<TSep> extends string ? Chars<TContent> extends readonly string[] ? UnionSplit<Chars<TContent>, TupleToUnion<TSep>, TUnionPolicy> : never : never : TSep extends string ? LiteralSplit<TContent, TSep, TUnionPolicy> : never;
|
|
13010
|
+
type PreProcess$1<TContent extends string, TSep extends string | readonly string[], TUnionPolicy extends UnionPolicy = "omit"> = IsUnion<TSep> extends true ? UnionToTuple$1<TSep> extends readonly string[] ? Process$X<TContent, UnionToTuple$1<TSep>, TUnionPolicy> : never : Process$X<TContent, TSep, TUnionPolicy>;
|
|
13011
13011
|
/**
|
|
13012
13012
|
* **SplitAlt**`<TContent,TSep,[TPolicy]>`
|
|
13013
13013
|
*
|
|
@@ -13047,7 +13047,7 @@ type StripAfter<TStr extends string, TBreak extends string> = IsStringLiteral<TS
|
|
|
13047
13047
|
*/
|
|
13048
13048
|
type StripBefore<TStr extends string, TBreak extends string> = IsStringLiteral<TStr> extends true ? IsStringLiteral<TBreak> extends true ? TStr extends `${string}${TBreak}${infer REST}` ? `${REST}` : TStr : string : string;
|
|
13049
13049
|
|
|
13050
|
-
type Process$
|
|
13050
|
+
type Process$W<TContent extends string, TStrip extends string> = And<[IsStringLiteral<TContent>, IsStringLiteral<TStrip>]> extends true ? TContent extends `${TStrip & string}${infer After}` ? After : TContent : string;
|
|
13051
13051
|
/**
|
|
13052
13052
|
* **StripLeading**`<T, U>`
|
|
13053
13053
|
*
|
|
@@ -13064,9 +13064,9 @@ type Process$V<TContent extends string, TStrip extends string> = And<[IsStringLi
|
|
|
13064
13064
|
* - if `T` is a non-string type then no transformation will be done
|
|
13065
13065
|
* - same applies to `U`
|
|
13066
13066
|
*/
|
|
13067
|
-
type StripLeading<TContent extends string | number, TStrip extends string | number> = TContent extends number ? AsNumber<Process$
|
|
13067
|
+
type StripLeading<TContent extends string | number, TStrip extends string | number> = TContent extends number ? AsNumber<Process$W<`${TContent}`, AsStringUnion<TStrip>>> : TContent extends string ? Process$W<TContent, AsStringUnion<TStrip>> : never;
|
|
13068
13068
|
|
|
13069
|
-
type Process$
|
|
13069
|
+
type Process$V<TContent extends string, TSurround extends string> = TContent extends `${TSurround}${infer REMAIN}` ? REMAIN extends `${infer LEADING}${TSurround}` ? LEADING : REMAIN : TContent extends `${infer LEADING}${TSurround}` ? LEADING : TContent;
|
|
13070
13070
|
/**
|
|
13071
13071
|
* **StripSurround**`<TContent, TSurround>`
|
|
13072
13072
|
*
|
|
@@ -13078,9 +13078,9 @@ type Process$U<TContent extends string, TSurround extends string> = TContent ext
|
|
|
13078
13078
|
* type Hello = StripSurround<"(Hi there)", "(" | ")">;
|
|
13079
13079
|
* ```
|
|
13080
13080
|
*/
|
|
13081
|
-
type StripSurround<TContent extends string | number, TSurround extends string | number> = IsWideType<TContent> extends true ? TContent : TContent extends string ? Process$
|
|
13081
|
+
type StripSurround<TContent extends string | number, TSurround extends string | number> = IsWideType<TContent> extends true ? TContent : TContent extends string ? Process$V<TContent, AsStringUnion<TSurround>> : AsNumber<Process$V<`${TContent}`, AsStringUnion<TSurround>>>;
|
|
13082
13082
|
|
|
13083
|
-
type Process$
|
|
13083
|
+
type Process$U<TContent extends string, TStrip extends string> = And<[IsStringLiteral<TContent>, IsStringLiteral<TStrip>]> extends true ? TContent extends `${infer Before}${TStrip}` ? Before : TContent : string;
|
|
13084
13084
|
/**
|
|
13085
13085
|
* **StripEnding**`<TContent, TStrip>`
|
|
13086
13086
|
*
|
|
@@ -13094,23 +13094,23 @@ type Process$T<TContent extends string, TStrip extends string> = And<[IsStringLi
|
|
|
13094
13094
|
* type R = StripEnding<T,U>;
|
|
13095
13095
|
* ```
|
|
13096
13096
|
*/
|
|
13097
|
-
type StripTrailing<TContent extends string | number, TStrip extends string | number> = TContent extends number ? AsNumber<Process$
|
|
13097
|
+
type StripTrailing<TContent extends string | number, TStrip extends string | number> = TContent extends number ? AsNumber<Process$U<`${TContent}`, `${TStrip}`> extends `${number}` ? Process$U<`${TContent}`, `${TStrip}`> : never> : TContent extends string ? Process$U<`${TContent}`, `${TStrip}`> extends string ? Process$U<`${TContent}`, `${TStrip}`> : never : never;
|
|
13098
13098
|
|
|
13099
|
-
type Process$
|
|
13099
|
+
type Process$T<TChars extends readonly string[], TOp extends "is" | "not", TComparator extends string, TResult extends string> = [] extends TChars ? TResult : First<TChars> extends TComparator ? TOp extends "is" ? Process$T<AfterFirst<TChars>, TOp, TComparator, Shift<TResult> extends string ? Shift<TResult> : ""> : TResult : TOp extends "is" ? TResult : Process$T<AfterFirst<TChars>, TOp, TComparator, Shift<TResult> extends string ? Shift<TResult> : "">;
|
|
13100
13100
|
/**
|
|
13101
13101
|
* **StripUntil**`<TContent,TComparator>`
|
|
13102
13102
|
*
|
|
13103
13103
|
* Strip characters from the start of `TContent` _until_ a
|
|
13104
13104
|
* character extends `TComparator`.
|
|
13105
13105
|
*/
|
|
13106
|
-
type StripUntil<TContent extends string, TComparator extends string> = Process$
|
|
13106
|
+
type StripUntil<TContent extends string, TComparator extends string> = Process$T<Chars<TContent>, "not", TComparator, TContent>;
|
|
13107
13107
|
/**
|
|
13108
13108
|
* **StripWhile**`<TContent,TComparator>`
|
|
13109
13109
|
*
|
|
13110
13110
|
* Strip characters from the start of `TContent` _while_ those
|
|
13111
13111
|
* characters extend `TComparator`.
|
|
13112
13112
|
*/
|
|
13113
|
-
type StripWhile<TContent extends string, TComparator extends string> = Process$
|
|
13113
|
+
type StripWhile<TContent extends string, TComparator extends string> = Process$T<Chars<TContent>, "is", TComparator, TContent>;
|
|
13114
13114
|
|
|
13115
13115
|
type Compute<TStr extends string, TLen extends Tuple = []> = TStr extends `${infer _Char}${infer Rest}` ? Compute<Rest, [...TLen, unknown]> : TLen["length"];
|
|
13116
13116
|
/**
|
|
@@ -13121,9 +13121,9 @@ type Compute<TStr extends string, TLen extends Tuple = []> = TStr extends `${inf
|
|
|
13121
13121
|
*/
|
|
13122
13122
|
type StrLen<T extends string> = Compute<T>;
|
|
13123
13123
|
|
|
13124
|
-
type Process$
|
|
13124
|
+
type Process$S<TContent extends string, TPrefix extends string, TPostfix extends string> = `${TPrefix}${TContent}${TPostfix}`;
|
|
13125
13125
|
type ProcessEach<TContent extends readonly string[], TPrefix extends string, TPostfix extends string> = {
|
|
13126
|
-
[K in keyof TContent]: Process$
|
|
13126
|
+
[K in keyof TContent]: Process$S<TContent[K], TPrefix, TPostfix>;
|
|
13127
13127
|
};
|
|
13128
13128
|
/**
|
|
13129
13129
|
* **Surround**`<TContent,TPrefix,TPostfix>`
|
|
@@ -13138,7 +13138,7 @@ type ProcessEach<TContent extends readonly string[], TPrefix extends string, TPo
|
|
|
13138
13138
|
* type T2 = Surround<["one","two"], "<",">">;
|
|
13139
13139
|
* ```
|
|
13140
13140
|
*/
|
|
13141
|
-
type Surround<TContent extends string | number | readonly (string | number)[], TPrefix extends string, TPostfix extends string> = TContent extends number ? Surround<`${TContent}`, TPrefix, TPostfix> : TContent extends readonly unknown[] ? TContent extends readonly string[] ? ProcessEach<TContent, TPrefix, TPostfix> : ProcessEach<ToStringArray<TContent> extends readonly string[] ? ToStringArray<TContent> : never, TPrefix, TPostfix> : TContent extends string ? Process$
|
|
13141
|
+
type Surround<TContent extends string | number | readonly (string | number)[], TPrefix extends string, TPostfix extends string> = TContent extends number ? Surround<`${TContent}`, TPrefix, TPostfix> : TContent extends readonly unknown[] ? TContent extends readonly string[] ? ProcessEach<TContent, TPrefix, TPostfix> : ProcessEach<ToStringArray<TContent> extends readonly string[] ? ToStringArray<TContent> : never, TPrefix, TPostfix> : TContent extends string ? Process$S<TContent, TPrefix, TPostfix> : never;
|
|
13142
13142
|
|
|
13143
13143
|
type CivilianTwoDigitHour = "10" | "11" | "12";
|
|
13144
13144
|
type TimeResolution = "HH:MM" | "HH:MM:SS" | "HH:MM:SS.ms";
|
|
@@ -13354,7 +13354,7 @@ type TypeSubtype = `${string}/${string}` & {
|
|
|
13354
13354
|
brand: "type-subtype";
|
|
13355
13355
|
};
|
|
13356
13356
|
|
|
13357
|
-
type Process$
|
|
13357
|
+
type Process$R<T> = T extends NumberLike ? AsNumber<T> : T extends BooleanLike ? AsBoolean<T> : T;
|
|
13358
13358
|
/**
|
|
13359
13359
|
* **UnderlyingType**`<T>`
|
|
13360
13360
|
*
|
|
@@ -13367,8 +13367,8 @@ type Process$Q<T> = T extends NumberLike ? AsNumber<T> : T extends BooleanLike ?
|
|
|
13367
13367
|
* In all other cases it simply proxies the type of `T` through.
|
|
13368
13368
|
*/
|
|
13369
13369
|
type UnderlyingType<T> = T extends readonly unknown[] ? {
|
|
13370
|
-
[K in keyof T]: Process$
|
|
13371
|
-
} : Process$
|
|
13370
|
+
[K in keyof T]: Process$R<T[K]>;
|
|
13371
|
+
} : Process$R<T>;
|
|
13372
13372
|
|
|
13373
13373
|
/**
|
|
13374
13374
|
* **JsonValue**`<T>`
|
|
@@ -13420,7 +13420,7 @@ type MergeTuplesAcc<TDefault extends readonly unknown[], TOverride extends reado
|
|
|
13420
13420
|
* - if `TDefault` is longer than `TOverride` then `TDefault` will be extended
|
|
13421
13421
|
*/
|
|
13422
13422
|
type MergeTuples<TDefault extends readonly Narrowable[], TOverride extends readonly Narrowable[], TKey extends string | false = false> = MergeTuplesAcc<[...TDefault], [...TOverride], TKey>;
|
|
13423
|
-
type Process$
|
|
13423
|
+
type Process$Q<TDefault, TOverride> = And<[
|
|
13424
13424
|
DoesExtend<TDefault, Dictionary | Nothing>,
|
|
13425
13425
|
DoesExtend<TOverride, Dictionary | Nothing>
|
|
13426
13426
|
]> extends true ? MergeObjects<AsDictionary<TDefault>, AsDictionary<TOverride>> : And<[
|
|
@@ -13437,14 +13437,14 @@ type Process$P<TDefault, TOverride> = And<[
|
|
|
13437
13437
|
*
|
|
13438
13438
|
* **Related:** `MergeObjects`, `MergeScalars`, `MergeTuples`
|
|
13439
13439
|
*/
|
|
13440
|
-
type Merge<TDefault, TOverride> = AreSameType<TDefault, TOverride> extends true ? Process$
|
|
13440
|
+
type Merge<TDefault, TOverride> = AreSameType<TDefault, TOverride> extends true ? Process$Q<TDefault, TOverride> : Or<[
|
|
13441
13441
|
IsNothing<TDefault>,
|
|
13442
13442
|
IsNothing<TOverride>
|
|
13443
13443
|
]> extends true ? And<[IsNothing<TDefault>, IsNothing<TOverride>]> extends true ? Throw<"invalid-merge", `Merge<TDef,TOver> received two empty values; at least one needs to have a value!`, "Merge", {
|
|
13444
13444
|
library: "inferred-types/constants";
|
|
13445
13445
|
TDef: TDefault;
|
|
13446
13446
|
TOver: TOverride;
|
|
13447
|
-
}> : Process$
|
|
13447
|
+
}> : Process$Q<TDefault, TOverride> : Throw<"invalid-merge", `the Merge<TDef,TOver> utility can merge various types but both types must be of the same base type and they were not!`, "Merge", {
|
|
13448
13448
|
library: "inferred-types/constants";
|
|
13449
13449
|
TDef: TDefault;
|
|
13450
13450
|
TOver: TOverride;
|
|
@@ -13486,7 +13486,7 @@ type Immutable<T extends {
|
|
|
13486
13486
|
} ? Immutable<T[key]> : T[key];
|
|
13487
13487
|
};
|
|
13488
13488
|
|
|
13489
|
-
type Process$
|
|
13489
|
+
type Process$P<TSource extends AnyObject, TKeys extends readonly (ObjectKey & keyof TSource)[], TTuple extends readonly KeyValue[] = []> = [] extends TKeys ? TTuple : Process$P<TSource, AfterFirst<TKeys>, [
|
|
13490
13490
|
...TTuple,
|
|
13491
13491
|
{
|
|
13492
13492
|
key: First<TKeys>;
|
|
@@ -13510,10 +13510,10 @@ type Compact<TSource extends AnyObject, TKeys extends readonly (ObjectKey & keyo
|
|
|
13510
13510
|
* type C = ObjectToTuple< foo: 1 }, true>;
|
|
13511
13511
|
* ```
|
|
13512
13512
|
*/
|
|
13513
|
-
type ObjectToTuple<TObj extends AnyObject, TCompact extends boolean = false> = TObj extends ExplicitlyEmptyObject ? [] : IsWideContainer<TObj> extends true ? TCompact extends false ? KeyValue[] : Record<ObjectKey, any>[] : TCompact extends false ? Process$
|
|
13513
|
+
type ObjectToTuple<TObj extends AnyObject, TCompact extends boolean = false> = TObj extends ExplicitlyEmptyObject ? [] : IsWideContainer<TObj> extends true ? TCompact extends false ? KeyValue[] : Record<ObjectKey, any>[] : TCompact extends false ? Process$P<TObj, As<Keys<TObj>, readonly (ObjectKey & keyof TObj)[]>> : Compact<TObj, As<Keys<TObj>, readonly (ObjectKey & keyof TObj)[]>>;
|
|
13514
13514
|
|
|
13515
13515
|
type Prefix$2<T extends boolean> = T extends true ? "\n " : "";
|
|
13516
|
-
type Process$
|
|
13516
|
+
type Process$O<T extends readonly Record<ObjectKey, any>[], E extends boolean> = Join<{
|
|
13517
13517
|
[K in keyof T]: T[K] extends Record<infer Key extends string, infer Value> ? `${Prefix$2<E>}${Key}: ${AsString<Value>}` : never;
|
|
13518
13518
|
}, "; ">;
|
|
13519
13519
|
/**
|
|
@@ -13523,9 +13523,9 @@ type Process$N<T extends readonly Record<ObjectKey, any>[], E extends boolean> =
|
|
|
13523
13523
|
*
|
|
13524
13524
|
* **Related:** `ObjectToJsString`, `ObjectToJsonString`, `ObjectToTuple`
|
|
13525
13525
|
*/
|
|
13526
|
-
type ObjectToCssString<TObj extends AnyObject, TExpand extends boolean = false> = TObj extends ExplicitlyEmptyObject ? "{}" : IsWideContainer<TObj> extends true ? string : Surround<Process$
|
|
13526
|
+
type ObjectToCssString<TObj extends AnyObject, TExpand extends boolean = false> = TObj extends ExplicitlyEmptyObject ? "{}" : IsWideContainer<TObj> extends true ? string : Surround<Process$O<ObjectToTuple<TObj, true>, false>, TExpand extends false ? "{ " : "{", TExpand extends false ? " }" : "\n}">;
|
|
13527
13527
|
|
|
13528
|
-
type Process$
|
|
13528
|
+
type Process$N<T extends readonly Record<ObjectKey, any>[]> = Join<{
|
|
13529
13529
|
[K in keyof T]: T[K] extends Record<infer Key extends string, infer Value> ? `${Surround<Key, `"`, `"`>}: ${Value extends string ? `"${Value}"` : `${AsString<Value>}`}` : never;
|
|
13530
13530
|
}, ", ">;
|
|
13531
13531
|
/**
|
|
@@ -13535,10 +13535,10 @@ type Process$M<T extends readonly Record<ObjectKey, any>[]> = Join<{
|
|
|
13535
13535
|
*
|
|
13536
13536
|
* **Related:** `ObjectToCssString`, `ObjectToJsString`, `ObjectToTuple`
|
|
13537
13537
|
*/
|
|
13538
|
-
type ObjectToJsonString<TObj extends AnyObject> = TObj extends ExplicitlyEmptyObject ? "{}" : IsWideContainer<TObj> extends true ? string : Surround<Process$
|
|
13538
|
+
type ObjectToJsonString<TObj extends AnyObject> = TObj extends ExplicitlyEmptyObject ? "{}" : IsWideContainer<TObj> extends true ? string : Surround<Process$N<ObjectToTuple<TObj, true>>, "{ ", " }">;
|
|
13539
13539
|
|
|
13540
13540
|
type Prefix$1<T extends boolean> = T extends true ? "\n " : "";
|
|
13541
|
-
type Process$
|
|
13541
|
+
type Process$M<T extends readonly Record<ObjectKey, any>[], E extends boolean> = Join<{
|
|
13542
13542
|
[K in keyof T]: T[K] extends Record<infer Key extends string, infer Value> ? `${Prefix$1<E>}${Key}: ${Value extends string ? `"${Value}"` : `${AsString<Value>}`}` : never;
|
|
13543
13543
|
}, ", ">;
|
|
13544
13544
|
/**
|
|
@@ -13548,10 +13548,10 @@ type Process$L<T extends readonly Record<ObjectKey, any>[], E extends boolean> =
|
|
|
13548
13548
|
*
|
|
13549
13549
|
* **Related:** `ObjectToCssString`, `ObjectToJsonString`, `ObjectToTuple`
|
|
13550
13550
|
*/
|
|
13551
|
-
type ObjectToJsString<TObj extends AnyObject, TExpand extends boolean = false> = TObj extends ExplicitlyEmptyObject ? "{}" : IsWideContainer<TObj> extends true ? string : Surround<Process$
|
|
13551
|
+
type ObjectToJsString<TObj extends AnyObject, TExpand extends boolean = false> = TObj extends ExplicitlyEmptyObject ? "{}" : IsWideContainer<TObj> extends true ? string : Surround<Process$M<ObjectToTuple<TObj, true>, TExpand>, "{ ", " }">;
|
|
13552
13552
|
|
|
13553
13553
|
type Prefix<T extends boolean> = T extends true ? "\n " : "";
|
|
13554
|
-
type Process$
|
|
13554
|
+
type Process$L<T extends readonly Record<ObjectKey, any>[], E extends boolean> = Join<{
|
|
13555
13555
|
[K in keyof T]: T[K] extends Record<infer Key extends string, infer Value> ? Value extends AnyObject ? `${Prefix<E>}${Key} ${AsString<Value>}` : never : never;
|
|
13556
13556
|
}, "\n ">;
|
|
13557
13557
|
/**
|
|
@@ -13561,7 +13561,7 @@ type Process$K<T extends readonly Record<ObjectKey, any>[], E extends boolean> =
|
|
|
13561
13561
|
*
|
|
13562
13562
|
* **Related:** `ObjectToJsString`, `ObjectToJsonString`, `ObjectToTuple`, `ObjectToCssString`
|
|
13563
13563
|
*/
|
|
13564
|
-
type ObjectToKeyframeString<TObj extends AnyObject, TExpand extends boolean = false> = TObj extends ExplicitlyEmptyObject ? "{}" : IsWideContainer<TObj> extends true ? string : Surround<Process$
|
|
13564
|
+
type ObjectToKeyframeString<TObj extends AnyObject, TExpand extends boolean = false> = TObj extends ExplicitlyEmptyObject ? "{}" : IsWideContainer<TObj> extends true ? string : Surround<Process$L<ObjectToTuple<TObj, true>, false>, TExpand extends false ? "{ " : "{\n ", TExpand extends false ? " }" : "\n}">;
|
|
13565
13565
|
|
|
13566
13566
|
type ProcessTuple$3<TArray extends readonly unknown[] | unknown[], TResults extends readonly unknown[] = []> = [
|
|
13567
13567
|
] extends TArray ? TResults : First<TArray> extends TypedFunction ? ProcessTuple$3<AfterFirst<TArray>, [...TResults, ReturnType<First<TArray>>]> : ProcessTuple$3<AfterFirst<TArray>, [...TResults, First<TArray>]>;
|
|
@@ -13631,9 +13631,9 @@ type RemoveIndex<T extends Record<any, any>> = {
|
|
|
13631
13631
|
*/
|
|
13632
13632
|
type Replace<TText extends string, TFind extends string, TReplace extends string> = TText extends "" ? If<IsEqual<TFind, "">, TReplace, ""> : TFind extends "" ? TText : TText extends `${infer F}${TFind}${infer E}` ? `${F}${TReplace}${E}` : TText;
|
|
13633
13633
|
|
|
13634
|
-
type Process$
|
|
13635
|
-
type Iterate$2<TText extends string, TFind extends readonly string[], TReplace extends string> = [] extends TFind ? TText : Iterate$2<Process$
|
|
13636
|
-
type Singular<TText extends string, TFind extends string, TReplace extends string> = IsStringLiteral<TText> extends true ? IsStringLiteral<TFind> extends true ? IsUnion<TFind> extends true ? UnionToTuple$1<TFind> extends readonly string[] ? Iterate$2<TText, UnionToTuple$1<TFind>, TReplace> : never : Process$
|
|
13634
|
+
type Process$K<TText extends string, TFind extends string, TReplace extends string> = Replace<TText, TFind, TReplace> extends `${string}${TFind}${string}` ? Process$K<Replace<TText, TFind, TReplace>, TFind, TReplace> : Replace<TText, TFind, TReplace>;
|
|
13635
|
+
type Iterate$2<TText extends string, TFind extends readonly string[], TReplace extends string> = [] extends TFind ? TText : Iterate$2<Process$K<TText, First<TFind>, TReplace>, AfterFirst<TFind>, TReplace>;
|
|
13636
|
+
type Singular<TText extends string, TFind extends string, TReplace extends string> = IsStringLiteral<TText> extends true ? IsStringLiteral<TFind> extends true ? IsUnion<TFind> extends true ? UnionToTuple$1<TFind> extends readonly string[] ? Iterate$2<TText, UnionToTuple$1<TFind>, TReplace> : never : Process$K<TText, TFind, TReplace> : string : string;
|
|
13637
13637
|
type Multiple<TText extends readonly string[], TFind extends string, TReplace extends string, TResult extends readonly string[] = []> = [] extends TText ? TResult : Multiple<AfterFirst<TText>, TFind, TReplace, [
|
|
13638
13638
|
...TResult,
|
|
13639
13639
|
ReplaceAll<First<TText>, TFind, TReplace>
|
|
@@ -13657,7 +13657,7 @@ type Multiple<TText extends readonly string[], TFind extends string, TReplace ex
|
|
|
13657
13657
|
*/
|
|
13658
13658
|
type ReplaceAll<TText extends string | readonly string[], TFind extends string, TReplace extends string> = TText extends readonly string[] ? IsLiteral<TText> extends true ? Multiple<TText, TFind, TReplace> : string[] : TText extends string ? Singular<TText, TFind, TReplace> : never;
|
|
13659
13659
|
|
|
13660
|
-
type Process$
|
|
13660
|
+
type Process$J<TChars extends readonly string[], TRetain extends string> = RemoveMarked<{
|
|
13661
13661
|
[K in keyof TChars]: TChars[K] extends TRetain ? TChars[K] : Constant<"Marked">;
|
|
13662
13662
|
}>;
|
|
13663
13663
|
/**
|
|
@@ -13667,7 +13667,7 @@ type Process$I<TChars extends readonly string[], TRetain extends string> = Remov
|
|
|
13667
13667
|
* of the characters in `TRetain` _retained_ while all
|
|
13668
13668
|
* other characters are removed.
|
|
13669
13669
|
*/
|
|
13670
|
-
type RetainChars<TContent extends string, TRetain extends string> = Or<[IsWideType<TContent>, IsWideType<TRetain>]> extends true ? string : Process$
|
|
13670
|
+
type RetainChars<TContent extends string, TRetain extends string> = Or<[IsWideType<TContent>, IsWideType<TRetain>]> extends true ? string : Process$J<Chars<TContent>, TRetain> extends readonly string[] ? Join<Process$J<Chars<TContent>, TRetain>> : never;
|
|
13671
13671
|
|
|
13672
13672
|
type ProcessTuple$2<TArray extends readonly unknown[] | unknown[], TResults extends readonly unknown[] = []> = [
|
|
13673
13673
|
] extends TArray ? TResults : First<TArray> extends TypedFunction ? ProcessTuple$2<AfterFirst<TArray>, [...TResults, ReturnType<First<TArray>>]> : ProcessTuple$2<AfterFirst<TArray>, TResults>;
|
|
@@ -13724,7 +13724,7 @@ type StringLiteralFromTuple<T extends readonly unknown[]> = LitString<T>;
|
|
|
13724
13724
|
type Strip<TChars extends readonly string[], TStrip extends string> = {
|
|
13725
13725
|
[K in keyof TChars]: TChars[K] extends TStrip ? Marked$3 : TChars[K];
|
|
13726
13726
|
};
|
|
13727
|
-
type Process$
|
|
13727
|
+
type Process$I<TChars extends readonly string[], TStrip extends string> = As<RemoveMarked<Strip<TChars, TStrip>>, readonly string[]>;
|
|
13728
13728
|
/**
|
|
13729
13729
|
* **StripChars**`<TContent,TStrip>`
|
|
13730
13730
|
*
|
|
@@ -13735,7 +13735,7 @@ type Process$H<TChars extends readonly string[], TStrip extends string> = As<Rem
|
|
|
13735
13735
|
* of single characters or this will throw
|
|
13736
13736
|
* `ErrorCondition<"invalid-strip-char">`
|
|
13737
13737
|
*/
|
|
13738
|
-
type StripChars<TContent extends string, TStrip extends string> = Or<[IsWideType<TContent>, IsWideType<TStrip>]> extends true ? string : Chars<TContent> extends readonly string[] ? Concat<Process$
|
|
13738
|
+
type StripChars<TContent extends string, TStrip extends string> = Or<[IsWideType<TContent>, IsWideType<TStrip>]> extends true ? string : Chars<TContent> extends readonly string[] ? Concat<Process$I<Chars<TContent>, TStrip>> extends string ? Concat<Process$I<Chars<TContent>, TStrip>> : never : never;
|
|
13739
13739
|
|
|
13740
13740
|
/**
|
|
13741
13741
|
* **ToBoolean**`<T>`
|
|
@@ -13844,7 +13844,7 @@ type ToStringArray<T extends Tuple> = {
|
|
|
13844
13844
|
*/
|
|
13845
13845
|
type ToUnion<T extends any[]> = T[number];
|
|
13846
13846
|
|
|
13847
|
-
type Process$
|
|
13847
|
+
type Process$H<S extends string> = string extends S ? string : S extends `${Whitespace}${infer Right}` ? Process$H<Right> : S extends `${infer Left}${Whitespace}` ? Process$H<Left> : S;
|
|
13848
13848
|
/**
|
|
13849
13849
|
* Trims off blank spaces, `\n` and `\t` characters from both sides of a _string literal_.
|
|
13850
13850
|
* ```ts
|
|
@@ -13854,7 +13854,7 @@ type Process$G<S extends string> = string extends S ? string : S extends `${Whit
|
|
|
13854
13854
|
* type T = Trim<string>;
|
|
13855
13855
|
* ```
|
|
13856
13856
|
*/
|
|
13857
|
-
type Trim<S extends string> = Process$
|
|
13857
|
+
type Trim<S extends string> = Process$H<S> extends string ? Process$H<S> : never;
|
|
13858
13858
|
|
|
13859
13859
|
/**
|
|
13860
13860
|
* Trims off whitespace on left of string
|
|
@@ -13930,7 +13930,7 @@ type Mutate<TElements extends readonly unknown[], TOp extends UnionMutationOp> =
|
|
|
13930
13930
|
} : never;
|
|
13931
13931
|
type UnionMutate<U, Op extends UnionMutationOp> = [U] extends [never] ? never : IsUnion<U> extends true ? Mutate<UnionToTuple$1<U>, Op>[number] : U;
|
|
13932
13932
|
|
|
13933
|
-
type Process$
|
|
13933
|
+
type Process$G<U, Last = LastInUnion$1<U>> = [U] extends [never] ? [] : [IsUnion<U>] extends [true] ? [Last, Exclude<U, Last>] : U;
|
|
13934
13934
|
/**
|
|
13935
13935
|
* **ShiftUnion**`<U>`
|
|
13936
13936
|
*
|
|
@@ -13948,7 +13948,7 @@ type Process$F<U, Last = LastInUnion$1<U>> = [U] extends [never] ? [] : [IsUnion
|
|
|
13948
13948
|
* - when calling `ShiftUnion`<U>` where `U` is _not_ a union you will
|
|
13949
13949
|
* get the tuple `[never, U]`
|
|
13950
13950
|
*/
|
|
13951
|
-
type UnionShift<U, Last = LastInUnion$1<U>> = Process$
|
|
13951
|
+
type UnionShift<U, Last = LastInUnion$1<U>> = Process$G<U, Last> extends readonly unknown[] ? IsUnion<U> extends true ? [Last, Exclude<U, Last>] : U : [never, IsUnion<U> extends true ? [Last, Exclude<U, Last>] : U];
|
|
13952
13952
|
|
|
13953
13953
|
/**
|
|
13954
13954
|
* **UnionToIntersection**`<U>`
|
|
@@ -13972,7 +13972,7 @@ type UnionWithAll<TList extends readonly unknown[], TUnion> = {
|
|
|
13972
13972
|
[K in keyof TList]: TList[K] | TUnion;
|
|
13973
13973
|
};
|
|
13974
13974
|
|
|
13975
|
-
type Process$
|
|
13975
|
+
type Process$F<T extends readonly unknown[]> = {
|
|
13976
13976
|
[K in keyof T]: T[K] extends TypedFunction ? ReturnType<T[K]> : T[K];
|
|
13977
13977
|
};
|
|
13978
13978
|
/**
|
|
@@ -13988,7 +13988,7 @@ type Process$E<T extends readonly unknown[]> = {
|
|
|
13988
13988
|
* type T = ValueOrReturns<[true, "foo", () => "bar"]>;
|
|
13989
13989
|
* ```
|
|
13990
13990
|
*/
|
|
13991
|
-
type ValueOrReturnValue<TEval> = TEval extends readonly unknown[] ? Process$
|
|
13991
|
+
type ValueOrReturnValue<TEval> = TEval extends readonly unknown[] ? Process$F<TEval> : Process$F<[TEval]>[0];
|
|
13992
13992
|
|
|
13993
13993
|
type GetKeys$1<T extends AnyFunction> = FnProps<T> extends Dictionary ? Keys<FnProps<T>> extends readonly ObjectKey[] ? Keys<FnProps<T>> extends readonly (keyof FnProps<T>)[] ? Keys<FnProps<T>> : never : never : never;
|
|
13994
13994
|
/**
|
|
@@ -13997,10 +13997,10 @@ type GetKeys$1<T extends AnyFunction> = FnProps<T> extends Dictionary ? Keys<FnP
|
|
|
13997
13997
|
* Widens any _scalar_ type `T`.
|
|
13998
13998
|
*/
|
|
13999
13999
|
type WidenScalar<T extends Scalar> = T extends string ? string : T extends number ? number : T extends boolean ? boolean : T extends symbol ? symbol : T extends null ? null : never;
|
|
14000
|
-
type Process$
|
|
14001
|
-
type WidenObj<T extends Dictionary, TKeys extends readonly (keyof T)[], TResults extends Dictionary = EmptyObject> = [] extends TKeys ? TResults : WidenObj<T, AfterFirst<TKeys>, TResults & Record<First<TKeys>, T[First<TKeys>] extends TypedFunction ? WidenFn<IsNarrowingFn<T[First<TKeys>]>, Parameters<T[First<TKeys>]>, ReturnType<T[First<TKeys>]>, ExpandDictionary<FnProps<T[First<TKeys>]>>> : IsLiteral<T[First<TKeys>]> extends true ? WidenLiteral<T[First<TKeys>]> : Process$
|
|
14000
|
+
type Process$E<T> = T extends Scalar ? WidenScalar<T> : T extends unknown[] ? T extends (infer Type)[] ? IsUnion<Type> extends true ? WidenUnion<Type>[] : Type extends unknown[] ? WidenTuple<Type> : T : never : T extends AnyFunction ? GetKeys$1<T>["length"] extends 0 ? RemoveFnProps<T> : RemoveFnProps<T> & ExpandRecursively<WidenObj<FnProps<T>, GetKeys$1<T>>> : T;
|
|
14001
|
+
type WidenObj<T extends Dictionary, TKeys extends readonly (keyof T)[], TResults extends Dictionary = EmptyObject> = [] extends TKeys ? TResults : WidenObj<T, AfterFirst<TKeys>, TResults & Record<First<TKeys>, T[First<TKeys>] extends TypedFunction ? WidenFn<IsNarrowingFn<T[First<TKeys>]>, Parameters<T[First<TKeys>]>, ReturnType<T[First<TKeys>]>, ExpandDictionary<FnProps<T[First<TKeys>]>>> : IsLiteral<T[First<TKeys>]> extends true ? WidenLiteral<T[First<TKeys>]> : Process$E<T[First<TKeys>]>>>;
|
|
14002
14002
|
type WidenTuple<T extends readonly unknown[]> = {
|
|
14003
|
-
[K in keyof T]: IsLiteral<T[K]> extends true ? WidenLiteral<T[K]> : Process$
|
|
14003
|
+
[K in keyof T]: IsLiteral<T[K]> extends true ? WidenLiteral<T[K]> : Process$E<T[K]>;
|
|
14004
14004
|
};
|
|
14005
14005
|
type WidenFnParams<T extends readonly unknown[]> = {
|
|
14006
14006
|
[K in keyof T]: IsLiteral<T[K]> extends true ? WidenLiteral<T[K]> : IsLiteralUnion<T[K]> extends true ? WidenUnion<T[K]> : T[K];
|
|
@@ -14033,7 +14033,7 @@ type WidenContainer<T extends Container, TForce extends boolean = false> = [
|
|
|
14033
14033
|
* **Note:** should you want the container values to be fully widened you
|
|
14034
14034
|
* can set `TForce` to true.
|
|
14035
14035
|
*/
|
|
14036
|
-
type Widen<T, TForce extends boolean = false> = [IsUnion<T>] extends [true] ? WidenUnion<T> : T extends Container ? WidenContainer<T, TForce> : T extends Scalar ? WidenScalar<T> : Process$
|
|
14036
|
+
type Widen<T, TForce extends boolean = false> = [IsUnion<T>] extends [true] ? WidenUnion<T> : T extends Container ? WidenContainer<T, TForce> : T extends Scalar ? WidenScalar<T> : Process$E<T>;
|
|
14037
14037
|
|
|
14038
14038
|
type ProcessArr<T extends readonly unknown[]> = {
|
|
14039
14039
|
[K in keyof T]: Widen<T[K]>;
|
|
@@ -14071,7 +14071,7 @@ type WidenValues<T extends Container> = T extends readonly unknown[] ? ProcessAr
|
|
|
14071
14071
|
type WithDefault<TVal, TDef, TPolicy extends "nothing" | "falsy" = "nothing"> = TPolicy extends "nothing" ? If<Extends<TVal, Nothing>, TDef, TVal> : TPolicy extends "falsy" ? If<IsFalsy<TVal>, TDef, TVal> : never;
|
|
14072
14072
|
|
|
14073
14073
|
type Tighten<T extends string> = T extends ` ${infer Rest extends string}` ? T extends ` ${infer Double extends string}` ? Double : Rest : T;
|
|
14074
|
-
type Process$
|
|
14074
|
+
type Process$D<T extends string, Result extends readonly unknown[] = []> = T extends `${infer Element},${infer Rest}` ? Process$D<Rest, [
|
|
14075
14075
|
...Result,
|
|
14076
14076
|
Tighten<Element> extends NumberLike ? AsNumber<Tighten<Element>> : Tighten<Element>
|
|
14077
14077
|
]> : [
|
|
@@ -14102,7 +14102,7 @@ type ProcessUnionStr<T extends string, Result extends string | number = never> =
|
|
|
14102
14102
|
*
|
|
14103
14103
|
* **Related:** `CsvToTupleStr`, `CsvToUnion`
|
|
14104
14104
|
*/
|
|
14105
|
-
type CsvToTuple<T extends string> = Process$
|
|
14105
|
+
type CsvToTuple<T extends string> = Process$D<T>;
|
|
14106
14106
|
/**
|
|
14107
14107
|
* **CsvToTupleStr**`<T>`
|
|
14108
14108
|
*
|
|
@@ -14139,14 +14139,14 @@ type CsvToStrUnion<T extends string> = ProcessUnionStr<T>;
|
|
|
14139
14139
|
*/
|
|
14140
14140
|
type CsvToJsonTuple<T extends string> = ProcessJsonTuple<T>;
|
|
14141
14141
|
|
|
14142
|
-
type Process$
|
|
14142
|
+
type Process$C<A extends NumberLike, B extends NumberLike> = If<HaveSameNumericSign<A, B>, If<IsGreaterThan<Abs<A>, Abs<B>>, Add<Abs<A>, AsNegativeNumber<B>>, Add<Abs<B>, AsNegativeNumber<A>>>, Add<Abs<A>, Abs<B>>>;
|
|
14143
14143
|
/**
|
|
14144
14144
|
* **Delta**`<A,B>`
|
|
14145
14145
|
*
|
|
14146
14146
|
* Provides the _delta_ between two numbers (including
|
|
14147
14147
|
* between negative numbers).
|
|
14148
14148
|
*/
|
|
14149
|
-
type Delta<A extends NumberLike, B extends NumberLike> = A extends `${number}` ? Process$
|
|
14149
|
+
type Delta<A extends NumberLike, B extends NumberLike> = A extends `${number}` ? Process$C<A, B> : AsNumber<Process$C<A, B>>;
|
|
14150
14150
|
type AsLit<T extends NumberLike> = T extends `${number}` ? T : T extends number ? `${T}` : never;
|
|
14151
14151
|
type ProcessNeg<A extends `${number}`, B extends `${number}`> = Delta<A, B> extends `${infer Num extends number}` ? StartsWith<Num, "-"> extends true ? `${Num}` : `-${Num}` : never;
|
|
14152
14152
|
type NegDelta<A extends NumberLike, B extends NumberLike> = A extends number ? ParseInt<ProcessNeg<AsLit<A>, AsLit<B>>> : ProcessNeg<AsLit<A>, AsLit<B>>;
|
|
@@ -14273,7 +14273,7 @@ type Negative<T extends number | `${number}`> = T extends `${number}` ? AsString
|
|
|
14273
14273
|
*/
|
|
14274
14274
|
type NextDigit<T extends Digit | NumericChar> = T extends `${NumericChar}` ? ToString<NextDigit<AsNumber<T>>> : T extends 0 ? 1 : T extends 1 ? 2 : T extends 2 ? 3 : T extends 3 ? 4 : T extends 4 ? 5 : T extends 5 ? 6 : T extends 6 ? 7 : T extends 7 ? 8 : T extends 8 ? 9 : T extends 9 ? 0 : never;
|
|
14275
14275
|
|
|
14276
|
-
type Process$
|
|
14276
|
+
type Process$B<L, C extends unknown[] = [], R = L> = C["length"] extends L ? R : Process$B<L, [...C, 0], C["length"] | R>;
|
|
14277
14277
|
/**
|
|
14278
14278
|
* **NumericRange**`<TLow,THigh>`
|
|
14279
14279
|
*
|
|
@@ -14284,7 +14284,7 @@ type Process$A<L, C extends unknown[] = [], R = L> = C["length"] extends L ? R :
|
|
|
14284
14284
|
* type Range = NumericRange<2,7>;
|
|
14285
14285
|
* ```
|
|
14286
14286
|
*/
|
|
14287
|
-
type NumericRange<TLow, THigh> = TLow | Exclude<Process$
|
|
14287
|
+
type NumericRange<TLow, THigh> = TLow | Exclude<Process$B<THigh>, Process$B<TLow>>;
|
|
14288
14288
|
|
|
14289
14289
|
/**
|
|
14290
14290
|
* **PriorDigit**`<T>`
|
|
@@ -14306,13 +14306,13 @@ type PriorDigit<T extends Digit | NumericChar> = T extends `${NumericChar}` ? To
|
|
|
14306
14306
|
type ConvertNumber<A extends number, B extends number> = HaveSameNumericSign<A, B> extends true ? IsNegativeNumber<A> extends true ? Add<Abs<A>, Abs<B>> extends NumberLike ? AsNegativeNumber<Add<Abs<A>, Abs<B>>> : never : IsNegativeNumber<B> extends true ? Add<A, B> : IsNegativeNumber<A> extends true ? IsGreaterThanOrEqual<Abs<B>, Abs<A>> extends true ? Delta<A, B> : Add<B, A> : IsGreaterThanOrEqual<Abs<B>, Abs<A>> extends true ? NegDelta<A, B> : Delta<A, B> : never;
|
|
14307
14307
|
type SummedStrings<A extends number, B extends number> = AsNegativeNumber<Add<A, B>>;
|
|
14308
14308
|
type ConvertString<A extends `${number}`, B extends `${number}`> = HaveSameNumericSign<A, B> extends true ? IsNegativeNumber<A> extends true ? Add<Abs<A>, Abs<B>> extends NumberLike ? SummedStrings<ParseInt<Abs<A>>, ParseInt<Abs<B>>> : never : IsNegativeNumber<B> extends true ? Add<A, B> : IsNegativeNumber<A> extends true ? IsGreaterThanOrEqual<Abs<B>, Abs<A>> extends true ? Delta<A, B> : Add<B, A> : IsGreaterThanOrEqual<Abs<B>, Abs<A>> extends true ? NegDelta<A, B> : Delta<A, B> : never;
|
|
14309
|
-
type Process$
|
|
14309
|
+
type Process$A<A extends NumberLike, B extends NumberLike> = A extends number ? B extends number ? ConvertNumber<A, B> : ConvertNumber<A, ParseInt<B>> : A extends `${number}` ? B extends `${number}` ? ConvertString<A, B> : ConvertString<A, `${As<B, number>}`> : never;
|
|
14310
14310
|
/**
|
|
14311
14311
|
* **Subtract**`<A,B>`
|
|
14312
14312
|
*
|
|
14313
14313
|
* Subtracts the value of `B` _from_ `A`.
|
|
14314
14314
|
*/
|
|
14315
|
-
type Subtract<A extends NumberLike, B extends NumberLike> = Or<[IsWideType<A>, IsWideType<B>]> extends true ? A extends number ? number : `${number}` : Process$
|
|
14315
|
+
type Subtract<A extends NumberLike, B extends NumberLike> = Or<[IsWideType<A>, IsWideType<B>]> extends true ? A extends number ? number : `${number}` : Process$A<A, B>;
|
|
14316
14316
|
|
|
14317
14317
|
type ToIntegerOp = "truncate" | "round";
|
|
14318
14318
|
type Truncate<T extends `${number}`> = T extends `${number}.${number}` ? T extends `${infer Q}.${number}` ? Q & `${number}` : never : T;
|
|
@@ -14475,7 +14475,7 @@ type ConvertSet<TSet extends readonly unknown[], TConversions extends Conversion
|
|
|
14475
14475
|
type SingleFilter$2<TList extends readonly unknown[], TComparator, TProp extends string, TOp extends ComparatorOperation, Result extends unknown[] = []> = TList extends [infer Head, ...infer Rest] ? [
|
|
14476
14476
|
Compare$1<Get$1<Head, TProp>, TOp, TComparator>
|
|
14477
14477
|
] extends [true] ? SingleFilter$2<Rest, TComparator, TProp, TOp, Result> : SingleFilter$2<Rest, TComparator, TProp, TOp, [...Result, Head]> : Result;
|
|
14478
|
-
type Process$
|
|
14478
|
+
type Process$z<TList extends readonly unknown[], TComparator, TProp extends string, TOp extends ComparatorOperation> = TList extends unknown[] ? SingleFilter$2<TList, TComparator, TProp, TOp> : TList extends readonly unknown[] ? Readonly<SingleFilter$2<[...TList], TComparator, TProp, TOp>> : never;
|
|
14479
14479
|
/**
|
|
14480
14480
|
* **FilterByProp**`<TList, TComparator, TProp, [TOp]>`
|
|
14481
14481
|
*
|
|
@@ -14488,9 +14488,9 @@ type Process$y<TList extends readonly unknown[], TComparator, TProp extends stri
|
|
|
14488
14488
|
*
|
|
14489
14489
|
* **Related:** `RetainByProp`, `Filter`, `RetainFromList`, `RemoveFromList`, `FilterProps`
|
|
14490
14490
|
*/
|
|
14491
|
-
type FilterByProp<TList extends readonly unknown[], TComparator, TProp extends string, TOp extends ComparatorOperation = "extends"> = IsDotPath<TProp> extends false ? Throw<"invalid-dot-path", `the property value TProp must be a valid dotpath but "${TProp}" is not valid!`> : TList extends readonly unknown[] ? IfNever<TComparator, RemoveNever<TList>, TComparator extends any[] ? Process$
|
|
14491
|
+
type FilterByProp<TList extends readonly unknown[], TComparator, TProp extends string, TOp extends ComparatorOperation = "extends"> = IsDotPath<TProp> extends false ? Throw<"invalid-dot-path", `the property value TProp must be a valid dotpath but "${TProp}" is not valid!`> : TList extends readonly unknown[] ? IfNever<TComparator, RemoveNever<TList>, TComparator extends any[] ? Process$z<TList, TComparator[number], TProp, TOp> : Process$z<TList, TComparator, TProp, TOp>> : never;
|
|
14492
14492
|
|
|
14493
|
-
type Process$
|
|
14493
|
+
type Process$y<T extends readonly unknown[]> = RemoveMarked<{
|
|
14494
14494
|
[K in keyof T]: IsLiteral<T[K]> extends true ? Constant<"Marked"> : T[K];
|
|
14495
14495
|
}>;
|
|
14496
14496
|
/**
|
|
@@ -14504,7 +14504,7 @@ type Process$x<T extends readonly unknown[]> = RemoveMarked<{
|
|
|
14504
14504
|
*
|
|
14505
14505
|
* **Related:** `Filter`, `FilterWideTypes`, `RetainLiterals`
|
|
14506
14506
|
*/
|
|
14507
|
-
type FilterLiterals<T extends readonly unknown[]> = Process$
|
|
14507
|
+
type FilterLiterals<T extends readonly unknown[]> = Process$y<T> extends readonly unknown[] ? Process$y<T> : never;
|
|
14508
14508
|
|
|
14509
14509
|
/**
|
|
14510
14510
|
* **FilterWideTypes**`<T>`
|
|
@@ -14588,12 +14588,12 @@ type WideFlatten<T> = T extends (infer Type)[] ? Type extends unknown[] ? Type :
|
|
|
14588
14588
|
* Just returns `TList` "as is" if it's not a a Tuple or
|
|
14589
14589
|
* Union type.
|
|
14590
14590
|
*/
|
|
14591
|
-
type Process$
|
|
14591
|
+
type Process$x<TList, TLevel extends 1 | 2 | 3 = 1> = TList extends readonly unknown[] ? IsTuple<TList> extends true ? FlattenTuple<TList, TLevel> : WideFlatten<TList> : IsUnion<TList> extends true ? FlattenUnion<TList> : TList;
|
|
14592
14592
|
/**
|
|
14593
14593
|
* converts a wide array to a scalar and tuple
|
|
14594
14594
|
* to a union type
|
|
14595
14595
|
*/
|
|
14596
|
-
type ToScalar<TList, TLevel extends 1 | 2 | 3> = [IsTuple<Process$
|
|
14596
|
+
type ToScalar<TList, TLevel extends 1 | 2 | 3> = [IsTuple<Process$x<TList>>] extends [true] ? TupleToUnion<Process$x<TList, TLevel>> : Process$x<TList, TLevel> extends (infer Type)[] ? Type : never;
|
|
14597
14597
|
type IterateScalar<T extends readonly unknown[], TLevel extends 1 | 2 | 3> = TupleToUnion<{
|
|
14598
14598
|
[K in keyof T]: T[K] extends unknown[] ? ToScalar<T[K], TLevel> : T[K];
|
|
14599
14599
|
}>;
|
|
@@ -14609,15 +14609,15 @@ type IterateScalar<T extends readonly unknown[], TLevel extends 1 | 2 | 3> = Tup
|
|
|
14609
14609
|
* if you set `ToScalar` to `true` then it will flatten right out of being an array
|
|
14610
14610
|
* into a union type
|
|
14611
14611
|
*/
|
|
14612
|
-
type Flatten<TList, TLevel extends 1 | 2 | 3 = 1, ToScalar extends boolean = false> = [ToScalar] extends [false] ? Process$
|
|
14613
|
-
IsUnion<Process$
|
|
14614
|
-
] extends [true] ? IterateScalar<UnionToTuple$1<Process$
|
|
14612
|
+
type Flatten<TList, TLevel extends 1 | 2 | 3 = 1, ToScalar extends boolean = false> = [ToScalar] extends [false] ? Process$x<TList, TLevel> : [
|
|
14613
|
+
IsUnion<Process$x<TList, TLevel>>
|
|
14614
|
+
] extends [true] ? IterateScalar<UnionToTuple$1<Process$x<TList, TLevel>>, TLevel> : [IsTuple<Process$x<TList, TLevel>>] extends [true] ? TupleToUnion<Process$x<TList, TLevel>> : Process$x<TList, TLevel> extends (infer Type)[] ? Type : never;
|
|
14615
14615
|
|
|
14616
14616
|
/**
|
|
14617
14617
|
* extract props from functions
|
|
14618
14618
|
*/
|
|
14619
14619
|
type F<T> = T extends TypedFunction ? FnProps<T> : T;
|
|
14620
|
-
type Process$
|
|
14620
|
+
type Process$w<TList extends readonly unknown[], TKey extends string> = RemoveNever<{
|
|
14621
14621
|
[K in keyof TList]: [TKey] extends [keyof F<TList[K]>] ? [IndexOf<F<TList[K]>, TKey>] extends [undefined] ? never : IndexOf<F<TList[K]>, TKey> : [IsValidDotPath<F<TList[K]>, TKey>] extends [true] ? Mutable<Get$1<F<TList[K]>, TKey, never>> : never;
|
|
14622
14622
|
}>;
|
|
14623
14623
|
/**
|
|
@@ -14639,7 +14639,7 @@ type Process$v<TList extends readonly unknown[], TKey extends string> = RemoveNe
|
|
|
14639
14639
|
* ], "name">
|
|
14640
14640
|
* ```
|
|
14641
14641
|
*/
|
|
14642
|
-
type GetEach<TList extends readonly unknown[], TKey extends string | null> = TKey extends null ? TList : TKey extends "" ? TList : IsReadonlyArray<TList> extends true ? Readonly<Process$
|
|
14642
|
+
type GetEach<TList extends readonly unknown[], TKey extends string | null> = TKey extends null ? TList : TKey extends "" ? TList : IsReadonlyArray<TList> extends true ? Readonly<Process$w<[...TList], Exclude<TKey, null>>> : Process$w<TList, Exclude<TKey, null>>;
|
|
14643
14643
|
|
|
14644
14644
|
type Override<TValue, TOverride> = TOverride extends Constant<"no-override"> ? TValue : TValue extends ErrorCondition<"invalid-index"> ? TOverride : TValue;
|
|
14645
14645
|
type NegativeIndex<TValue extends readonly unknown[], TIdx extends number> = Decrement<Abs<TIdx>> extends number ? If<IsValidIndex<TValue, Decrement<Abs<TIdx>>>, TValue[Decrement<Abs<TIdx>>], Throw<"invalid-index", `Use of a negative index [${AsString<TIdx>}] was unsuccessful in matching a valid index`, "IndexOf", {
|
|
@@ -14664,7 +14664,7 @@ type HandleObj<TValue extends Dictionary, TIdx extends PropertyKey> = TIdx exten
|
|
|
14664
14664
|
key: TIdx;
|
|
14665
14665
|
library: "inferred-types/constants";
|
|
14666
14666
|
}>;
|
|
14667
|
-
type Process$
|
|
14667
|
+
type Process$v<TValue, TIdx extends PropertyKey | null> = If<IsNull<TIdx>, TValue, TValue extends readonly unknown[] ? If<IsValidIndex<TValue, AsPropertyKey<TIdx>>, HandleArr<TValue, AsPropertyKey<TIdx>>, Throw<"invalid-index", `Call to IndexOf<DescribeType<TValue>,${AsString<TIdx>}> is not allowed as an tuple based container must receive either null or numeric index value.`, "IndexOf", {
|
|
14668
14668
|
library: "inferred-types/constants";
|
|
14669
14669
|
container: TValue;
|
|
14670
14670
|
key: TIdx;
|
|
@@ -14693,9 +14693,9 @@ type Process$u<TValue, TIdx extends PropertyKey | null> = If<IsNull<TIdx>, TValu
|
|
|
14693
14693
|
* **Errors:** produces an `ErrorCondition<"invalid-index">` when an a bad index value
|
|
14694
14694
|
* is passed in for the given container
|
|
14695
14695
|
*/
|
|
14696
|
-
type IndexOf<TValue, TIdx extends PropertyKey | null, TOverride = Constant<"no-override">> = TIdx extends null ? TValue : Override<Process$
|
|
14696
|
+
type IndexOf<TValue, TIdx extends PropertyKey | null, TOverride = Constant<"no-override">> = TIdx extends null ? TValue : Override<Process$v<TValue, TIdx>, TOverride>;
|
|
14697
14697
|
|
|
14698
|
-
type Process$
|
|
14698
|
+
type Process$u<TTup extends Tuple, TResult = First<TTup>> = [] extends TTup ? TResult : Process$u<AfterFirst<TTup>, TResult & First<TTup>>;
|
|
14699
14699
|
/**
|
|
14700
14700
|
* **Intersect**`<TList>`
|
|
14701
14701
|
*
|
|
@@ -14703,7 +14703,7 @@ type Process$t<TTup extends Tuple, TResult = First<TTup>> = [] extends TTup ? TR
|
|
|
14703
14703
|
*
|
|
14704
14704
|
* **Related:** `Intersection`, `IntersectAll`
|
|
14705
14705
|
*/
|
|
14706
|
-
type Intersect$1<TList extends Tuple> = Process$
|
|
14706
|
+
type Intersect$1<TList extends Tuple> = Process$u<TList>;
|
|
14707
14707
|
|
|
14708
14708
|
type Intersect<TList extends readonly unknown[], TIntersect extends Narrowable, TResults extends unknown[] = []> = [] extends TList ? TResults : Intersect<AfterFirst<TList>, TIntersect, [
|
|
14709
14709
|
...TResults,
|
|
@@ -14796,14 +14796,14 @@ interface FnMeta<TFn extends AnyFunction = AnyFunction, TArgs extends readonly a
|
|
|
14796
14796
|
isNarrowingFn: IsNarrowingFn<TFn>;
|
|
14797
14797
|
}
|
|
14798
14798
|
|
|
14799
|
-
type Process$
|
|
14799
|
+
type Process$t<T extends AnyFunction> = IsEqual<T, Function> extends true ? EmptyObject : keyof T extends ObjectKey ? Pick<T, keyof T> : never;
|
|
14800
14800
|
/**
|
|
14801
14801
|
* **FnProps**`<T>`
|
|
14802
14802
|
*
|
|
14803
14803
|
* Return a dictionary of key/value pairs from a function. If no key/value
|
|
14804
14804
|
* pairs are assigned to the function base then an empty object is returned.
|
|
14805
14805
|
*/
|
|
14806
|
-
type FnProps<T extends AnyFunction> = Process$
|
|
14806
|
+
type FnProps<T extends AnyFunction> = Process$t<T>;
|
|
14807
14807
|
|
|
14808
14808
|
type FnDefn = [fn: AnyFunction] | [fn: AnyFunction, desc: string] | [fn: AnyFunction, props: Record<ObjectKey, unknown>];
|
|
14809
14809
|
/**
|
|
@@ -16061,7 +16061,7 @@ interface VueRef<T = any> {
|
|
|
16061
16061
|
*/
|
|
16062
16062
|
type WrapperFn<TFn extends TypedFunction, TTransform extends <TRtn extends ReturnType<TFn>>(rtn: TRtn) => unknown, TState extends Container | Unset = Unset> = If<IsUnset<TState>, FnFrom<Parameters<TFn>, ReturnType<AsNarrowingFn<TTransform>>>, <T extends TState>(state: T) => FnFrom<Parameters<TFn>, ReturnType<AsNarrowingFn<TTransform>>>>;
|
|
16063
16063
|
|
|
16064
|
-
type Process$
|
|
16064
|
+
type Process$s<TValues extends readonly (boolean | LogicFunction)[], _TParams extends readonly unknown[] = []> = {
|
|
16065
16065
|
[K in keyof TValues]: TValues[K] extends ((...args: any[]) => boolean) ? ReturnType<TValues[K]> : TValues[K];
|
|
16066
16066
|
};
|
|
16067
16067
|
/**
|
|
@@ -16074,7 +16074,7 @@ type Process$r<TValues extends readonly (boolean | LogicFunction)[], _TParams ex
|
|
|
16074
16074
|
*
|
|
16075
16075
|
* **Related**: `ReturnTypes` and `TruthyReturns`
|
|
16076
16076
|
*/
|
|
16077
|
-
type LogicalReturns<TValues extends readonly (boolean | LogicFunction)[], _TParams extends readonly unknown[] = []> = Process$
|
|
16077
|
+
type LogicalReturns<TValues extends readonly (boolean | LogicFunction)[], _TParams extends readonly unknown[] = []> = Process$s<TValues, _TParams> extends readonly boolean[] ? Process$s<TValues, _TParams> : never;
|
|
16078
16078
|
|
|
16079
16079
|
type Reduce<T extends readonly ([string, number])[], TMax extends number = 0, TVal extends string = ""> = [] extends T ? TVal : Reduce<AfterFirst<T>, First<T> extends [string, infer Len extends number] ? If<IsGreaterThan<Len, TMax>, Len, TMax> : TMax, First<T> extends [infer Val extends string, infer Len extends number] ? If<IsGreaterThan<Len, TMax>, Val, TVal> : TVal>;
|
|
16080
16080
|
/**
|
|
@@ -16094,7 +16094,7 @@ type Recurse<TList extends Tuple, TResults extends Tuple = []> = [] extends TLis
|
|
|
16094
16094
|
type Convert$1<TList extends Tuple> = Length<TList> extends 0 ? number[] : Recurse<{
|
|
16095
16095
|
[K in keyof TList]: K;
|
|
16096
16096
|
}>;
|
|
16097
|
-
type Process$
|
|
16097
|
+
type Process$r<TList extends Tuple> = If<IsReadonlyArray<TList>, TList["length"] extends 0 ? number[] : Readonly<Convert$1<TList>>, Convert$1<TList>>;
|
|
16098
16098
|
/**
|
|
16099
16099
|
* **NumericKeys**<`TList`>
|
|
16100
16100
|
*
|
|
@@ -16109,7 +16109,7 @@ type Process$q<TList extends Tuple> = If<IsReadonlyArray<TList>, TList["length"]
|
|
|
16109
16109
|
*
|
|
16110
16110
|
* **Related:** `Keys`
|
|
16111
16111
|
*/
|
|
16112
|
-
type NumericKeys<TList extends Tuple> = Process$
|
|
16112
|
+
type NumericKeys<TList extends Tuple> = Process$r<TList> extends readonly number[] ? Process$r<TList> : never;
|
|
16113
16113
|
|
|
16114
16114
|
type _Get<T, K, Acc = never> = K extends `${infer A}.${infer B}` ? A extends keyof T ? _Get<T[A], B, _Get<T[A], B>> : Acc : K extends keyof T ? _Get<T[K], K, T[K]> : Acc;
|
|
16115
16115
|
/**
|
|
@@ -16127,7 +16127,7 @@ type Get$1<TContainer, TDotPath, TDefVal = undefined> = IsNever<_Get<TContainer,
|
|
|
16127
16127
|
type SingleFilter$1<TList extends readonly unknown[], TComparator, TProp extends string, TOp extends ComparatorOperation, Result extends unknown[] = []> = TList extends [infer Head, ...infer Rest] ? [
|
|
16128
16128
|
Compare$1<Get$1<Head, TProp>, TOp, TComparator>
|
|
16129
16129
|
] extends [true] ? SingleFilter$1<Rest, TComparator, TProp, TOp, [...Result, Head]> : SingleFilter$1<Rest, TComparator, TProp, TOp, Result> : Result;
|
|
16130
|
-
type Process$
|
|
16130
|
+
type Process$q<TList extends unknown[] | readonly unknown[], TComparator, TProp extends string, TOp extends ComparatorOperation> = TList extends unknown[] ? SingleFilter$1<TList, TComparator, TProp, TOp> : TList extends readonly unknown[] ? Readonly<SingleFilter$1<[...TList], TComparator, TProp, TOp>> : never;
|
|
16131
16131
|
/**
|
|
16132
16132
|
* **RetainByProp**`<TList, TComparator, TProp, [TOp]>`
|
|
16133
16133
|
*
|
|
@@ -16155,7 +16155,7 @@ type Process$p<TList extends unknown[] | readonly unknown[], TComparator, TProp
|
|
|
16155
16155
|
*
|
|
16156
16156
|
* **Related:** `FilterByProp`, `Filter`, `RetainFromList`, `RemoveFromList`
|
|
16157
16157
|
*/
|
|
16158
|
-
type RetainByProp<TList extends readonly unknown[], TComparator, TProp extends string, TOp extends ComparatorOperation = "extends"> = IsDotPath<TProp> extends false ? Throw<"invalid-dot-path", `the property value TProp must be a valid dotpath but "${TProp}" is not valid!`> : TList extends readonly unknown[] ? IfNever<TComparator, RemoveNever<TList>, If<IsArray<TComparator>, Process$
|
|
16158
|
+
type RetainByProp<TList extends readonly unknown[], TComparator, TProp extends string, TOp extends ComparatorOperation = "extends"> = IsDotPath<TProp> extends false ? Throw<"invalid-dot-path", `the property value TProp must be a valid dotpath but "${TProp}" is not valid!`> : TList extends readonly unknown[] ? IfNever<TComparator, RemoveNever<TList>, If<IsArray<TComparator>, Process$q<TList, TupleToUnion<TComparator>, TProp, TOp>, Process$q<TList, TComparator, TProp, TOp>>> : never;
|
|
16159
16159
|
|
|
16160
16160
|
type RevAcc<TInput extends readonly unknown[], TResults extends readonly unknown[] = []> = [] extends TInput ? TResults : RevAcc<AfterFirst<TInput>, [
|
|
16161
16161
|
First<TInput>,
|
|
@@ -16236,7 +16236,7 @@ type _Pop<TVal extends Tuple> = TVal extends [...(infer Rest), unknown] ? Rest :
|
|
|
16236
16236
|
*/
|
|
16237
16237
|
type Pop<TList extends Tuple | string> = TList extends string ? IsWideType<TList> extends true ? string : IsStringLiteral<TList> extends true ? TList extends string ? TList extends "" ? "" : Chars<TList> extends readonly string[] ? Concat<_Pop<Chars<TList>>> : never : never : string : _Pop<Exclude<TList, string>>;
|
|
16238
16238
|
|
|
16239
|
-
type Process$
|
|
16239
|
+
type Process$p<TList extends readonly unknown[], TValue> = [
|
|
16240
16240
|
...TList,
|
|
16241
16241
|
TValue
|
|
16242
16242
|
];
|
|
@@ -16247,7 +16247,7 @@ type Process$o<TList extends readonly unknown[], TValue> = [
|
|
|
16247
16247
|
*
|
|
16248
16248
|
* - If you want to make the push conditional you can add `TCondition`
|
|
16249
16249
|
*/
|
|
16250
|
-
type Push<TList extends readonly unknown[], TVal, TCondition = true> = [TCondition] extends [true] ? As<Process$
|
|
16250
|
+
type Push<TList extends readonly unknown[], TVal, TCondition = true> = [TCondition] extends [true] ? As<Process$p<TList, TVal>, readonly unknown[]> : TList;
|
|
16251
16251
|
|
|
16252
16252
|
/**
|
|
16253
16253
|
* **ReplaceLast**`<TList,TVal>`
|
|
@@ -16260,7 +16260,7 @@ type ReplaceLast<TList extends readonly any[], TVal> = Pop<TList> extends readon
|
|
|
16260
16260
|
* Iterates over each element of the Tuple
|
|
16261
16261
|
*/
|
|
16262
16262
|
type SingleFilter<TList extends readonly unknown[], TFilter, TOp extends ComparatorOperation, Result extends unknown[] = []> = TList extends [infer Head, ...infer Rest] ? [Compare$1<Head, TOp, TFilter>] extends [true] ? SingleFilter<Rest, TFilter, TOp, [...Result, Head]> : SingleFilter<Rest, TFilter, TOp, Result> : Result;
|
|
16263
|
-
type Process$
|
|
16263
|
+
type Process$o<TList extends readonly unknown[], TComparator, TOp extends ComparatorOperation> = TList extends unknown[] ? SingleFilter<TList, TComparator, TOp> : TList extends readonly unknown[] ? Readonly<SingleFilter<[...TList], TComparator, TOp>> : never;
|
|
16264
16264
|
type PrepList<T extends readonly unknown[], O extends ComparatorOperation> = Or<[
|
|
16265
16265
|
IsEqual<O, "contains">,
|
|
16266
16266
|
IsEqual<O, "startsWith">,
|
|
@@ -16279,9 +16279,9 @@ type PrepList<T extends readonly unknown[], O extends ComparatorOperation> = Or<
|
|
|
16279
16279
|
*
|
|
16280
16280
|
* **Related:** `Filter`
|
|
16281
16281
|
*/
|
|
16282
|
-
type Retain<TList extends readonly unknown[], TComparator, TOp extends ComparatorOperation = "extends"> = PrepList<TList, TOp> extends readonly unknown[] ? [TComparator] extends [unknown[]] ? Process$
|
|
16282
|
+
type Retain<TList extends readonly unknown[], TComparator, TOp extends ComparatorOperation = "extends"> = PrepList<TList, TOp> extends readonly unknown[] ? [TComparator] extends [unknown[]] ? Process$o<PrepList<TList, TOp>, TupleToUnion<TComparator>, TOp> : Process$o<PrepList<TList, TOp>, TComparator, TOp> : never;
|
|
16283
16283
|
|
|
16284
|
-
type Process$
|
|
16284
|
+
type Process$n<T extends readonly unknown[]> = RemoveMarked<{
|
|
16285
16285
|
[K in keyof T]: If<IsLiteral<T[K]>, T[K], Constant<"Marked">>;
|
|
16286
16286
|
}>;
|
|
16287
16287
|
/**
|
|
@@ -16294,9 +16294,9 @@ type Process$m<T extends readonly unknown[]> = RemoveMarked<{
|
|
|
16294
16294
|
*
|
|
16295
16295
|
* **Related:** `Retain`, `FilterLiterals`, `RetainWideTypes`
|
|
16296
16296
|
*/
|
|
16297
|
-
type RetainLiterals<T extends readonly unknown[]> = Process$
|
|
16297
|
+
type RetainLiterals<T extends readonly unknown[]> = Process$n<T> extends readonly unknown[] ? Process$n<T> : never;
|
|
16298
16298
|
|
|
16299
|
-
type Process$
|
|
16299
|
+
type Process$m<T extends readonly unknown[]> = RemoveMarked<{
|
|
16300
16300
|
[K in keyof T]: If<IsWideType<T[K]>, T[K], Constant<"Marked">>;
|
|
16301
16301
|
}>;
|
|
16302
16302
|
/**
|
|
@@ -16310,7 +16310,7 @@ type Process$l<T extends readonly unknown[]> = RemoveMarked<{
|
|
|
16310
16310
|
*
|
|
16311
16311
|
* **Related:** `Retain`, `RetainLiterals`, `FilterWideTypes`
|
|
16312
16312
|
*/
|
|
16313
|
-
type RetainWideTypes<T extends readonly unknown[]> = Process$
|
|
16313
|
+
type RetainWideTypes<T extends readonly unknown[]> = Process$m<T> extends readonly unknown[] ? Process$m<T> : never;
|
|
16314
16314
|
|
|
16315
16315
|
/**
|
|
16316
16316
|
* **ReturnTypes**`<T>`
|
|
@@ -16365,8 +16365,8 @@ type RemoveStart<TList extends readonly unknown[], TStart extends number> = TSta
|
|
|
16365
16365
|
...(infer REST)
|
|
16366
16366
|
] ? REST : Throw<"invalid-start-index">;
|
|
16367
16367
|
type TruncateAtLen<TList extends readonly unknown[], TLen extends number> = IsNegativeNumber<TLen> extends true ? If<IsGreaterThan<Abs<TLen>, TList["length"]>, never, TakeFirst<TList, Add<TList["length"], TLen>>> : If<IsGreaterThanOrEqual<TLen, TList["length"]>, TList, TakeFirst<TList, TLen>>;
|
|
16368
|
-
type Process$
|
|
16369
|
-
type PreProcess<TList extends readonly unknown[], TStart extends number, TLen extends number | undefined = undefined> = TList extends string ? Chars<TList> extends readonly string[] ? Concat<As<Process$
|
|
16368
|
+
type Process$l<TList extends readonly unknown[], TStart extends number, TLen extends number | undefined> = TList extends readonly unknown[] ? RemoveStart<TList, TStart> extends readonly unknown[] ? If<IsNumericLiteral<TLen>, TruncateAtLen<RemoveStart<TList, TStart>, As<TLen, number>>, RemoveStart<TList, TStart>> : RemoveStart<TList, TStart> : never;
|
|
16369
|
+
type PreProcess<TList extends readonly unknown[], TStart extends number, TLen extends number | undefined = undefined> = TList extends string ? Chars<TList> extends readonly string[] ? Concat<As<Process$l<Chars<TList>, TStart, TLen>, readonly string[]>> : never : TList extends readonly unknown[] ? Process$l<TList, TStart, TLen> : never;
|
|
16370
16370
|
/**
|
|
16371
16371
|
* **Slice**`<TList, TStart, TLen>`
|
|
16372
16372
|
*
|
|
@@ -16380,7 +16380,7 @@ type PreProcess<TList extends readonly unknown[], TStart extends number, TLen ex
|
|
|
16380
16380
|
*/
|
|
16381
16381
|
type Slice<TList extends readonly unknown[] | string, TStart extends number, TLen extends number | undefined = undefined> = TList extends string ? Concat<As<PreProcess<Chars<TList>, TStart, TLen>, readonly string[]>> : TList extends readonly unknown[] ? PreProcess<TList, TStart, TLen> extends readonly unknown[] ? PreProcess<TList, TStart, TLen> : never : never;
|
|
16382
16382
|
|
|
16383
|
-
type Process$
|
|
16383
|
+
type Process$k<TContent extends readonly unknown[], TLen extends number, TIdx extends number = 0, TResult extends readonly unknown[] = []> = [] extends TContent ? TResult : If<IsGreaterThanOrEqual<TIdx, TLen>, TResult, Process$k<AfterFirst<TContent>, TLen, Increment<TIdx>, [
|
|
16384
16384
|
...TResult,
|
|
16385
16385
|
First<TContent>
|
|
16386
16386
|
]>>;
|
|
@@ -16397,7 +16397,7 @@ type Process$j<TContent extends readonly unknown[], TLen extends number, TIdx ex
|
|
|
16397
16397
|
* - if you want a precise length, then set `THandle` to "throw" and
|
|
16398
16398
|
* an error will be thrown.
|
|
16399
16399
|
*/
|
|
16400
|
-
type TakeFirst<TContent extends readonly unknown[], TLen extends number, THandle extends "ignore" | "throw" = "ignore"> = If<IsGreaterThan<TLen, TContent["length"]>, If<THandle extends "ignore" ? true : false, TContent, Throw<"invalid-length", `TakeFirst<TContent,TLen> was called where the length of TLen(${TLen}) was greater than the length of the content (${TContent["length"]})!`>>, If<IsEqual<TLen, TContent["length"]>, TContent, Process$
|
|
16400
|
+
type TakeFirst<TContent extends readonly unknown[], TLen extends number, THandle extends "ignore" | "throw" = "ignore"> = If<IsGreaterThan<TLen, TContent["length"]>, If<THandle extends "ignore" ? true : false, TContent, Throw<"invalid-length", `TakeFirst<TContent,TLen> was called where the length of TLen(${TLen}) was greater than the length of the content (${TContent["length"]})!`>>, If<IsEqual<TLen, TContent["length"]>, TContent, Process$k<TContent, TLen>>>;
|
|
16401
16401
|
|
|
16402
16402
|
/**
|
|
16403
16403
|
* **TakeLast**`<TContent,TLen,[THandle]>`
|
|
@@ -16414,7 +16414,7 @@ type TakeFirst<TContent extends readonly unknown[], TLen extends number, THandle
|
|
|
16414
16414
|
*/
|
|
16415
16415
|
type TakeLast<TContent extends readonly unknown[], TLen extends number, THandle extends "ignore" | "throw" = "ignore"> = TakeFirst<Reverse<TContent>, TLen, THandle>;
|
|
16416
16416
|
|
|
16417
|
-
type Process$
|
|
16417
|
+
type Process$j<T extends Tuple, TReplace extends string, TResult extends string = ""> = [] extends T ? StripLeading<TResult, ","> : Process$j<AfterFirst<T>, TReplace, First<T> extends string ? `${TResult},${Replace<First<T>, ",", TReplace>}` : `${TResult},${AsString<First<T>>}`>;
|
|
16418
16418
|
/**
|
|
16419
16419
|
* **ToCSV**`<TTuple,[TReplace]>`
|
|
16420
16420
|
*
|
|
@@ -16423,7 +16423,7 @@ type Process$i<T extends Tuple, TReplace extends string, TResult extends string
|
|
|
16423
16423
|
* be replaced with the value of `TReplace` (which defaults
|
|
16424
16424
|
* to `<comma>`).
|
|
16425
16425
|
*/
|
|
16426
|
-
type ToCSV<TTuple extends Tuple, TReplace extends string = "<comma>"> = Process$
|
|
16426
|
+
type ToCSV<TTuple extends Tuple, TReplace extends string = "<comma>"> = Process$j<TTuple, TReplace>;
|
|
16427
16427
|
|
|
16428
16428
|
/**
|
|
16429
16429
|
* **TruthyReturns**`<T>`
|
|
@@ -16489,13 +16489,13 @@ type ProcessTuple$1<T extends Container, TKeys extends readonly number[], TResul
|
|
|
16489
16489
|
type RemoveNever<T extends Container> = T extends readonly unknown[] ? ProcessTuple$1<T, NumericKeys<T>> : T extends Dictionary ? ProcessObj$1<T, _Keys$2<T>> : never;
|
|
16490
16490
|
|
|
16491
16491
|
type _Keys$1<T extends object> = UnionToTuple$1<keyof RemoveIndexKeys<T>> extends readonly ObjectKey[] ? UnionToTuple$1<keyof RemoveIndexKeys<T>> : never;
|
|
16492
|
-
type Process$
|
|
16492
|
+
type Process$i<T extends Container, TKeys extends readonly PropertyKey[], TResults extends Container = T extends readonly unknown[] ? [] : EmptyObject> = [] extends TKeys ? TResults : First<TKeys> extends keyof T ? IsUndefined<T[First<TKeys>]> extends true ? Process$i<T, AfterFirst<TKeys>, TResults> : Process$i<T, AfterFirst<TKeys>, First<TKeys> extends keyof T ? TResults extends readonly unknown[] ? [...TResults, T[First<TKeys>]] : TResults extends Dictionary ? TResults & Record<First<TKeys>, T[First<TKeys>]> : never : never> : never;
|
|
16493
16493
|
/**
|
|
16494
16494
|
* **RemoveUndefined**`<T>`
|
|
16495
16495
|
*
|
|
16496
16496
|
* Removes all the elements from `T` which are typed as _undefined_.
|
|
16497
16497
|
*/
|
|
16498
|
-
type RemoveUndefined<T extends Container> = Process$
|
|
16498
|
+
type RemoveUndefined<T extends Container> = Process$i<T, T extends Tuple ? NumericKeys<T> : _Keys$1<T>>;
|
|
16499
16499
|
|
|
16500
16500
|
/**
|
|
16501
16501
|
* **AddKeyValue**`<TObj,TKey,TVal>`
|
|
@@ -16513,7 +16513,7 @@ type _Keys<T extends object> = UnionToTuple$1<keyof RemoveIndexKeys<T>>;
|
|
|
16513
16513
|
type GetKeys<T extends object> = IsVueRef<T> extends true ? ["value"] : _Keys<T> extends [symbol] ? ObjectKey[] : _Keys<T> extends [] ? UnionToTuple$1<keyof T> extends [ObjectKey] ? (keyof T)[] : ObjectKey[] : _Keys<T>;
|
|
16514
16514
|
type ProcessObj<TContainer extends object> = GetKeys<TContainer>;
|
|
16515
16515
|
type ProcessTuple<TContainer extends readonly unknown[]> = NumericKeys<TContainer> extends readonly number[] ? NumericKeys<TContainer> : never;
|
|
16516
|
-
type Process$
|
|
16516
|
+
type Process$h<TContainer extends AnyObject> = [IsObjectLiteral<RemoveIndexKeys<TContainer>>] extends [true] ? ProcessObj<RemoveIndexKeys<TContainer>> extends readonly (keyof TContainer & ObjectKey)[] ? As<ProcessObj<RemoveIndexKeys<TContainer>>, readonly ObjectKey[]> : never : ObjectKey[];
|
|
16517
16517
|
/**
|
|
16518
16518
|
* **Keys**`<TContainer>`
|
|
16519
16519
|
*
|
|
@@ -16530,7 +16530,7 @@ type Process$g<TContainer extends AnyObject> = [IsObjectLiteral<RemoveIndexKeys<
|
|
|
16530
16530
|
*
|
|
16531
16531
|
* **Related:** `ValidKey`, `PublicKeys`
|
|
16532
16532
|
*/
|
|
16533
|
-
type Keys<TContainer extends Tuple | AnyObject> = TContainer extends Tuple ? ProcessTuple<TContainer> : TContainer extends AnyObject ? Process$
|
|
16533
|
+
type Keys<TContainer extends Tuple | AnyObject> = TContainer extends Tuple ? ProcessTuple<TContainer> : TContainer extends AnyObject ? Process$h<TContainer> extends readonly ObjectKey[] ? Process$h<TContainer> : never : never;
|
|
16534
16534
|
type _Public<TInput extends readonly PropertyKey[], TOutput extends readonly PropertyKey[] = []> = [] extends TInput ? TOutput : _Public<AfterFirst<TInput>, First<TInput> extends `_${string}` ? TOutput : [...TOutput, First<TInput>]>;
|
|
16535
16535
|
/**
|
|
16536
16536
|
* **PublicKeys**`<TContainer>`
|
|
@@ -16637,12 +16637,12 @@ type OptionalKeys<T extends AnyObject, V = Unset> = {
|
|
|
16637
16637
|
*/
|
|
16638
16638
|
type OptionalKeysTuple<T extends AnyObject> = UnionToTuple$1<OptionalKeys<T>>;
|
|
16639
16639
|
|
|
16640
|
-
type Process$
|
|
16640
|
+
type Process$g<TObj extends Dictionary, TKeys extends readonly (ObjectKey & keyof TObj)[], TResult extends Dictionary = EmptyObject> = [] extends TKeys ? ExpandDictionary<TResult> : Process$g<TObj, AfterFirst<TKeys>, First<TKeys> extends string ? Record<CamelCase<First<TKeys>>, TObj[First<TKeys>]> & TResult : Record<First<TKeys>, TObj[First<TKeys>]> & TResult>;
|
|
16641
16641
|
/**
|
|
16642
16642
|
* Converts an object's keys to the **camelCase** equivalent
|
|
16643
16643
|
* while keeping the values the same.
|
|
16644
16644
|
*/
|
|
16645
|
-
type CamelKeys<T extends Dictionary> = MakeKeysOptional<Process$
|
|
16645
|
+
type CamelKeys<T extends Dictionary> = MakeKeysOptional<Process$g<T, Keys<T>>, OptionalKeys<T> extends string ? UnionMutate<OptionalKeys<T>, "CamelCase"> extends string ? UnionMutate<OptionalKeys<T>, "CamelCase"> : "" : "">;
|
|
16646
16646
|
|
|
16647
16647
|
/**
|
|
16648
16648
|
* **CombinedKeys**`<A,B>`
|
|
@@ -16678,7 +16678,7 @@ interface ConstrainedObjectIdentity<TConstraint extends AnyObject> {
|
|
|
16678
16678
|
asCallback: ConstrainedObjectCallback<TConstraint>;
|
|
16679
16679
|
}
|
|
16680
16680
|
|
|
16681
|
-
type Process$
|
|
16681
|
+
type Process$f<TKeys extends readonly string[], TValue, TObj extends Dictionary = EmptyObject> = [] extends TKeys ? TObj : Process$f<AfterFirst<TKeys>, TValue, TObj & Record<First<TKeys>, TValue>>;
|
|
16682
16682
|
/**
|
|
16683
16683
|
* **CreateKV**`<TKeys,[TValue]>`
|
|
16684
16684
|
*
|
|
@@ -16686,15 +16686,15 @@ type Process$e<TKeys extends readonly string[], TValue, TObj extends Dictionary
|
|
|
16686
16686
|
* as `TKeys` and with all properties set to the value
|
|
16687
16687
|
* of `TValue` (which defaults to `unknown`)
|
|
16688
16688
|
*/
|
|
16689
|
-
type CreateKV<TKeys extends readonly string[], TValue = unknown> = ExpandRecursively<Process$
|
|
16689
|
+
type CreateKV<TKeys extends readonly string[], TValue = unknown> = ExpandRecursively<Process$f<TKeys, TValue>>;
|
|
16690
16690
|
|
|
16691
|
-
type Process$
|
|
16691
|
+
type Process$e<TPayload extends readonly Record<ObjectKey, unknown>[], TKeyProp extends string, TValProp extends string, TOutput extends Record<ObjectKey, unknown> = NonNullable<unknown>> = [] extends TPayload ? TOutput : TKeyProp extends keyof First<TPayload> ? TValProp extends keyof First<TPayload> ? Process$e<AfterFirst<TPayload>, TKeyProp, TValProp, First<TPayload>[TKeyProp] extends ObjectKey ? TOutput & Record<First<TPayload>[TKeyProp], First<TPayload>[TValProp]> : TOutput & Record<AsString<First<TPayload>[TKeyProp]>, First<TPayload>[TValProp]>> : Process$e<AfterFirst<TPayload>, TKeyProp, TValProp, TOutput> : Process$e<AfterFirst<TPayload>, TKeyProp, TValProp, TOutput>;
|
|
16692
16692
|
/**
|
|
16693
16693
|
* **CreateLookup**
|
|
16694
16694
|
*
|
|
16695
16695
|
* Creates a dictionary lookup from a Tuple of similarly typed objects.
|
|
16696
16696
|
*/
|
|
16697
|
-
type CreateLookup<TPayload extends readonly Record<ObjectKey, unknown>[], TKeyProp extends string, TValProp extends string> = ExpandRecursively<Process$
|
|
16697
|
+
type CreateLookup<TPayload extends readonly Record<ObjectKey, unknown>[], TKeyProp extends string, TValProp extends string> = ExpandRecursively<Process$e<TPayload, TKeyProp, TValProp>>;
|
|
16698
16698
|
|
|
16699
16699
|
type StringLiteralVar = "string" | "number" | "boolean" | "Metric" | "OptSpace" | "CountryCode" | "CountryCode2" | "CountryCode3" | "UsState" | "UsStateName" | "Zip5" | "ZipCode";
|
|
16700
16700
|
type BaseConvert<T extends string> = ReplaceAll<ReplaceAll<ReplaceAll<T, `{{${OptSpace}string${OptSpace}}}`, `${string}`>, `{{${OptSpace}number${OptSpace}}}`, `${number}`>, `{{${OptSpace}boolean${OptSpace}}}`, `${boolean}`>;
|
|
@@ -17665,7 +17665,7 @@ type BuildObj<T extends readonly string[] | Dictionary | [Dictionary], TType> =
|
|
|
17665
17665
|
*/
|
|
17666
17666
|
type EnsureKeys<TObj extends object, TKeys extends readonly string[] | Dictionary | [Dictionary], TType = unknown> = ExpandRecursively<TObj & BuildObj<TKeys, TType>>;
|
|
17667
17667
|
|
|
17668
|
-
type Process$
|
|
17668
|
+
type Process$d<TObj extends Dictionary, TComparator, TOp extends ComparatorOperation, TKeys extends readonly ObjectKey[], TResult extends Dictionary = EmptyObject> = [] extends TKeys ? ExpandDictionary<TResult> : Process$d<TObj, TComparator, TOp, AfterFirst<TKeys>, Compare$1<TObj[First<TKeys>], TOp, TComparator> extends true ? TResult : TResult & Record<First<TKeys>, TObj[First<TKeys>]>>;
|
|
17669
17669
|
/**
|
|
17670
17670
|
* **FilterProps**`<TObj, TComparator, [TOp]>`
|
|
17671
17671
|
*
|
|
@@ -17676,7 +17676,7 @@ type Process$c<TObj extends Dictionary, TComparator, TOp extends ComparatorOpera
|
|
|
17676
17676
|
* "extends" but you can change the comparison operation to
|
|
17677
17677
|
* `equals`, `startsWith`, `endsWith`, ...
|
|
17678
17678
|
*/
|
|
17679
|
-
type FilterProps<TObj extends Dictionary, TComparator, TOp extends ComparatorOperation = "extends"> = Process$
|
|
17679
|
+
type FilterProps<TObj extends Dictionary, TComparator, TOp extends ComparatorOperation = "extends"> = Process$d<TObj, TComparator, TOp, Keys<TObj>>;
|
|
17680
17680
|
|
|
17681
17681
|
/**
|
|
17682
17682
|
* **FromMaybeRef**`<T>`
|
|
@@ -17686,12 +17686,12 @@ type FilterProps<TObj extends Dictionary, TComparator, TOp extends ComparatorOpe
|
|
|
17686
17686
|
*/
|
|
17687
17687
|
type FromMaybeRef<T> = IsVueRef<T> extends true ? "value" extends keyof T ? T["value"] : never : T;
|
|
17688
17688
|
|
|
17689
|
-
type Process$
|
|
17689
|
+
type Process$c<TObj extends Dictionary, TKeys extends readonly (ObjectKey & keyof TObj)[], TResult extends Dictionary = EmptyObject> = [] extends TKeys ? ExpandDictionary<TResult> : Process$c<TObj, AfterFirst<TKeys>, First<TKeys> extends string ? Record<KebabCase<First<TKeys>>, TObj[First<TKeys>]> & TResult : Record<First<TKeys>, TObj[First<TKeys>]> & TResult>;
|
|
17690
17690
|
/**
|
|
17691
17691
|
* Converts an object's keys to the **kebab-case** equivalent
|
|
17692
17692
|
* while keeping the values the same.
|
|
17693
17693
|
*/
|
|
17694
|
-
type KebabKeys<T extends Dictionary> = MakeKeysOptional<Process$
|
|
17694
|
+
type KebabKeys<T extends Dictionary> = MakeKeysOptional<Process$c<T, Keys<T>>, OptionalKeys<T> extends string ? UnionMutate<OptionalKeys<T>, "KebabCase"> extends string ? UnionMutate<OptionalKeys<T>, "KebabCase"> : "" : "">;
|
|
17695
17695
|
|
|
17696
17696
|
/**
|
|
17697
17697
|
* **KeysEqualValue**`<TObj,TValue>`
|
|
@@ -17739,7 +17739,7 @@ type KeysWithoutValue<TObj extends AnyObject, TValue extends Narrowable> = {
|
|
|
17739
17739
|
[K in keyof TObj]: TObj[K] extends TValue ? never : Readonly<K>;
|
|
17740
17740
|
}[keyof TObj];
|
|
17741
17741
|
|
|
17742
|
-
type Process$
|
|
17742
|
+
type Process$b<TKeys extends readonly ObjectKey[], TObj extends Dictionary, TValue, TResults extends readonly ObjectKey[] = []> = [] extends TKeys ? TResults : [First<TKeys>] extends [keyof TObj] ? [IsFunction<TValue>] extends [true] ? [IsFunction<TObj[First<TKeys>]>] extends [true] ? Process$b<AfterFirst<TKeys>, TObj, TValue, [...TResults, First<TKeys>]> : Process$b<AfterFirst<TKeys>, TObj, TValue, TResults> : [TObj[First<TKeys>]] extends [TValue] ? Process$b<AfterFirst<TKeys>, TObj, TValue, [...TResults, First<TKeys>]> : Process$b<AfterFirst<TKeys>, TObj, TValue, TResults> : never;
|
|
17743
17743
|
/**
|
|
17744
17744
|
* **KeysWithValue**`<TObj,TValue>`
|
|
17745
17745
|
*
|
|
@@ -17753,7 +17753,7 @@ type Process$a<TKeys extends readonly ObjectKey[], TObj extends Dictionary, TVal
|
|
|
17753
17753
|
*
|
|
17754
17754
|
* **Related:** `KeysEqualValue`
|
|
17755
17755
|
*/
|
|
17756
|
-
type KeysWithValue<TObj extends Dictionary, TValue> = [IsObjectLiteral<TObj>] extends [true] ? Process$
|
|
17756
|
+
type KeysWithValue<TObj extends Dictionary, TValue> = [IsObjectLiteral<TObj>] extends [true] ? Process$b<Keys<TObj>, TObj, TValue> : ObjectKey[];
|
|
17757
17757
|
|
|
17758
17758
|
/**
|
|
17759
17759
|
* **KvFnDefn**
|
|
@@ -18061,9 +18061,9 @@ type MapCardinalityFrom<T extends MapperOld> = T extends MapperOld<any, any, inf
|
|
|
18061
18061
|
*/
|
|
18062
18062
|
type MaybeRef<T> = T | VueRef<T>;
|
|
18063
18063
|
|
|
18064
|
-
type Process$
|
|
18064
|
+
type Process$a<TInput extends readonly {
|
|
18065
18065
|
[key: string]: unknown;
|
|
18066
|
-
}[], TOutput extends Dictionary = EmptyObject> = [] extends TInput ? TOutput extends Record<string, unknown> ? ExpandRecursively<TOutput> : never : Process$
|
|
18066
|
+
}[], TOutput extends Dictionary = EmptyObject> = [] extends TInput ? TOutput extends Record<string, unknown> ? ExpandRecursively<TOutput> : never : Process$a<AfterFirst<TInput>, First<TInput> extends keyof TOutput ? TOutput : TOutput & First<TInput>>;
|
|
18067
18067
|
/**
|
|
18068
18068
|
* **MergeKVs**`<TKVs>`
|
|
18069
18069
|
*
|
|
@@ -18074,7 +18074,7 @@ type Process$9<TInput extends readonly {
|
|
|
18074
18074
|
*/
|
|
18075
18075
|
type MergeKVs<TInput extends readonly {
|
|
18076
18076
|
[key: string]: unknown;
|
|
18077
|
-
}[]> = Process$
|
|
18077
|
+
}[]> = Process$a<TInput>;
|
|
18078
18078
|
|
|
18079
18079
|
/**
|
|
18080
18080
|
* **MutableProps**`<T>`
|
|
@@ -18114,12 +18114,12 @@ type NonStringKeys<T extends AnyObject> = {
|
|
|
18114
18114
|
*/
|
|
18115
18115
|
type OptionalProps<T extends object> = EmptyObject extends RemoveIndexKeys<Pick<T, OptionalKeys<T>>> ? RemoveIndexKeys<Pick<T, OptionalKeys<T>>> : never;
|
|
18116
18116
|
|
|
18117
|
-
type Process$
|
|
18117
|
+
type Process$9<TObj extends Dictionary, TKeys extends readonly (ObjectKey & keyof TObj)[], TResult extends Dictionary = EmptyObject> = [] extends TKeys ? ExpandDictionary<TResult> : Process$9<TObj, AfterFirst<TKeys>, First<TKeys> extends string ? Record<PascalCase<First<TKeys>>, TObj[First<TKeys>]> & TResult : Record<First<TKeys>, TObj[First<TKeys>]> & TResult>;
|
|
18118
18118
|
/**
|
|
18119
18119
|
* Converts an object's keys to the **camelCase** equivalent
|
|
18120
18120
|
* while keeping the values the same.
|
|
18121
18121
|
*/
|
|
18122
|
-
type PascalKeys<T extends Dictionary> = MakeKeysOptional<Process$
|
|
18122
|
+
type PascalKeys<T extends Dictionary> = MakeKeysOptional<Process$9<T, Keys<T>>, OptionalKeys<T> extends string ? UnionMutate<OptionalKeys<T>, "PascalCase"> extends string ? UnionMutate<OptionalKeys<T>, "PascalCase"> : "" : "">;
|
|
18123
18123
|
|
|
18124
18124
|
type MyEqual<A, B> = (<X>() => X extends A ? 0 : 1) extends <X>() => X extends B ? 0 : 1 ? true : false;
|
|
18125
18125
|
type isReadonly<T, K extends keyof T> = MyEqual<{
|
|
@@ -18194,7 +18194,7 @@ type RequiredProps<T extends AnyObject> = Pick<T, RequiredKeys<T>>;
|
|
|
18194
18194
|
*/
|
|
18195
18195
|
type RequireProps<T extends EmptyObject, R extends keyof T> = ExpandRecursively<Required<Pick<T, R>> & T>;
|
|
18196
18196
|
|
|
18197
|
-
type Process$
|
|
18197
|
+
type Process$8<TObj extends Dictionary, TComparator, TOp extends ComparatorOperation, TKeys extends readonly ObjectKey[], TResult extends Dictionary = EmptyObject> = [] extends TKeys ? ExpandDictionary<TResult> : Process$8<TObj, TComparator, TOp, AfterFirst<TKeys>, Compare$1<TObj[First<TKeys>], TOp, TComparator> extends true ? TResult & Record<First<TKeys>, TObj[First<TKeys>]> : TResult>;
|
|
18198
18198
|
/**
|
|
18199
18199
|
* **RetainProps**`<TObj, TComparator, [TOp]>`
|
|
18200
18200
|
*
|
|
@@ -18205,7 +18205,7 @@ type Process$7<TObj extends Dictionary, TComparator, TOp extends ComparatorOpera
|
|
|
18205
18205
|
* "extends" but you can change the comparison operation to
|
|
18206
18206
|
* `equals`, `startsWith`, `endsWith`, ...
|
|
18207
18207
|
*/
|
|
18208
|
-
type RetainProps<TObj extends Dictionary, TComparator, TOp extends ComparatorOperation = "extends"> = Process$
|
|
18208
|
+
type RetainProps<TObj extends Dictionary, TComparator, TOp extends ComparatorOperation = "extends"> = Process$8<TObj, TComparator, TOp, Keys<TObj>>;
|
|
18209
18209
|
|
|
18210
18210
|
/**
|
|
18211
18211
|
* **SetKeyStrict**`<TObj,TKey,TVal>
|
|
@@ -18277,12 +18277,12 @@ type SharedKeys<A extends Record<ObjectKey, unknown> | object, B extends Record<
|
|
|
18277
18277
|
*/
|
|
18278
18278
|
type SimplifyObject<T extends object> = ExpandRecursively<UnionToIntersection<ExpandRecursively<T>>>;
|
|
18279
18279
|
|
|
18280
|
-
type Process$
|
|
18280
|
+
type Process$7<TObj extends Dictionary, TKeys extends readonly (ObjectKey & keyof TObj)[], TResult extends Dictionary = EmptyObject> = [] extends TKeys ? ExpandDictionary<TResult> : Process$7<TObj, AfterFirst<TKeys>, First<TKeys> extends string ? Record<SnakeCase<First<TKeys>>, TObj[First<TKeys>]> & TResult : Record<First<TKeys>, TObj[First<TKeys>]> & TResult>;
|
|
18281
18281
|
/**
|
|
18282
18282
|
* Converts an object's keys to the **kebab-case** equivalent
|
|
18283
18283
|
* while keeping the values the same.
|
|
18284
18284
|
*/
|
|
18285
|
-
type SnakeKeys<T extends Dictionary> = MakeKeysOptional<Process$
|
|
18285
|
+
type SnakeKeys<T extends Dictionary> = MakeKeysOptional<Process$7<T, Keys<T>>, OptionalKeys<T> extends string ? UnionMutate<OptionalKeys<T>, "SnakeCase"> extends string ? UnionMutate<OptionalKeys<T>, "SnakeCase"> : "" : "">;
|
|
18286
18286
|
|
|
18287
18287
|
/**
|
|
18288
18288
|
* **KeysUnion**`<T>`
|
|
@@ -18315,7 +18315,7 @@ type SKeys<T extends AnyObject> = IsVueRef<T> extends true ? ["value"] : _SKeys<
|
|
|
18315
18315
|
*/
|
|
18316
18316
|
type TakeProp<TTest, TProp extends PropertyKey, TElse = undefined> = TProp extends keyof TTest ? TTest[TProp] : TElse;
|
|
18317
18317
|
|
|
18318
|
-
type Process$
|
|
18318
|
+
type Process$6<TObj extends AnyObject, K extends ObjectKey, V> = K extends keyof TObj ? Omit<TObj, K> & Record<K, V> : TObj & Record<K, V>;
|
|
18319
18319
|
/**
|
|
18320
18320
|
* **UpsertKeyValue**`<TObj,TKey,TVal>`
|
|
18321
18321
|
*
|
|
@@ -18324,7 +18324,7 @@ type Process$5<TObj extends AnyObject, K extends ObjectKey, V> = K extends keyof
|
|
|
18324
18324
|
*
|
|
18325
18325
|
* **Related:** `AddKeyValue`
|
|
18326
18326
|
*/
|
|
18327
|
-
type UpsertKeyValue<TObj extends AnyObject, K extends ObjectKey, V> = ExpandRecursively<Process$
|
|
18327
|
+
type UpsertKeyValue<TObj extends AnyObject, K extends ObjectKey, V> = ExpandRecursively<Process$6<TObj, K, V>>;
|
|
18328
18328
|
|
|
18329
18329
|
/**
|
|
18330
18330
|
* **ValidKey**<TContainer>
|
|
@@ -18336,7 +18336,7 @@ type UpsertKeyValue<TObj extends AnyObject, K extends ObjectKey, V> = ExpandRecu
|
|
|
18336
18336
|
*/
|
|
18337
18337
|
type ValidKey<TContainer extends Container> = TupleToUnion<AsArray<Keys<TContainer>>>;
|
|
18338
18338
|
|
|
18339
|
-
type Process$
|
|
18339
|
+
type Process$5<TKeys extends readonly ObjectKey[], TObj extends Record<ObjectKey, unknown>, TResult extends readonly unknown[] = []> = [] extends TKeys ? TResult : Process$5<AfterFirst<TKeys>, TObj, [
|
|
18340
18340
|
...TResult,
|
|
18341
18341
|
First<TKeys> extends keyof TObj ? TObj[First<TKeys>] : never
|
|
18342
18342
|
]>;
|
|
@@ -18348,7 +18348,7 @@ type Process$4<TKeys extends readonly ObjectKey[], TObj extends Record<ObjectKey
|
|
|
18348
18348
|
* - for **tuples** this is just a _proxy_ of the type
|
|
18349
18349
|
* - for _wide_ types like `string[]`
|
|
18350
18350
|
*/
|
|
18351
|
-
type Values<T extends Container> = T extends Tuple ? T : T extends Dictionary ? Process$
|
|
18351
|
+
type Values<T extends Container> = T extends Tuple ? T : T extends Dictionary ? Process$5<Keys<T> extends readonly ObjectKey[] ? Keys<T> : never, T> : T extends TypedFunction ? [T] : [];
|
|
18352
18352
|
|
|
18353
18353
|
type MakeIntoUnion<K extends PropertyKey | readonly PropertyKey[]> = K extends readonly PropertyKey[] ? TupleToUnion<K> : K;
|
|
18354
18354
|
type MakeNumericIndex<T> = T;
|
|
@@ -18378,7 +18378,7 @@ type WithKeys<T extends AnyObject | Tuple, K extends PropertyKey | readonly Prop
|
|
|
18378
18378
|
*/
|
|
18379
18379
|
type WithNumericKeys<T extends object> = Omit<T, NonNumericKeys<T>>;
|
|
18380
18380
|
|
|
18381
|
-
type Process$
|
|
18381
|
+
type Process$4<TObj extends Dictionary, TKeys extends ObjectKey> = [] extends TKeys ? TObj : Omit<TObj, TKeys>;
|
|
18382
18382
|
/**
|
|
18383
18383
|
* **WithoutKeys**`<TObj, TKeys>`
|
|
18384
18384
|
*
|
|
@@ -18386,7 +18386,7 @@ type Process$3<TObj extends Dictionary, TKeys extends ObjectKey> = [] extends TK
|
|
|
18386
18386
|
* functionally equivalent to the `Omit<T,U>` built-in but rather than
|
|
18387
18387
|
* taking a union type it takes an array of keys.
|
|
18388
18388
|
*/
|
|
18389
|
-
type WithoutKeys<TObj extends Dictionary, TKeys extends ObjectKey | readonly ObjectKey[]> = TKeys extends readonly ObjectKey[] ? Process$
|
|
18389
|
+
type WithoutKeys<TObj extends Dictionary, TKeys extends ObjectKey | readonly ObjectKey[]> = TKeys extends readonly ObjectKey[] ? Process$4<TObj, TupleToUnion<TKeys>> : ExpandDictionary<Process$4<TObj, TKeys extends readonly ObjectKey[] ? TupleToUnion<TKeys> : TKeys>>;
|
|
18390
18390
|
|
|
18391
18391
|
/**
|
|
18392
18392
|
* **WithoutValue**
|
|
@@ -18413,7 +18413,7 @@ type WithoutValue<TObj extends AnyObject, TValue extends Narrowable> = ExpandRec
|
|
|
18413
18413
|
type WithStringKeys<T extends AnyObject> = Omit<T, NonStringKeys<T>>;
|
|
18414
18414
|
|
|
18415
18415
|
type Marked$1 = typeof MARKED;
|
|
18416
|
-
type Process$
|
|
18416
|
+
type Process$3<TObj extends Dictionary, TValue, TOp extends "equals" | "extends"> = RemoveMarked<{
|
|
18417
18417
|
[K in keyof TObj]: If<Compare$1<TObj[K], TOp, TValue>, TObj[K], Marked$1>;
|
|
18418
18418
|
}>;
|
|
18419
18419
|
/**
|
|
@@ -18429,7 +18429,7 @@ type Process$2<TObj extends Dictionary, TValue, TOp extends "equals" | "extends"
|
|
|
18429
18429
|
*
|
|
18430
18430
|
* **Related:** `WithoutValue`, `WithKeys`, `WithoutKeys`
|
|
18431
18431
|
*/
|
|
18432
|
-
type WithValue<TObj extends Dictionary, TValue, TOp extends "equals" | "extends" = "extends"> = ExpandRecursively<Process$
|
|
18432
|
+
type WithValue<TObj extends Dictionary, TValue, TOp extends "equals" | "extends" = "extends"> = ExpandRecursively<Process$3<TObj, TValue, TOp>>;
|
|
18433
18433
|
|
|
18434
18434
|
/**
|
|
18435
18435
|
* **Left**<T>
|
|
@@ -18730,7 +18730,7 @@ interface KeyValue<K = ObjectKey, V = any> {
|
|
|
18730
18730
|
*/
|
|
18731
18731
|
type KvTuple<T, K extends keyof T> = [K, Record<K, T[K]>];
|
|
18732
18732
|
|
|
18733
|
-
type Process$
|
|
18733
|
+
type Process$2<TObj extends AnyObject, TKeys extends readonly (ObjectKey & keyof TObj)[], TKv extends readonly KeyValue[] = []> = [] extends TKeys ? TKv : Process$2<TObj, AfterFirst<TKeys>, [
|
|
18734
18734
|
...TKv,
|
|
18735
18735
|
{
|
|
18736
18736
|
key: First<TKeys>;
|
|
@@ -18759,7 +18759,7 @@ type Process$1<TObj extends AnyObject, TKeys extends readonly (ObjectKey & keyof
|
|
|
18759
18759
|
*
|
|
18760
18760
|
* **Related:** `KeyValue`, `FromKv`
|
|
18761
18761
|
*/
|
|
18762
|
-
type ToKv<TObj extends AnyObject, TKeys extends (readonly (ObjectKey & keyof TObj)[]) | false = As<Keys<TObj>, (readonly (ObjectKey & keyof TObj)[])>> = IsObjectLiteral<TObj> extends true ? TKeys extends readonly (ObjectKey & keyof TObj)[] ? Process$
|
|
18762
|
+
type ToKv<TObj extends AnyObject, TKeys extends (readonly (ObjectKey & keyof TObj)[]) | false = As<Keys<TObj>, (readonly (ObjectKey & keyof TObj)[])>> = IsObjectLiteral<TObj> extends true ? TKeys extends readonly (ObjectKey & keyof TObj)[] ? Process$2<TObj, TKeys> : Array<{
|
|
18763
18763
|
[K in keyof TObj]: {
|
|
18764
18764
|
key: K;
|
|
18765
18765
|
value: TObj[K];
|
|
@@ -18909,7 +18909,7 @@ type SetCandidate = readonly unknown[] | Narrowable;
|
|
|
18909
18909
|
|
|
18910
18910
|
type Get<TValue, TDeref extends PropertyKey | never> = IfNever<TDeref, TValue, // just proxy value back
|
|
18911
18911
|
TDeref extends keyof TValue ? TValue[TDeref] : TValue extends Container ? never : TValue>;
|
|
18912
|
-
type Process<TValues extends readonly unknown[], TDeref extends string | number | never, TResults extends readonly unknown[] = []> = [] extends TValues ? TResults : Process<AfterFirst<TValues>, TDeref, Push<TResults, First<TResults>, IsScalar<First<TValues>> extends true ? Not<Contains<TResults, First<TValues>>> : Not<Contains<As<IsNever<TDeref> extends true ? TResults : GetEach<TResults, AsString<TDeref>>, string | number | readonly unknown[]>, Get<First<TValues>, TDeref>>>>>;
|
|
18912
|
+
type Process$1<TValues extends readonly unknown[], TDeref extends string | number | never, TResults extends readonly unknown[] = []> = [] extends TValues ? TResults : Process$1<AfterFirst<TValues>, TDeref, Push<TResults, First<TResults>, IsScalar<First<TValues>> extends true ? Not<Contains<TResults, First<TValues>>> : Not<Contains<As<IsNever<TDeref> extends true ? TResults : GetEach<TResults, AsString<TDeref>>, string | number | readonly unknown[]>, Get<First<TValues>, TDeref>>>>>;
|
|
18913
18913
|
/**
|
|
18914
18914
|
* **Unique**`<TList, [TDeref]>`
|
|
18915
18915
|
*
|
|
@@ -18926,7 +18926,7 @@ type Process<TValues extends readonly unknown[], TDeref extends string | number
|
|
|
18926
18926
|
* type FooBar = Unique<["foo","foo","bar"]>;
|
|
18927
18927
|
* ```
|
|
18928
18928
|
*/
|
|
18929
|
-
type Unique<TList extends readonly unknown[], TDeref extends string | number | never = never> = IfNever<TDeref, UnionToTuple$1<TupleToUnion<TList>>, Process<TList, TDeref>>;
|
|
18929
|
+
type Unique<TList extends readonly unknown[], TDeref extends string | number | never = never> = IfNever<TDeref, UnionToTuple$1<TupleToUnion<TList>>, Process$1<TList, TDeref>>;
|
|
18930
18930
|
|
|
18931
18931
|
/**
|
|
18932
18932
|
* **UniqueKeys**`<L,R>`
|
|
@@ -19075,4 +19075,15 @@ type LastOfEach<T extends readonly unknown[][]> = {
|
|
|
19075
19075
|
*/
|
|
19076
19076
|
type SecondOfEach<T extends unknown[][]> = T[number][1] extends T[number][number] ? T[number][1] : never;
|
|
19077
19077
|
|
|
19078
|
-
export { type Abs, type AbsMaybe, type Acceleration, type AccelerationMetrics, type AccelerationUom, type Add, type AddKeyValue, type AddUrlPathSegment, type AfterFirst, type AfterFirstChar, type AllCaps, type AllExtend, type AllLiteral, type AllNumericLiterals, type AllStringLiterals, type AllowNonTupleWhenSingular, type Alpha, type AlphaChar, type AlphaNumeric, type AlphaNumericChar, type AmPm, type AmPmCase, type AmazonUrl, type AmericanExpress, type And, type AnyArray, type AnyFunction, type AnyObject, type AnyQueryParams, type Api, type ApiCallback, type ApiConfig, type ApiEscape, type ApiHandler, type ApiOptions, type ApiReturn, type ApiState, type ApiStateInitializer, type ApiSurface, type AppendRight, type AppleUrl, type AreSameLength, type AreSameType, type Area, type AreaMetrics, type AreaUom, type AriaDocStructureRoles, type AriaLandmarkRoles, type AriaLiveRegionRoles, type AriaRole, type AriaWidgetRoles, type AriaWindowRoles, type ArrayElementType, type ArrayTypeDefn, type As, type AsApi, type AsArray, type AsBoolean, type AsChoice, type AsContainer, type AsDefined, type AsDictionary, type AsDoneFn, type AsErr, type AsErrKind, type AsError, type AsError__Meta, type AsEscapeFunction, type AsFinalizedConfig, type AsFnMeta, type AsFunction, type AsHtmlComponentTag, type AsHtmlTag, type AsIndexOf, type AsIp6Prefix, type AsLeft, type AsLeftRight, type AsLiteralFn, type AsNarrowingFn, type AsNegativeNumber, type AsNonNull, type AsNumber, type AsNumberWhenPossible, type AsNumericArray, type AsObject, type AsObjectKey, type AsObjectKeys, type AsOptionalParamFn, type AsPropertyKey, type AsRecord, type AsRef, type AsRight, type AsSomething, type AsString, type AsStringLiteral, type AsStringUnion, type AsToken, type AsTokenOpt, type AsTuple, type AsType, type AsUnion, type AsVueComputedRef, type AsyncFunction, type AustralianNewsCompanies, type AustralianNewsUrls, type AvailableConverters, type Awaited$1 as Awaited, type BareCssSelector, type BaseTypeToken, type BeforeLast, type BelgianNewsCompanies, type BelgianNewsUrls, type BespokeLiteral, type BespokeUnion, type BestBuyUrl, type BooleanLike, type Box, type Bracket, type Branded, type Break, type BuildDefinition, type CSV, type Callback, type CamelCase, type CamelKeys, type CanadianNewsCompanies, type CanadianNewsUrls, type CapFirstAlpha, type CapitalizeWords, type Cardinality, type Cardinality0, type Cardinality1, type CardinalityExplicit, type CardinalityFilter0, type CardinalityFilter1, type CardinalityIn, type CardinalityInput, type CardinalityNode, type CardinalityOut, type CargoDependency, type CargoToml, type Chars, type ChewyUrl, type ChineseNewsCompanies, type ChineseNewsUrls, type Choice, type ChoiceApi, type ChoiceApiConfig, type ChoiceApiOptions, type ChoiceBuilder, type ChoiceCallback, type ChoiceValue, type CivilianHours, type CivilianTime, type CivilianTimeOptions, type ClosingBracket, type ClosingMark, type ClosingMarkPlus, type ColorFnOptOpacity, type ColorFnValue, type ColorParam, type CombinedKeys, type CommonHtmlElement, type ComparatorOperation, type Compare$1 as Compare, type Comparison, type CompleteError, type Concat, type ConfigDefinition, type ConfiguredMap, type Consonant, type Consonants, type ConstrainObject, type ConstrainedObjectCallback, type ConstrainedObjectIdentity, type Constructor, type Container, type ContainerBlockKey, type ContainerKeyGuarantee, type Contains, type ContainsAll, type ContainsSome, type Conversion, type ConversionTuple, type ConvertSet, type ConvertTypeOf, type ConvertWideTokenNames, type ConverterCoverage, type ConverterDefn, type CostCoUrl, type CostcoUrl, type CountryPhoneNumber, type Cr, type CrThenIndent, type CreateChoice, type CreateDictHash, type CreateDictShape, type CreateKV, type CreateLookup, type CreditCard, type CssAbsolutionPositioningProperties, type CssAlignContent, type CssAlignItems, type CssAlignProperties, type CssAlignSelf, type CssAnimation, type CssAnimationComposition, type CssAnimationDelay, type CssAnimationDirection, type CssAnimationDuration, type CssAnimationFillMode, type CssAnimationIterationCount, type CssAnimationPlayState, type CssAnimationProperties, type CssAnimationTimingFunction, type CssAppearance, type CssAspectRatio, type CssBackdropFilter, type CssBackgroundProperties, type CssBorderCollapse, type CssBorderImageRepeat, type CssBorderImageSource, type CssBorderInlineSizing, type CssBorderProperties, type CssBorderStyle, type CssBorderWidth, type CssBoxAlign, type CssBoxDecorationBreak, type CssBoxProperties, type CssBoxShadow, type CssBoxSizing, type CssCalc, type CssClamp, type CssClassSelector, type CssColor, type CssColorFn, type CssColorLight, type CssColorMix, type CssColorMixLight, type CssColorModel, type CssColorSpace, type CssColorSpacePrimary, type CssContent, type CssCursor, type CssDefinition, type CssDisplay, type CssDisplayStatePseudoClasses, type CssFlex, type CssFlexBasis, type CssFlexDirection, type CssFlexFlow, type CssFlexGrow, type CssFlexShrink, type CssFloat, type CssFontFamily, type CssFontFeatureSetting, type CssFontKerning, type CssFontLanguageOverride, type CssFontPalette, type CssFontProperties, type CssFontStyle, type CssFontSynthesis, type CssFontWeight, type CssFontWidth, type CssFunctionalPseudoClass, type CssGap, type CssGlobal, type CssHangingPunctuation, type CssHexColor, type CssHsb, type CssHsl, type CssIdSelector, type CssImageOrientation, type CssImageRendering, type CssImageResolution, type CssInputPseudoClasses, type CssJustifyContent, type CssJustifyItems, type CssJustifyProperties, type CssJustifySelf, type CssKeyframeTimestamp, type CssKeyframeTimestampSuggest, type CssLetterSpacing, type CssLinguisticPseudoClasses, type CssListStyle, type CssLocationPseudoClasses, type CssMargin, type CssMarginBlock, type CssMarginBlockEnd, type CssMarginBlockStart, type CssMarginBottom, type CssMarginInline, type CssMarginInlineEnd, type CssMarginInlineStart, type CssMarginLeft, type CssMarginProperties, type CssMarginRight, type CssMarginTop, type CssMixBlendMode, type CssNamedColors, type CssNamedSizes, type CssObjectFit, type CssObjectPosition, type CssOffsetDistance, type CssOffsetPath, type CssOffsetPosition, type CssOffsetProperties, type CssOkLch, type CssOpacity, type CssOutline, type CssOutlineColor, type CssOutlineOffset, type CssOutlineProperties, type CssOutlineStyle, type CssOutlineWidth, type CssOverflowAnchor, type CssOverflowBlock, type CssOverflowClipMargin, type CssOverflowInline, type CssOverflowProperties, type CssOverflowX, type CssOverflowY, type CssPadding, type CssPaddingBlock, type CssPaddingBlockEnd, type CssPaddingBlockStart, type CssPaddingBottom, type CssPaddingInline, type CssPaddingInlineEnd, type CssPaddingInlineStart, type CssPaddingLeft, type CssPaddingProperties, type CssPaddingRight, type CssPaddingTop, type CssPerspectiveOrigin, type CssPlaceContent, type CssPlaceItems, type CssPlaceProperties, type CssPlaceSelf, type CssPointerEvent, type CssPosition, type CssProperty, type CssPseudoClass, type CssPseudoClassDefn, type CssResourceStatePseudoClasses, type CssRgb, type CssRgba, type CssRotation, type CssRound, type CssSelector, type CssSizing, type CssSizingFunction, type CssSizingLight, type CssStroke, type CssStrokeDasharray, type CssStrokeProperties, type CssTagSelector, type CssTextAlign, type CssTextDecorationLine, type CssTextDecorationStyle, type CssTextIndent, type CssTextJustify, type CssTextOrientation, type CssTextOverflow, type CssTextPosition, type CssTextProperties, type CssTextRendering, type CssTextTransform, type CssTextWrap, type CssTextWrapMode, type CssTextWrapStyle, type CssTimePseudoClasses, type CssTiming, type CssTransform, type CssTransformBox, type CssTransformOrigin, type CssTransformProperties, type CssTransformStyle, type CssTranslate, type CssTranslateFn, type CssTreePseudoClasses, type CssUserActionPseudoClasses, type CssVar, type CssVarWithFallback, type CssWhiteSpace, type CssWhiteSpaceCollapse, type CssWordBreak, type CssWritingMode, type Csv, type CsvToJsonTuple, type CsvToStrUnion, type CsvToTuple, type CsvToTupleStr, type CsvToUnion, type Current, type CurrentMetrics, type CurrentUom, type CvsUrl, DEFAULT_MANY_TO_ONE_MAPPING, DEFAULT_ONE_TO_MANY_MAPPING, DEFAULT_ONE_TO_ONE_MAPPING, type DanishNewsCompanies, type DanishNewsUrls, type DashToSnake, type DashUppercase, type Date$2 as Date, type DateSeparator, type DateThenMonth, type DateThenMonthThenYear, type DateTime, type DateTimeMinutes, type DateTimeSeconds, type DayOfWeek, type DayofWeekFull, type DecomposeMapConfig, type Decrement, type Default, type DefaultManyToOneMapping, type DefaultOneToManyMapping, type DefaultOneToOneMapping, type DefineObject, type DefineObjectApi, type DefineStatelessApi, type Defined, type DellUrl, type Delta, type DeployConfig, type DialCountryCode, type Dict, type DictArray, type DictArrayFilterCallback, type DictArrayKv, type DictChangeValue, type DictKvTuple, type Dictionary, type DictionaryTypeDefn, type Digit, type DigitNonZero, type Digital, type DigitalLiteral, type Digitize, type DinersClub, type Discover, type Distance, type DistanceMetrics, type DistanceUom, type DnsName, type DockerCompose, type DockerDependsOn, type DockerService, type DoesExtend, type DoesNotExtend, type DomainName, type DoneFnTuple, type DotPathFor, type DoubleQuote, type DropChars, type DutchNewsCompanies, type DutchNewsUrls, type DynamicSegment, type EbayUrl, type ElementOf, type Email, type Empty, type EmptyObject, type EmptyString, type EmptyStringOr, type EndsWith, type Energy, type EnergyMetrics, type EnergyUom, type EnsureKeys, type EnsureLeading, type EnsureLeadingEvery, type EnsureSurround, type EnsureTrailing, type Equals, type Err, type ErrFrom, type ErrInput, type ErrMsg, type ErrorCondition, type ErrorConditionHandler, type ErrorConditionShape, type EscapeFunction, type EsotericHtmlElement, type EtsyUrl, type EveryLength, type Exif, type ExifAttributionInfo, type ExifCameraInfo, ExifCompression, ExifContrast, type ExifDateTimeInfo, ExifEmbedPolicy, type ExifExtraneous, ExifFlashValues, ExifGainControl, type ExifGps, ExifLightSource, type ExifPhotoContext, ExifPreviewColorSpace, ExifSaturation, ExifSceneCaptureType, ExifSharpness, ExifSubjectDistance, type ExpandDictionary, type ExpandRecursively, type ExpandTuple, type ExpandUnion, type ExplicitlyEmptyObject, type Extends, type ExtendsAll, type ExtendsNone, type ExtendsSome, type Fail, type FalsyValue, type FifoQueue, type Filter, type FilterByProp, type FilterLiterals, type FilterProps, type FilterWideTypes, type FinalizedMapConfig, type Find, type FindFirstIndex, type FindIndexMetaOfString, type FindIndexMetaOfTuple, type FindIndexes, type FindIndexesWithMeta, type FindLastIndex, type First, type FirstChar, type FirstKey, type FirstKeyValue, type FirstOfEach, type FirstString, type FixedLengthArray, type Flatten, type FlattenUnion, type FluentApi, type FluentFn, type FluentState, type FnAllowingProps, type FnArgsDefn, type FnDefn, type FnFrom, type FnMeta, type FnPropertiesDefn, type FnProps, type FnReturnTypeDefn, type FnWithDescription, type FnWithProps, type FrenchNewsCompanies, type FrenchNewsUrls, type Frequency, type FrequencyMetrics, type FrequencyUom, type FromDefineObject, type FromDefn, type FromDictArray, type FromDynamicSegment, type FromKv, type FromLiteralTokens, type FromMaybeRef, type FromNamedDynamicSegment, type FromRecordKeyDefn, type FromShapeCallback, type FromSimpleRecordKey, type FromSimpleToken, type FromTypeDefn, type FromWideTokens, type FullDate, type FullWidthQuotation, type FullyQualifiedUrl, type GermanNewsCompanies, type GermanNewsUrls, type Get$1 as Get, type GetDefaultPort, type GetEach, type GetEscapeFunction, type GetPhoneCountryCode, type GetPhoneNumberType, type GetQueryParameterDynamics, type GetTypeOf, type GetUrlDynamics, type GetUrlPath, type GetUrlPathDynamics, type GetUrlPort, type GetUrlProtocol, type GetUrlProtocolPrefix, type GetUrlQueryParams, type GetUrlSource, type GetYouTubePageType, type GitRef, type GithubActionsUrl, type GithubInsightPageType, type GithubInsightUrl, type GithubOrgUrl, type GithubRepoBranchesUrl, type GithubRepoDiscussionUrl, type GithubRepoDiscussionsUrl, type GithubRepoIssueUrl, type GithubRepoIssuesListUrl, type GithubRepoProjectUrl, type GithubRepoProjectsUrl, type GithubRepoPullRequestUrl, type GithubRepoPullRequestsUrl, type GithubRepoReleaseTagUrl, type GithubRepoReleasesUrl, type GithubRepoTagsUrl, type GithubRepoUrl, type GithubUrl, type HandMUrl, type Handle, type HandleDoneFn, type HasArray, type HasCharacters, type HasEscapeFunction, type HasIndex, type HasIpAddress, type HasNetworkProtocolReference, type HasOtherCharacters, type HasParameters, type HasPhoneCountryCode, type HasProp, type HasQueryParameter, type HasRequiredProps, type HasSameKeys, type HasSameValues, type HasUnionType, type HasUppercase, type HasUrlPath, type HasUrlSource, type HasWideValues, type HaveSameNumericSign, type Healthcheck, type HexColor, type Hexadecimal, type HexadecimalChar, type HomeDepotUrl, type HoursMinutes, type HoursMinutes12, type HoursMinutesSeconds, type HoursMinutesSeconds12, type HoursMinutesSecondsMilliseconds, type HoursMinutesSecondsMilliseconds12, type HtmlBodyElement, type HtmlElement, type HtmlFrameworkElement, type HtmlFunctionalElement, type HtmlHeaderElement, type HtmlInputElement, type HtmlListElement, type HtmlMediaElement, type HtmlStructuralElement, type HtmlSymantecElement, type HtmlTableElement, type HtmlTag, type HtmlTagAtomic, type HtmlTagClose, type HtmlTagOpen, type Html__AtomicTag, type Html__BlockTag, type IP6Multicast, type IP6Unicast, type IdentityFn, type IdentityFunction, type If, type IfAllExtend, type IfAllLiteral, type IfEqual, type IfEquals, type IfErrorCondition, type IfLeft, type IfLength, type IfLiteralKind, type IfNever, type IfUnset, type IfUnsetOrUndefined, type Iff, type IkeaUrl, type ImgFormat, type ImgFormatWeb, type Immutable, type Increment, type Indent$1 as Indent, type Indent2, type Indent4, type IndentSpaces, type IndentTab, type IndexOf, type Indexable, type IndexableObject, type IndianNewsCompanies, type IndianNewsUrls, type InlineSvg, type Integer, type IntegerBrand, type InternationalPhoneNumber, type Intersect$1 as Intersect, type IntersectAll, type IntersectWithAll, type IntersectingKeys, type Intersection, type InvertNumericSign, type Ip4Address, type Ip4Netmask, type Ip4Netmask16, type Ip4Netmask24, type Ip4Netmask32, type Ip4Netmask8, type Ip4NetmaskSuggestion, type Ip4Octet, type Ip6Address, type Ip6AddressFull, type Ip6AddressLoose, type Ip6Group, type Ip6GroupExpansion, type Ip6Loopback, type Ip6Subnet, type Ip6SubnetPrefix, type IsAllCaps, type IsAllLowercase, type IsAmericanExpress, type IsArray, type IsAtomicTag, type IsBoolean, type IsBooleanLiteral, type IsCapitalized, type IsComputedRef, type IsContainer, type IsCreditCard, type IsCssHexadecimal, type IsCsv, type IsDefined, type IsDictionaryDefinition, type IsDomainName, type IsDotPath, type IsEmptyContainer, type IsEmptyObject, type IsEmptyString, type IsEqual, type IsErr, type IsErrMsg, type IsErrorCondition, type IsEscapeFunction, type IsFalse, type IsFalsy, type IsFloat, type IsFnWithParams, type IsFunction, type IsGreaterThan, type IsGreaterThanOrEqual, type IsHexadecimal, type IsHtmlClosingTag, type IsInteger, type IsIp4Address, type IsIp4Octet, type IsIp6Address, type IsIp6HexGroup, type IsIpAddress, type IsIso8601DateTime, type IsIsoDate, type IsIsoExplicitDate, type IsIsoImplicitDate, type IsIsoTime, type IsJsDate, type IsLength, type IsLessThan, type IsLessThanOrEqual, type IsLiteral, type IsLiteralFn, type IsLiteralKind, type IsLiteralUnion, type IsLowerAlpha, type IsLuxonDateTime, type IsMoment, type IsNarrowingFn, type IsNegativeNumber, type IsNever, type IsNonEmptyContainer, type IsNonEmptyObject, type IsNonLiteralUnion, type IsNotEqual, type IsNothing, type IsNull, type IsNumber, type IsNumberLike, type IsNumericLiteral, type IsObject, type IsObjectLiteral, type IsOk, type IsOptional, type IsOptionalLiteral, type IsOptionalScalar, type IsPhoneNumber, type IsPositiveNumber, type IsReadonlyArray, type IsReadonlyObject, type IsRequired, type IsResult, type IsScalar, type IsSingleChar, type IsSingleSided, type IsSingularNoun, type IsStrictPromise, type IsString, type IsStringLiteral, type IsSymbol, type IsThenable, type IsTrue, type IsTruthy, type IsTuple, type IsUndefined, type IsUnion, type IsUnionArray, type IsUnset, type IsUrl, type IsValidDotPath, type IsValidIndex, type IsVariable, type IsVisaMastercard, type IsVueRef, type IsWideContainer, type IsWideNumber, type IsWideScalar, type IsWideString, type IsWideType, type IsWideUnion, type Iso3166Alpha2Lookup, type Iso3166Alpha3Lookup, type Iso3166CodeLookup, type Iso3166CountryLookup, type Iso3166_1_Alpha2, type Iso3166_1_Alpha3, type Iso3166_1_CountryCode, type Iso3166_1_CountryName, type Iso3166_1_Lookup, type Iso3166_1_Token, type Iso8601, type Iso8601Date, type Iso8601DateTime, type Iso8601Time, type Iso8601Year, type ItalianNewsCompanies, type ItalianNewsUrls, type JapaneseNewsCompanies, type JapaneseNewsUrls, type Jcb, type Join, type JsonValue, type JsonValues, type JustFunction, type KebabCase, type KebabKeys, type KeyOf, type KeyValue, type Keys, type KeysEqualValue, type KeysNotEqualValue, type KeysOverlap, type KeysUnion, type KeysWithValue, type KeysWithoutValue, type KindFrom, type KlassMeta, type KrogerUrl, type KvFn, type KvFnDefn, type KvTuple, type Last, type LastChar, type LastInUnion$1 as LastInUnion, type LastOfEach, type LeadingNonAlpha, type Left, type LeftContains, type LeftDoubleMark, type LeftEquals, type LeftExtends, type LeftHeavyDoubleTurned, type LeftHeavySingleTurned, type LeftIncludes, type LeftLowDoublePrime, type LeftReversedDoublePrime, type LeftRight, type LeftRight__Operations, type LeftSingleMark, type LeftWhitespace, type Length, type LessThan, type LessThanOrEqual$1 as LessThanOrEqual, type LifoQueue, type LikeRegExp, type List, type LiteralFn, type LocalPhoneNumber, type LoggingOptions, type LogicFunction, type LogicalCombinator, type LogicalReturns, type LowerAllCaps, type LowerAlphaChar, type LowesUrl, type Luminosity, type LuminosityMetrics, type LuminosityUom, type LuxonJs, type MacysUrl, type Maestro, type MakeKeysOptional, type MakeKeysRequired, type MakePropsMutable, type ManyToMany, type ManyToOne, type ManyToZero, type MapCard, MapCardinality, type MapCardinalityFrom, type MapCardinalityIllustrated, type MapConfig, type MapCoverage, type MapError, type MapFn, type MapFnInput, type MapFnOutput, type MapIR, type MapInput, type MapInputFrom, type MapKeyDefn, type MapOR, type MapOutput, type MapOutputFrom, type MapTo, type MapValueDefn, type MapperApi, type MapperOld, type Mass, type MassMetrics, type MassUom, type Mastercard, type MaxLength, type MaybeError, type MaybeRef, type Merge, type MergeKVs, type MergeObjects, type MergeScalars, type MergeTuples, type Metric, type MetricCategory, type MexicanNewsCompanies, type MexicanNewsUrls, type MilitaryHours, type MilitaryTime, type MilitaryTimeOptions, type Milliseconds, type Minutes, type MomentJs, type MonthAbbr, type MonthAbbrThenDate, type MonthAbbrThenDateAndYear, type MonthDay, type MonthName, type MonthNumeric, type MonthPostfix, type MonthThenDate, type MonthThenDateThenYear, type MonthThenDate_Simple, type MultiChoiceCallback, type MultipleChoice, type Mutable, type MutableProps, type MutablePropsExclusive, type NamedColor, type NamedColorMinimal, type NamedColor_Blue, type NamedColor_Brown, type NamedColor_Cyan, type NamedColor_Gray, type NamedColor_Green, type NamedColor_Orange, type NamedColor_Pink, type NamedColor_Purple, type NamedColor_Red, type NamedColor_White, type NamedColor_Yellow, type NamedDynamicSegment, type NamingConvention, type Narrow$1 as Narrow, type NarrowDictProps, type NarrowObject, type Narrowable, type NarrowableDefined, type NarrowableScalar, type NarrowingFn, type NarrowlyContains, type NegDelta, type Negative, type NetworkConfig, type NetworkDefinition, type NetworkProtocol, type NetworkProtocolPrefix, type NewsUrls, type NextDigit, type NikeUrl, type NonAlphaChar, type NonArray, type NonNumericKeys, type NonStringKeys, type NonZeroNumericChar, type NorwegianNewsCompanies, type NorwegianNewsUrls, type Not, type NotEqual, type NotLength, type NotNull, type Nothing, type NpmVersion, type NumberLike, type NumericChar, type NumericCharOneToFive, type NumericCharOneToFour, type NumericCharOneToThree, type NumericCharOneToTwo, type NumericCharZeroToFive, type NumericCharZeroToFour, type NumericCharZeroToOne, type NumericCharZeroToThree, type NumericCharZeroToTwo, type NumericComparatorOperation, type NumericKeys, type NumericRange, type NumericSign, type NumericSort, type NumericSupportOptions, type ObjKeyDefn, type ObjectApiCallback, type ObjectKey, type ObjectMap, type ObjectMapConversion, type ObjectMapper, type ObjectMapperCallback, type ObjectToApi, type ObjectToCssString, type ObjectToJsString, type ObjectToJsonString, type ObjectToKeyframeString, type ObjectToTuple, type Ok, type OkFrom, type OldSchoolHtmlElement, type OnPass, type OnPassRemap, type OneToMany, type OneToOne, type OneToZero, type OpeningBracket, type OpeningMark, type OpeningMarkPlus, type Opt$1 as Opt, type OptCr, type OptCrThenIndent, type OptDictProps, type OptModifier, type OptPercent, type OptRequired, type OptSpace, type OptSpace2, type OptSpace4, type OptUrlQueryParameters, type OptWhitespace, type Optional, type OptionalKeys, type OptionalKeysTuple, type OptionalParamFn, type OptionalProps, type OptionalSimpleScalarTokens, type OptionalSpace, type Or, type PackageJson, type ParameterlessFn, type ParamsForComparison, type ParseInt, type PartialError, type PartialErrorDefn, type PascalCase, type PascalKeys, type Passthrough, type PathJoin, type PhoneAreaCode, type PhoneCountryCode, type PhoneCountryLookup, type PhoneFormat, type PhoneNumber, type PhoneNumberDelimiter, type PhoneNumberType, type PhoneNumberWithCountryCode, type PhoneShortCode, type Pluralize, type PlusMinus, type Pop, type PortMapping, type PortSpecifierOptions, type Power, type PowerMetrics, type PowerUom, type Prepend, type PrependAll, type Pressure, type PressureMetrics, type PressureUom, type PriorDigit, type PrivateKey, type PrivateKeyOf, type PrivateKeys, type PromiseAll, type PropertyChar, type ProtocolOptions, type ProxyError, type PublicKeyOf, type PublicKeys, type Punctuation, type Push, type QuotationMark, type QuotationMarkPlus, type RawPhoneNumber, type ReadonlyKeys, type ReadonlyProps, type RealizedErr, type RecKeyVariant, type RecVariant, type RecordKeyDefn, type RecordKeyWideTokens, type RecordValueTypeDefn, type ReduceValues, type RegularFn$1 as RegularFn, type Relate, type RelativeUrl, type RemoveEmpty, type RemoveFnProps, type RemoveFromEnd, type RemoveFromStart, type RemoveHttpProtocol, type RemoveIndex, type RemoveIndexKeys, type RemoveMarked, type RemoveNetworkProtocol, type RemoveNever, type RemovePhoneCountryCode, type RemoveStart, type RemoveUndefined, type RemoveUrlPort, type RemoveUrlSource, type Repeat, type Replace, type ReplaceAll, type ReplaceLast, type RepoPageType, type RepoSource, type RepoUrls, type RequireProps, type RequiredKeys, type RequiredKeysTuple, type RequiredProps, type RequiredSimpleScalarTokens, type Resistance, type ResistanceMetrics, type ResistanceUom, type RestEndpoint, type RestMethod, type Result, type ResultApi, type ResultErr, type ResultTuple, type RetailUrl, type Retain, type RetainAfter, type RetainAfterLast, type RetainByProp, type RetainChars, type RetainLiterals, type RetainProps, type RetainUntil, type RetainWhile, type RetainWideTypes, type ReturnTypes, type ReturnValues, type Returns, type ReturnsFalse, type ReturnsTrue, type Reverse, type RgbColor, type RgbaColor, type Right, type RightContains, type RightDoubleMark, type RightEquals, type RightExtends, type RightHeavyDoubleTurned, type RightHeavySingleTurned, type RightIncludes, type RightReversedDoublePrime, type RightSingleMark, type RightWhitespace, type RuntimeUnion, type SKeys, type Scalar, type ScalarCallback, type ScalarNotSymbol, type Second, type SecondOfEach, type Seconds, type SecretDefinition, type SemanticVersion, type SetCandidate, type SetKey, type SetKeyForce, type SetKeyStrict, type SetKeysTo, type Shape, type ShapeApi, type ShapeApi__Scalars, type ShapeCallback, type ShapeSuggest, type ShapeTupleOrUnion, type SharedKeys, type Shift, type ShortDate, type SimpleArrayToken, type SimpleContainerToken, type SimpleDictToken, type SimpleMapToken, type SimpleScalarToken, type SimpleSetToken, type SimpleToken, type SimpleType, type SimpleTypeArray, type SimpleTypeDict, type SimpleTypeMap, type SimpleTypeScalar, type SimpleTypeSet, type SimpleTypeUnion, type SimpleUnionToken, type SimplifyObject, type SingleQuote, type SingularNoun$1 as SingularNoun, type SingularNounEnding, type SizingUnits, type Slice, type SmartMark, type SmartMarkPlus, type SnakeCase, type SnakeKeys, type SocialMediaPlatform, type SocialMediaProfileUrl, type SocialMediaUrl, type Solo, type Some, type SomeEqual, type SomeExtend, type Something, type SouthKoreanNewsCompanies, type SouthKoreanNewsUrls, type SpanishNewsCompanies, type SpanishNewsUrls, type SpecialChar, type Speed, type SpeedMetrics, type SpeedUom, type Split, type SplitAlt, type StackFrame, type StackTrace, type StandardMark, type StartsWith, type StrLen, type StringComparatorOperation, type StringDelimiter, type StringLength, type StringLiteralFromTuple, type StringLiteralTemplate, type StringLiteralToken, type StringLiteralVar, type StringTokenUtilities, type StripAfter, type StripBefore, type StripChars, type StripLeading, type StripLeftNonAlpha, type StripSlash, type StripSurround, type StripTrailing, type StripUntil, type StripWhile, type StrongMap, type StrongMapTransformer, type StrongMapTypes, type StructuredStringType, type Subtract, type Suggest, type SuggestHexadecimal, type SuggestIpAddress, type SuggestNumeric, type Surround, type SwissNewsCompanies, type SwissNewsUrls, type SymbolKind, type SyncFunction, type TLD, type TT_Atomic, type TT_Container, type TT_Function, type TT_Set, type TT_Singleton, type TZ, type TakeFirst, type TakeLast, type TakeProp, type TargetUrl, type Temperature, type TemperatureMetrics, type TemperatureUom, type Thenable, type Throw, type Time, type TimeInMilliseconds, type TimeInMinutes, type TimeInSeconds, type TimeLike, type TimeMetric, type TimeMetrics, type TimeNomenclature, type TimeResolution, type TimeUom, type Timezone, type ToBoolean, type ToCSV, type ToChoices, type ToContainer, type ToFn, type ToInteger, type ToIntegerOp, type ToJsonValue, type ToKv, type ToNumber, type ToNumericArray, type ToPhoneFormat, type ToString, type ToStringArray, type ToStringLiteral, type ToUnion, type TokenizeStringLiteral, type Trim, type TrimLeft, type TrimRight, type Truncate$1 as Truncate, type TruncateAtLen, type TruthyReturns, type Tuple, type TupleDefn, type TupleRange, type TupleToUnion, type TurkishNewsCompanies, type TurkishNewsUrls, type TwChroma, type TwChroma100, type TwChroma200, type TwChroma300, type TwChroma400, type TwChroma50, type TwChroma500, type TwChroma600, type TwChroma700, type TwChroma800, type TwChroma900, type TwChroma950, type TwChromaLookup, type TwColor, type TwColorOptionalOpacity, type TwColorTarget, type TwColorWithLuminosity, type TwColorWithLuminosityOpacity, type TwHue, type TwLumi100, type TwLumi200, type TwLumi300, type TwLumi400, type TwLumi50, type TwLumi500, type TwLumi600, type TwLumi700, type TwLumi800, type TwLumi900, type TwLumi950, type TwLuminosity, type TwLuminosityLookup, type TwModifier, type TwModifier__Core, type TwModifier__Order, type TwModifier__Reln, type TwModifier__Size, type TwModifiers, type TwNeutralColor, type TwSizeResponsive, type TwStaticColor, type TwTarget__Color, type TwTarget__ColorLuminosity, type TwTarget__ColorLuminosityWithOpacity, type TwTarget__ColorName, type TwTarget__ColorWithOptPrefixes, type TwTarget__Color__Light, type TwVibrantColor, type Type, type TypeDefaultValue, type TypeDefinition, type TypeDefn, type TypeDefnValidations, type TypeErrorInfo, type TypeGuard, type TypeHasDefaultValue, type TypeHasUnderlying, type TypeHasValidations, type TypeIsRequired, type TypeKind, type TypeKindContainer, type TypeKindContainerNarrow, type TypeKindContainerWide, type TypeKindFalsy, type TypeKindLiteral, type TypeKindWide, type TypeOf, type TypeOfExtended, type TypeOptions, type TypeRequired, type TypeStrength, type TypeSubtype, type TypeToken, type TypeTokenAtomics, type TypeTokenContainers, type TypeTokenDelimiter, type TypeTokenFunctions, type TypeTokenKind, type TypeTokenLookup, type TypeTokenSets, type TypeTokenSingletons, type TypeTokenStart, type TypeTokenStop, type TypeToken__Boolean, type TypeToken__False, type TypeToken__Fn, type TypeToken__FnSet, type TypeToken__Gen, type TypeToken__Never, type TypeToken__Null, type TypeToken__Number, type TypeToken__NumberSet, type TypeToken__Rec, type TypeToken__String, type TypeToken__StringSet, type TypeToken__True, type TypeToken__Undefined, type TypeToken__UnionSet, type TypeToken__Unknown, type TypeTuple, type TypeUnderlying, type TypedFunction, type TzHourOffset, type UkNewsCompanies, type UkNewsUrls, type UnderlyingType, type UnionArrayToTuple, type UnionElDefn, type UnionFilter, type UnionFromProp, type UnionHasArray, type UnionMutate, type UnionMutationOp, type UnionShift, type UnionToIntersection, type UnionToTuple$1 as UnionToTuple, type UnionWithAll, type Unique, type UniqueKeys, type UniqueKeysUnion, type UniqueKv, type UnitType, type Unset, type Uom, type UpperAlphaChar, type UpsertKeyValue, type Uri, type UrlBuilder, type UrlOptions, type UrlPath, type UrlPathChars, type UrlPort, type UrlQueryParameters, type UrlsFrom, type UsNewsCompanies, type UsNewsUrls, type UsPhoneNumber, type UsStateAbbrev, type UsStateName, type ValidKey, type Validate, type ValidationFunction, type ValueAtDotPath, type ValueCallback, type ValueOrReturnValue, type Values, type Variable, type VariableChar, type Visa, type VisaMastercard, type Voltage, type VoltageMetrics, type VoltageUom, type Volume, type VolumeDefinition, type VolumeMapping, type VolumeMetrics, type VolumeUom, type VueComputedRef, type VueRef, type WalgreensUrl, type WalmartUrl, type WayFairUrl, type WeakMapKeyDefn, type WeakMapValueDefn, type WhenNever, type WhereLeft, type Whitespace, type WholeFoodsUrl, type WideContainerNames, type WideTokenNames, type WideTypeName, type Widen, type WidenContainer, type WidenLiteral, type WidenScalar, type WidenTuple, type WidenUnion, type WidenValues, type WithDefault, type WithKeys, type WithNumericKeys, type WithStringKeys, type WithValue, type WithoutKeys, type WithoutValue, type WrapperFn, type YMD, type Year, type YouTubeCreatorUrl, type YouTubeEmbedUrl, type YouTubeFeedType, type YouTubeFeedUrl, type YouTubeHistoryUrl, type YouTubeHome, type YouTubeLikedPlaylistUrl, type YouTubePageType, type YouTubePlaylistUrl, type YouTubeShareUrl, type YouTubeSubscriptionsUrl, type YouTubeUrl, type YouTubeUsersPlaylistUrl, type YouTubeVideoUrl, type YouTubeVideosInPlaylist, type ZaraUrl, type Zero, type ZeroToMany, type ZeroToOne, type ZeroToZero, type Zip5, type ZipCode, type ZipPlus4, type ZipToState };
|
|
19078
|
+
type Process<T extends readonly unknown[], R extends readonly unknown[] = []> = [] extends T ? R[number] : Process<AfterFirst<T>, [
|
|
19079
|
+
...R,
|
|
19080
|
+
First<T> extends string ? Capitalize<First<T>> : First<T>
|
|
19081
|
+
]>;
|
|
19082
|
+
/**
|
|
19083
|
+
* **CapitalizeEachUnionMember**`<T>`
|
|
19084
|
+
*
|
|
19085
|
+
* Capitalizes all string-derived union members in a union.
|
|
19086
|
+
*/
|
|
19087
|
+
type CapitalizeEachUnionMember<T> = IsUnion<T> extends true ? Process<UnionToTuple$1<T>> : T extends string ? Capitalize<T> : T;
|
|
19088
|
+
|
|
19089
|
+
export { type Abs, type AbsMaybe, type Acceleration, type AccelerationMetrics, type AccelerationUom, type Add, type AddKeyValue, type AddUrlPathSegment, type AfterFirst, type AfterFirstChar, type AllCaps, type AllExtend, type AllLiteral, type AllNumericLiterals, type AllStringLiterals, type AllowNonTupleWhenSingular, type Alpha, type AlphaChar, type AlphaNumeric, type AlphaNumericChar, type AmPm, type AmPmCase, type AmazonUrl, type AmericanExpress, type And, type AnyArray, type AnyFunction, type AnyObject, type AnyQueryParams, type Api, type ApiCallback, type ApiConfig, type ApiEscape, type ApiHandler, type ApiOptions, type ApiReturn, type ApiState, type ApiStateInitializer, type ApiSurface, type AppendRight, type AppleUrl, type AreSameLength, type AreSameType, type Area, type AreaMetrics, type AreaUom, type AriaDocStructureRoles, type AriaLandmarkRoles, type AriaLiveRegionRoles, type AriaRole, type AriaWidgetRoles, type AriaWindowRoles, type ArrayElementType, type ArrayTypeDefn, type As, type AsApi, type AsArray, type AsBoolean, type AsChoice, type AsContainer, type AsDefined, type AsDictionary, type AsDoneFn, type AsErr, type AsErrKind, type AsError, type AsError__Meta, type AsEscapeFunction, type AsFinalizedConfig, type AsFnMeta, type AsFunction, type AsHtmlComponentTag, type AsHtmlTag, type AsIndexOf, type AsIp6Prefix, type AsLeft, type AsLeftRight, type AsLiteralFn, type AsNarrowingFn, type AsNegativeNumber, type AsNonNull, type AsNumber, type AsNumberWhenPossible, type AsNumericArray, type AsObject, type AsObjectKey, type AsObjectKeys, type AsOptionalParamFn, type AsPropertyKey, type AsRecord, type AsRef, type AsRight, type AsSomething, type AsString, type AsStringLiteral, type AsStringUnion, type AsToken, type AsTokenOpt, type AsTuple, type AsType, type AsUnion, type AsVueComputedRef, type AsyncFunction, type AustralianNewsCompanies, type AustralianNewsUrls, type AvailableConverters, type Awaited$1 as Awaited, type BareCssSelector, type BaseTypeToken, type BeforeLast, type BelgianNewsCompanies, type BelgianNewsUrls, type BespokeLiteral, type BespokeUnion, type BestBuyUrl, type BooleanLike, type Box, type Bracket, type Branded, type Break, type BuildDefinition, type CSV, type Callback, type CamelCase, type CamelKeys, type CanadianNewsCompanies, type CanadianNewsUrls, type CapFirstAlpha, type CapitalizeEachUnionMember, type CapitalizeWords, type Cardinality, type Cardinality0, type Cardinality1, type CardinalityExplicit, type CardinalityFilter0, type CardinalityFilter1, type CardinalityIn, type CardinalityInput, type CardinalityNode, type CardinalityOut, type CargoDependency, type CargoToml, type Chars, type ChewyUrl, type ChineseNewsCompanies, type ChineseNewsUrls, type Choice, type ChoiceApi, type ChoiceApiConfig, type ChoiceApiOptions, type ChoiceBuilder, type ChoiceCallback, type ChoiceValue, type CivilianHours, type CivilianTime, type CivilianTimeOptions, type ClosingBracket, type ClosingMark, type ClosingMarkPlus, type ColorFnOptOpacity, type ColorFnValue, type ColorParam, type CombinedKeys, type CommonHtmlElement, type ComparatorOperation, type Compare$1 as Compare, type Comparison, type CompleteError, type Concat, type ConfigDefinition, type ConfiguredMap, type Consonant, type Consonants, type ConstrainObject, type ConstrainedObjectCallback, type ConstrainedObjectIdentity, type Constructor, type Container, type ContainerBlockKey, type ContainerKeyGuarantee, type Contains, type ContainsAll, type ContainsSome, type Conversion, type ConversionTuple, type ConvertSet, type ConvertTypeOf, type ConvertWideTokenNames, type ConverterCoverage, type ConverterDefn, type CostCoUrl, type CostcoUrl, type CountryPhoneNumber, type Cr, type CrThenIndent, type CreateChoice, type CreateDictHash, type CreateDictShape, type CreateKV, type CreateLookup, type CreditCard, type CssAbsolutionPositioningProperties, type CssAlignContent, type CssAlignItems, type CssAlignProperties, type CssAlignSelf, type CssAnimation, type CssAnimationComposition, type CssAnimationDelay, type CssAnimationDirection, type CssAnimationDuration, type CssAnimationFillMode, type CssAnimationIterationCount, type CssAnimationPlayState, type CssAnimationProperties, type CssAnimationTimingFunction, type CssAppearance, type CssAspectRatio, type CssBackdropFilter, type CssBackgroundProperties, type CssBorderCollapse, type CssBorderImageRepeat, type CssBorderImageSource, type CssBorderInlineSizing, type CssBorderProperties, type CssBorderStyle, type CssBorderWidth, type CssBoxAlign, type CssBoxDecorationBreak, type CssBoxProperties, type CssBoxShadow, type CssBoxSizing, type CssCalc, type CssClamp, type CssClassSelector, type CssColor, type CssColorFn, type CssColorLight, type CssColorMix, type CssColorMixLight, type CssColorModel, type CssColorSpace, type CssColorSpacePrimary, type CssContent, type CssCursor, type CssDefinition, type CssDisplay, type CssDisplayStatePseudoClasses, type CssFlex, type CssFlexBasis, type CssFlexDirection, type CssFlexFlow, type CssFlexGrow, type CssFlexShrink, type CssFloat, type CssFontFamily, type CssFontFeatureSetting, type CssFontKerning, type CssFontLanguageOverride, type CssFontPalette, type CssFontProperties, type CssFontStyle, type CssFontSynthesis, type CssFontWeight, type CssFontWidth, type CssFunctionalPseudoClass, type CssGap, type CssGlobal, type CssHangingPunctuation, type CssHexColor, type CssHsb, type CssHsl, type CssIdSelector, type CssImageOrientation, type CssImageRendering, type CssImageResolution, type CssInputPseudoClasses, type CssJustifyContent, type CssJustifyItems, type CssJustifyProperties, type CssJustifySelf, type CssKeyframeTimestamp, type CssKeyframeTimestampSuggest, type CssLetterSpacing, type CssLinguisticPseudoClasses, type CssListStyle, type CssLocationPseudoClasses, type CssMargin, type CssMarginBlock, type CssMarginBlockEnd, type CssMarginBlockStart, type CssMarginBottom, type CssMarginInline, type CssMarginInlineEnd, type CssMarginInlineStart, type CssMarginLeft, type CssMarginProperties, type CssMarginRight, type CssMarginTop, type CssMixBlendMode, type CssNamedColors, type CssNamedSizes, type CssObjectFit, type CssObjectPosition, type CssOffsetDistance, type CssOffsetPath, type CssOffsetPosition, type CssOffsetProperties, type CssOkLch, type CssOpacity, type CssOutline, type CssOutlineColor, type CssOutlineOffset, type CssOutlineProperties, type CssOutlineStyle, type CssOutlineWidth, type CssOverflowAnchor, type CssOverflowBlock, type CssOverflowClipMargin, type CssOverflowInline, type CssOverflowProperties, type CssOverflowX, type CssOverflowY, type CssPadding, type CssPaddingBlock, type CssPaddingBlockEnd, type CssPaddingBlockStart, type CssPaddingBottom, type CssPaddingInline, type CssPaddingInlineEnd, type CssPaddingInlineStart, type CssPaddingLeft, type CssPaddingProperties, type CssPaddingRight, type CssPaddingTop, type CssPerspectiveOrigin, type CssPlaceContent, type CssPlaceItems, type CssPlaceProperties, type CssPlaceSelf, type CssPointerEvent, type CssPosition, type CssProperty, type CssPseudoClass, type CssPseudoClassDefn, type CssResourceStatePseudoClasses, type CssRgb, type CssRgba, type CssRotation, type CssRound, type CssSelector, type CssSizing, type CssSizingFunction, type CssSizingLight, type CssStroke, type CssStrokeDasharray, type CssStrokeProperties, type CssTagSelector, type CssTextAlign, type CssTextDecorationLine, type CssTextDecorationStyle, type CssTextIndent, type CssTextJustify, type CssTextOrientation, type CssTextOverflow, type CssTextPosition, type CssTextProperties, type CssTextRendering, type CssTextTransform, type CssTextWrap, type CssTextWrapMode, type CssTextWrapStyle, type CssTimePseudoClasses, type CssTiming, type CssTransform, type CssTransformBox, type CssTransformOrigin, type CssTransformProperties, type CssTransformStyle, type CssTranslate, type CssTranslateFn, type CssTreePseudoClasses, type CssUserActionPseudoClasses, type CssVar, type CssVarWithFallback, type CssWhiteSpace, type CssWhiteSpaceCollapse, type CssWordBreak, type CssWritingMode, type Csv, type CsvToJsonTuple, type CsvToStrUnion, type CsvToTuple, type CsvToTupleStr, type CsvToUnion, type Current, type CurrentMetrics, type CurrentUom, type CvsUrl, DEFAULT_MANY_TO_ONE_MAPPING, DEFAULT_ONE_TO_MANY_MAPPING, DEFAULT_ONE_TO_ONE_MAPPING, type DanishNewsCompanies, type DanishNewsUrls, type DashToSnake, type DashUppercase, type Date$2 as Date, type DateSeparator, type DateThenMonth, type DateThenMonthThenYear, type DateTime, type DateTimeMinutes, type DateTimeSeconds, type DayOfWeek, type DayofWeekFull, type DecomposeMapConfig, type Decrement, type Default, type DefaultManyToOneMapping, type DefaultOneToManyMapping, type DefaultOneToOneMapping, type DefineObject, type DefineObjectApi, type DefineStatelessApi, type Defined, type DellUrl, type Delta, type DeployConfig, type DialCountryCode, type Dict, type DictArray, type DictArrayFilterCallback, type DictArrayKv, type DictChangeValue, type DictKvTuple, type Dictionary, type DictionaryTypeDefn, type Digit, type DigitNonZero, type Digital, type DigitalLiteral, type Digitize, type DinersClub, type Discover, type Distance, type DistanceMetrics, type DistanceUom, type DnsName, type DockerCompose, type DockerDependsOn, type DockerService, type DoesExtend, type DoesNotExtend, type DomainName, type DoneFnTuple, type DotPathFor, type DoubleQuote, type DropChars, type DutchNewsCompanies, type DutchNewsUrls, type DynamicSegment, type EbayUrl, type ElementOf, type Email, type Empty, type EmptyObject, type EmptyString, type EmptyStringOr, type EndsWith, type Energy, type EnergyMetrics, type EnergyUom, type EnsureKeys, type EnsureLeading, type EnsureLeadingEvery, type EnsureSurround, type EnsureTrailing, type Equals, type Err, type ErrFrom, type ErrInput, type ErrMsg, type ErrorCondition, type ErrorConditionHandler, type ErrorConditionShape, type EscapeFunction, type EsotericHtmlElement, type EtsyUrl, type EveryLength, type Exif, type ExifAttributionInfo, type ExifCameraInfo, ExifCompression, ExifContrast, type ExifDateTimeInfo, ExifEmbedPolicy, type ExifExtraneous, ExifFlashValues, ExifGainControl, type ExifGps, ExifLightSource, type ExifPhotoContext, ExifPreviewColorSpace, ExifSaturation, ExifSceneCaptureType, ExifSharpness, ExifSubjectDistance, type ExpandDictionary, type ExpandRecursively, type ExpandTuple, type ExpandUnion, type ExplicitlyEmptyObject, type Extends, type ExtendsAll, type ExtendsNone, type ExtendsSome, type Fail, type FalsyValue, type FifoQueue, type Filter, type FilterByProp, type FilterLiterals, type FilterProps, type FilterWideTypes, type FinalizedMapConfig, type Find, type FindFirstIndex, type FindIndexMetaOfString, type FindIndexMetaOfTuple, type FindIndexes, type FindIndexesWithMeta, type FindLastIndex, type First, type FirstChar, type FirstKey, type FirstKeyValue, type FirstOfEach, type FirstString, type FixedLengthArray, type Flatten, type FlattenUnion, type FluentApi, type FluentFn, type FluentState, type FnAllowingProps, type FnArgsDefn, type FnDefn, type FnFrom, type FnMeta, type FnPropertiesDefn, type FnProps, type FnReturnTypeDefn, type FnWithDescription, type FnWithProps, type FrenchNewsCompanies, type FrenchNewsUrls, type Frequency, type FrequencyMetrics, type FrequencyUom, type FromDefineObject, type FromDefn, type FromDictArray, type FromDynamicSegment, type FromKv, type FromLiteralTokens, type FromMaybeRef, type FromNamedDynamicSegment, type FromRecordKeyDefn, type FromShapeCallback, type FromSimpleRecordKey, type FromSimpleToken, type FromTypeDefn, type FromWideTokens, type FullDate, type FullWidthQuotation, type FullyQualifiedUrl, type GermanNewsCompanies, type GermanNewsUrls, type Get$1 as Get, type GetDefaultPort, type GetEach, type GetEscapeFunction, type GetPhoneCountryCode, type GetPhoneNumberType, type GetQueryParameterDynamics, type GetTypeOf, type GetUrlDynamics, type GetUrlPath, type GetUrlPathDynamics, type GetUrlPort, type GetUrlProtocol, type GetUrlProtocolPrefix, type GetUrlQueryParams, type GetUrlSource, type GetYouTubePageType, type GitRef, type GithubActionsUrl, type GithubInsightPageType, type GithubInsightUrl, type GithubOrgUrl, type GithubRepoBranchesUrl, type GithubRepoDiscussionUrl, type GithubRepoDiscussionsUrl, type GithubRepoIssueUrl, type GithubRepoIssuesListUrl, type GithubRepoProjectUrl, type GithubRepoProjectsUrl, type GithubRepoPullRequestUrl, type GithubRepoPullRequestsUrl, type GithubRepoReleaseTagUrl, type GithubRepoReleasesUrl, type GithubRepoTagsUrl, type GithubRepoUrl, type GithubUrl, type HandMUrl, type Handle, type HandleDoneFn, type HasArray, type HasCharacters, type HasEscapeFunction, type HasIndex, type HasIpAddress, type HasNetworkProtocolReference, type HasOtherCharacters, type HasParameters, type HasPhoneCountryCode, type HasProp, type HasQueryParameter, type HasRequiredProps, type HasSameKeys, type HasSameValues, type HasUnionType, type HasUppercase, type HasUrlPath, type HasUrlSource, type HasWideValues, type HaveSameNumericSign, type Healthcheck, type HexColor, type Hexadecimal, type HexadecimalChar, type HomeDepotUrl, type HoursMinutes, type HoursMinutes12, type HoursMinutesSeconds, type HoursMinutesSeconds12, type HoursMinutesSecondsMilliseconds, type HoursMinutesSecondsMilliseconds12, type HtmlBodyElement, type HtmlElement, type HtmlFrameworkElement, type HtmlFunctionalElement, type HtmlHeaderElement, type HtmlInputElement, type HtmlListElement, type HtmlMediaElement, type HtmlStructuralElement, type HtmlSymantecElement, type HtmlTableElement, type HtmlTag, type HtmlTagAtomic, type HtmlTagClose, type HtmlTagOpen, type Html__AtomicTag, type Html__BlockTag, type IP6Multicast, type IP6Unicast, type IdentityFn, type IdentityFunction, type If, type IfAllExtend, type IfAllLiteral, type IfEqual, type IfEquals, type IfErrorCondition, type IfLeft, type IfLength, type IfLiteralKind, type IfNever, type IfUnset, type IfUnsetOrUndefined, type Iff, type IkeaUrl, type ImgFormat, type ImgFormatWeb, type Immutable, type Increment, type Indent$1 as Indent, type Indent2, type Indent4, type IndentSpaces, type IndentTab, type IndexOf, type Indexable, type IndexableObject, type IndianNewsCompanies, type IndianNewsUrls, type InlineSvg, type Integer, type IntegerBrand, type InternationalPhoneNumber, type Intersect$1 as Intersect, type IntersectAll, type IntersectWithAll, type IntersectingKeys, type Intersection, type InvertNumericSign, type Ip4Address, type Ip4Netmask, type Ip4Netmask16, type Ip4Netmask24, type Ip4Netmask32, type Ip4Netmask8, type Ip4NetmaskSuggestion, type Ip4Octet, type Ip6Address, type Ip6AddressFull, type Ip6AddressLoose, type Ip6Group, type Ip6GroupExpansion, type Ip6Loopback, type Ip6Subnet, type Ip6SubnetPrefix, type IsAllCaps, type IsAllLowercase, type IsAmericanExpress, type IsArray, type IsAtomicTag, type IsBoolean, type IsBooleanLiteral, type IsCapitalized, type IsComputedRef, type IsContainer, type IsCreditCard, type IsCssHexadecimal, type IsCsv, type IsDefined, type IsDictionaryDefinition, type IsDomainName, type IsDotPath, type IsEmptyContainer, type IsEmptyObject, type IsEmptyString, type IsEqual, type IsErr, type IsErrMsg, type IsErrorCondition, type IsEscapeFunction, type IsFalse, type IsFalsy, type IsFloat, type IsFnWithParams, type IsFunction, type IsGreaterThan, type IsGreaterThanOrEqual, type IsHexadecimal, type IsHtmlClosingTag, type IsInteger, type IsIp4Address, type IsIp4Octet, type IsIp6Address, type IsIp6HexGroup, type IsIpAddress, type IsIso8601DateTime, type IsIsoDate, type IsIsoExplicitDate, type IsIsoImplicitDate, type IsIsoTime, type IsJsDate, type IsLength, type IsLessThan, type IsLessThanOrEqual, type IsLiteral, type IsLiteralFn, type IsLiteralKind, type IsLiteralUnion, type IsLowerAlpha, type IsLuxonDateTime, type IsMoment, type IsNarrowingFn, type IsNegativeNumber, type IsNever, type IsNonEmptyContainer, type IsNonEmptyObject, type IsNonLiteralUnion, type IsNotEqual, type IsNothing, type IsNull, type IsNumber, type IsNumberLike, type IsNumericLiteral, type IsObject, type IsObjectLiteral, type IsOk, type IsOptional, type IsOptionalLiteral, type IsOptionalScalar, type IsPhoneNumber, type IsPositiveNumber, type IsReadonlyArray, type IsReadonlyObject, type IsRequired, type IsResult, type IsScalar, type IsSingleChar, type IsSingleSided, type IsSingularNoun, type IsStrictPromise, type IsString, type IsStringLiteral, type IsSymbol, type IsThenable, type IsTrue, type IsTruthy, type IsTuple, type IsUndefined, type IsUnion, type IsUnionArray, type IsUnset, type IsUrl, type IsValidDotPath, type IsValidIndex, type IsVariable, type IsVisaMastercard, type IsVueRef, type IsWideContainer, type IsWideNumber, type IsWideScalar, type IsWideString, type IsWideType, type IsWideUnion, type Iso3166Alpha2Lookup, type Iso3166Alpha3Lookup, type Iso3166CodeLookup, type Iso3166CountryLookup, type Iso3166_1_Alpha2, type Iso3166_1_Alpha3, type Iso3166_1_CountryCode, type Iso3166_1_CountryName, type Iso3166_1_Lookup, type Iso3166_1_Token, type Iso8601, type Iso8601Date, type Iso8601DateTime, type Iso8601Time, type Iso8601Year, type ItalianNewsCompanies, type ItalianNewsUrls, type JapaneseNewsCompanies, type JapaneseNewsUrls, type Jcb, type Join, type JsonValue, type JsonValues, type JustFunction, type KebabCase, type KebabKeys, type KeyOf, type KeyValue, type Keys, type KeysEqualValue, type KeysNotEqualValue, type KeysOverlap, type KeysUnion, type KeysWithValue, type KeysWithoutValue, type KindFrom, type KlassMeta, type KrogerUrl, type KvFn, type KvFnDefn, type KvTuple, type Last, type LastChar, type LastInUnion$1 as LastInUnion, type LastOfEach, type LeadingNonAlpha, type Left, type LeftContains, type LeftDoubleMark, type LeftEquals, type LeftExtends, type LeftHeavyDoubleTurned, type LeftHeavySingleTurned, type LeftIncludes, type LeftLowDoublePrime, type LeftReversedDoublePrime, type LeftRight, type LeftRight__Operations, type LeftSingleMark, type LeftWhitespace, type Length, type LessThan, type LessThanOrEqual$1 as LessThanOrEqual, type LifoQueue, type LikeRegExp, type List, type LiteralFn, type LocalPhoneNumber, type LoggingOptions, type LogicFunction, type LogicalCombinator, type LogicalReturns, type LowerAllCaps, type LowerAlphaChar, type LowesUrl, type Luminosity, type LuminosityMetrics, type LuminosityUom, type LuxonJs, type MacysUrl, type Maestro, type MakeKeysOptional, type MakeKeysRequired, type MakePropsMutable, type ManyToMany, type ManyToOne, type ManyToZero, type MapCard, MapCardinality, type MapCardinalityFrom, type MapCardinalityIllustrated, type MapConfig, type MapCoverage, type MapError, type MapFn, type MapFnInput, type MapFnOutput, type MapIR, type MapInput, type MapInputFrom, type MapKeyDefn, type MapOR, type MapOutput, type MapOutputFrom, type MapTo, type MapValueDefn, type MapperApi, type MapperOld, type Mass, type MassMetrics, type MassUom, type Mastercard, type MaxLength, type MaybeError, type MaybeRef, type Merge, type MergeKVs, type MergeObjects, type MergeScalars, type MergeTuples, type Metric, type MetricCategory, type MexicanNewsCompanies, type MexicanNewsUrls, type MilitaryHours, type MilitaryTime, type MilitaryTimeOptions, type Milliseconds, type Minutes, type MomentJs, type MonthAbbr, type MonthAbbrThenDate, type MonthAbbrThenDateAndYear, type MonthDay, type MonthName, type MonthNumeric, type MonthPostfix, type MonthThenDate, type MonthThenDateThenYear, type MonthThenDate_Simple, type MultiChoiceCallback, type MultipleChoice, type Mutable, type MutableProps, type MutablePropsExclusive, type NamedColor, type NamedColorMinimal, type NamedColor_Blue, type NamedColor_Brown, type NamedColor_Cyan, type NamedColor_Gray, type NamedColor_Green, type NamedColor_Orange, type NamedColor_Pink, type NamedColor_Purple, type NamedColor_Red, type NamedColor_White, type NamedColor_Yellow, type NamedDynamicSegment, type NamingConvention, type Narrow$1 as Narrow, type NarrowDictProps, type NarrowObject, type Narrowable, type NarrowableDefined, type NarrowableScalar, type NarrowingFn, type NarrowlyContains, type NegDelta, type Negative, type NetworkConfig, type NetworkDefinition, type NetworkProtocol, type NetworkProtocolPrefix, type NewsUrls, type NextDigit, type NikeUrl, type NonAlphaChar, type NonArray, type NonNumericKeys, type NonStringKeys, type NonZeroNumericChar, type NorwegianNewsCompanies, type NorwegianNewsUrls, type Not, type NotEqual, type NotLength, type NotNull, type Nothing, type NpmVersion, type NumberLike, type NumericChar, type NumericCharOneToFive, type NumericCharOneToFour, type NumericCharOneToThree, type NumericCharOneToTwo, type NumericCharZeroToFive, type NumericCharZeroToFour, type NumericCharZeroToOne, type NumericCharZeroToThree, type NumericCharZeroToTwo, type NumericComparatorOperation, type NumericKeys, type NumericRange, type NumericSign, type NumericSort, type NumericSupportOptions, type ObjKeyDefn, type ObjectApiCallback, type ObjectKey, type ObjectMap, type ObjectMapConversion, type ObjectMapper, type ObjectMapperCallback, type ObjectToApi, type ObjectToCssString, type ObjectToJsString, type ObjectToJsonString, type ObjectToKeyframeString, type ObjectToTuple, type Ok, type OkFrom, type OldSchoolHtmlElement, type OnPass, type OnPassRemap, type OneToMany, type OneToOne, type OneToZero, type OpeningBracket, type OpeningMark, type OpeningMarkPlus, type Opt$1 as Opt, type OptCr, type OptCrThenIndent, type OptDictProps, type OptModifier, type OptPercent, type OptRequired, type OptSpace, type OptSpace2, type OptSpace4, type OptUrlQueryParameters, type OptWhitespace, type Optional, type OptionalKeys, type OptionalKeysTuple, type OptionalParamFn, type OptionalProps, type OptionalSimpleScalarTokens, type OptionalSpace, type Or, type PackageJson, type ParameterlessFn, type ParamsForComparison, type ParseInt, type PartialError, type PartialErrorDefn, type PascalCase, type PascalKeys, type Passthrough, type PathJoin, type PhoneAreaCode, type PhoneCountryCode, type PhoneCountryLookup, type PhoneFormat, type PhoneNumber, type PhoneNumberDelimiter, type PhoneNumberType, type PhoneNumberWithCountryCode, type PhoneShortCode, type Pluralize, type PlusMinus, type Pop, type PortMapping, type PortSpecifierOptions, type Power, type PowerMetrics, type PowerUom, type Prepend, type PrependAll, type Pressure, type PressureMetrics, type PressureUom, type PriorDigit, type PrivateKey, type PrivateKeyOf, type PrivateKeys, type PromiseAll, type PropertyChar, type ProtocolOptions, type ProxyError, type PublicKeyOf, type PublicKeys, type Punctuation, type Push, type QuotationMark, type QuotationMarkPlus, type RawPhoneNumber, type ReadonlyKeys, type ReadonlyProps, type RealizedErr, type RecKeyVariant, type RecVariant, type RecordKeyDefn, type RecordKeyWideTokens, type RecordValueTypeDefn, type ReduceValues, type RegularFn$1 as RegularFn, type Relate, type RelativeUrl, type RemoveEmpty, type RemoveFnProps, type RemoveFromEnd, type RemoveFromStart, type RemoveHttpProtocol, type RemoveIndex, type RemoveIndexKeys, type RemoveMarked, type RemoveNetworkProtocol, type RemoveNever, type RemovePhoneCountryCode, type RemoveStart, type RemoveUndefined, type RemoveUrlPort, type RemoveUrlSource, type Repeat, type Replace, type ReplaceAll, type ReplaceLast, type RepoPageType, type RepoSource, type RepoUrls, type RequireProps, type RequiredKeys, type RequiredKeysTuple, type RequiredProps, type RequiredSimpleScalarTokens, type Resistance, type ResistanceMetrics, type ResistanceUom, type RestEndpoint, type RestMethod, type Result, type ResultApi, type ResultErr, type ResultTuple, type RetailUrl, type Retain, type RetainAfter, type RetainAfterLast, type RetainByProp, type RetainChars, type RetainLiterals, type RetainProps, type RetainUntil, type RetainWhile, type RetainWideTypes, type ReturnTypes, type ReturnValues, type Returns, type ReturnsFalse, type ReturnsTrue, type Reverse, type RgbColor, type RgbaColor, type Right, type RightContains, type RightDoubleMark, type RightEquals, type RightExtends, type RightHeavyDoubleTurned, type RightHeavySingleTurned, type RightIncludes, type RightReversedDoublePrime, type RightSingleMark, type RightWhitespace, type RuntimeUnion, type SKeys, type Scalar, type ScalarCallback, type ScalarNotSymbol, type Second, type SecondOfEach, type Seconds, type SecretDefinition, type SemanticVersion, type SetCandidate, type SetKey, type SetKeyForce, type SetKeyStrict, type SetKeysTo, type Shape, type ShapeApi, type ShapeApi__Scalars, type ShapeCallback, type ShapeSuggest, type ShapeTupleOrUnion, type SharedKeys, type Shift, type ShortDate, type SimpleArrayToken, type SimpleContainerToken, type SimpleDictToken, type SimpleMapToken, type SimpleScalarToken, type SimpleSetToken, type SimpleToken, type SimpleType, type SimpleTypeArray, type SimpleTypeDict, type SimpleTypeMap, type SimpleTypeScalar, type SimpleTypeSet, type SimpleTypeUnion, type SimpleUnionToken, type SimplifyObject, type SingleQuote, type SingularNoun$1 as SingularNoun, type SingularNounEnding, type SizingUnits, type Slice, type SmartMark, type SmartMarkPlus, type SnakeCase, type SnakeKeys, type SocialMediaPlatform, type SocialMediaProfileUrl, type SocialMediaUrl, type Solo, type Some, type SomeEqual, type SomeExtend, type Something, type SouthKoreanNewsCompanies, type SouthKoreanNewsUrls, type SpanishNewsCompanies, type SpanishNewsUrls, type SpecialChar, type Speed, type SpeedMetrics, type SpeedUom, type Split, type SplitAlt, type StackFrame, type StackTrace, type StandardMark, type StartsWith, type StrLen, type StringComparatorOperation, type StringDelimiter, type StringLength, type StringLiteralFromTuple, type StringLiteralTemplate, type StringLiteralToken, type StringLiteralVar, type StringTokenUtilities, type StripAfter, type StripBefore, type StripChars, type StripLeading, type StripLeftNonAlpha, type StripSlash, type StripSurround, type StripTrailing, type StripUntil, type StripWhile, type StrongMap, type StrongMapTransformer, type StrongMapTypes, type StructuredStringType, type Subtract, type Suggest, type SuggestHexadecimal, type SuggestIpAddress, type SuggestNumeric, type Surround, type SwissNewsCompanies, type SwissNewsUrls, type SymbolKind, type SyncFunction, type TLD, type TT_Atomic, type TT_Container, type TT_Function, type TT_Set, type TT_Singleton, type TZ, type TakeFirst, type TakeLast, type TakeProp, type TargetUrl, type Temperature, type TemperatureMetrics, type TemperatureUom, type Thenable, type Throw, type Time, type TimeInMilliseconds, type TimeInMinutes, type TimeInSeconds, type TimeLike, type TimeMetric, type TimeMetrics, type TimeNomenclature, type TimeResolution, type TimeUom, type Timezone, type ToBoolean, type ToCSV, type ToChoices, type ToContainer, type ToFn, type ToInteger, type ToIntegerOp, type ToJsonValue, type ToKv, type ToNumber, type ToNumericArray, type ToPhoneFormat, type ToString, type ToStringArray, type ToStringLiteral, type ToUnion, type TokenizeStringLiteral, type Trim, type TrimLeft, type TrimRight, type Truncate$1 as Truncate, type TruncateAtLen, type TruthyReturns, type Tuple, type TupleDefn, type TupleRange, type TupleToUnion, type TurkishNewsCompanies, type TurkishNewsUrls, type TwChroma, type TwChroma100, type TwChroma200, type TwChroma300, type TwChroma400, type TwChroma50, type TwChroma500, type TwChroma600, type TwChroma700, type TwChroma800, type TwChroma900, type TwChroma950, type TwChromaLookup, type TwColor, type TwColorOptionalOpacity, type TwColorTarget, type TwColorWithLuminosity, type TwColorWithLuminosityOpacity, type TwHue, type TwLumi100, type TwLumi200, type TwLumi300, type TwLumi400, type TwLumi50, type TwLumi500, type TwLumi600, type TwLumi700, type TwLumi800, type TwLumi900, type TwLumi950, type TwLuminosity, type TwLuminosityLookup, type TwModifier, type TwModifier__Core, type TwModifier__Order, type TwModifier__Reln, type TwModifier__Size, type TwModifiers, type TwNeutralColor, type TwSizeResponsive, type TwStaticColor, type TwTarget__Color, type TwTarget__ColorLuminosity, type TwTarget__ColorLuminosityWithOpacity, type TwTarget__ColorName, type TwTarget__ColorWithOptPrefixes, type TwTarget__Color__Light, type TwVibrantColor, type Type, type TypeDefaultValue, type TypeDefinition, type TypeDefn, type TypeDefnValidations, type TypeErrorInfo, type TypeGuard, type TypeHasDefaultValue, type TypeHasUnderlying, type TypeHasValidations, type TypeIsRequired, type TypeKind, type TypeKindContainer, type TypeKindContainerNarrow, type TypeKindContainerWide, type TypeKindFalsy, type TypeKindLiteral, type TypeKindWide, type TypeOf, type TypeOfExtended, type TypeOptions, type TypeRequired, type TypeStrength, type TypeSubtype, type TypeToken, type TypeTokenAtomics, type TypeTokenContainers, type TypeTokenDelimiter, type TypeTokenFunctions, type TypeTokenKind, type TypeTokenLookup, type TypeTokenSets, type TypeTokenSingletons, type TypeTokenStart, type TypeTokenStop, type TypeToken__Boolean, type TypeToken__False, type TypeToken__Fn, type TypeToken__FnSet, type TypeToken__Gen, type TypeToken__Never, type TypeToken__Null, type TypeToken__Number, type TypeToken__NumberSet, type TypeToken__Rec, type TypeToken__String, type TypeToken__StringSet, type TypeToken__True, type TypeToken__Undefined, type TypeToken__UnionSet, type TypeToken__Unknown, type TypeTuple, type TypeUnderlying, type TypedFunction, type TzHourOffset, type UkNewsCompanies, type UkNewsUrls, type UnderlyingType, type UnionArrayToTuple, type UnionElDefn, type UnionFilter, type UnionFromProp, type UnionHasArray, type UnionMutate, type UnionMutationOp, type UnionShift, type UnionToIntersection, type UnionToTuple$1 as UnionToTuple, type UnionWithAll, type Unique, type UniqueKeys, type UniqueKeysUnion, type UniqueKv, type UnitType, type Unset, type Uom, type UpperAlphaChar, type UpsertKeyValue, type Uri, type UrlBuilder, type UrlOptions, type UrlPath, type UrlPathChars, type UrlPort, type UrlQueryParameters, type UrlsFrom, type UsNewsCompanies, type UsNewsUrls, type UsPhoneNumber, type UsStateAbbrev, type UsStateName, type ValidKey, type Validate, type ValidationFunction, type ValueAtDotPath, type ValueCallback, type ValueOrReturnValue, type Values, type Variable, type VariableChar, type Visa, type VisaMastercard, type Voltage, type VoltageMetrics, type VoltageUom, type Volume, type VolumeDefinition, type VolumeMapping, type VolumeMetrics, type VolumeUom, type VueComputedRef, type VueRef, type WalgreensUrl, type WalmartUrl, type WayFairUrl, type WeakMapKeyDefn, type WeakMapValueDefn, type WhenNever, type WhereLeft, type Whitespace, type WholeFoodsUrl, type WideContainerNames, type WideTokenNames, type WideTypeName, type Widen, type WidenContainer, type WidenLiteral, type WidenScalar, type WidenTuple, type WidenUnion, type WidenValues, type WithDefault, type WithKeys, type WithNumericKeys, type WithStringKeys, type WithValue, type WithoutKeys, type WithoutValue, type WrapperFn, type YMD, type Year, type YouTubeCreatorUrl, type YouTubeEmbedUrl, type YouTubeFeedType, type YouTubeFeedUrl, type YouTubeHistoryUrl, type YouTubeHome, type YouTubeLikedPlaylistUrl, type YouTubePageType, type YouTubePlaylistUrl, type YouTubeShareUrl, type YouTubeSubscriptionsUrl, type YouTubeUrl, type YouTubeUsersPlaylistUrl, type YouTubeVideoUrl, type YouTubeVideosInPlaylist, type ZaraUrl, type Zero, type ZeroToMany, type ZeroToOne, type ZeroToZero, type Zip5, type ZipCode, type ZipPlus4, type ZipToState };
|