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
|
@@ -3684,17 +3684,17 @@ declare const TW_HUE$2: {
|
|
|
3684
3684
|
readonly stone: 273;
|
|
3685
3685
|
};
|
|
3686
3686
|
declare const TW_LUMINOSITY$2: {
|
|
3687
|
-
readonly 50: 97.78;
|
|
3688
|
-
readonly 100: 93.56;
|
|
3689
|
-
readonly 200: 88.11;
|
|
3690
|
-
readonly 300: 82.67;
|
|
3691
|
-
readonly 400: 74.22;
|
|
3692
|
-
readonly 500: 64.78;
|
|
3693
|
-
readonly 600: 57.33;
|
|
3694
|
-
readonly 700: 46.89;
|
|
3695
|
-
readonly 800: 39.44;
|
|
3696
|
-
readonly 900: 32;
|
|
3697
|
-
readonly 950: 23.78;
|
|
3687
|
+
readonly "50": 97.78;
|
|
3688
|
+
readonly "100": 93.56;
|
|
3689
|
+
readonly "200": 88.11;
|
|
3690
|
+
readonly "300": 82.67;
|
|
3691
|
+
readonly "400": 74.22;
|
|
3692
|
+
readonly "500": 64.78;
|
|
3693
|
+
readonly "600": 57.33;
|
|
3694
|
+
readonly "700": 46.89;
|
|
3695
|
+
readonly "800": 39.44;
|
|
3696
|
+
readonly "900": 32;
|
|
3697
|
+
readonly "950": 23.78;
|
|
3698
3698
|
};
|
|
3699
3699
|
declare const TW_LUMIN_50: 97.78;
|
|
3700
3700
|
declare const TW_LUMIN_100: 93.56;
|
|
@@ -3716,17 +3716,17 @@ declare const TW_LUMIN_950: 23.78;
|
|
|
3716
3716
|
* **Related:** `TW_CHROMA_50`, `TW_CHROMA_100`, ...
|
|
3717
3717
|
*/
|
|
3718
3718
|
declare const TW_CHROMA$2: {
|
|
3719
|
-
readonly 50: 0.0108;
|
|
3720
|
-
readonly 100: 0.0321;
|
|
3721
|
-
readonly 200: 0.0609;
|
|
3722
|
-
readonly 300: 0.0908;
|
|
3723
|
-
readonly 400: 0.1398;
|
|
3724
|
-
readonly 500: 0.1472;
|
|
3725
|
-
readonly 600: 0.1299;
|
|
3726
|
-
readonly 700: 0.1067;
|
|
3727
|
-
readonly 800: 0.0898;
|
|
3728
|
-
readonly 900: 0.0726;
|
|
3729
|
-
readonly 950: 0.054;
|
|
3719
|
+
readonly "50": 0.0108;
|
|
3720
|
+
readonly "100": 0.0321;
|
|
3721
|
+
readonly "200": 0.0609;
|
|
3722
|
+
readonly "300": 0.0908;
|
|
3723
|
+
readonly "400": 0.1398;
|
|
3724
|
+
readonly "500": 0.1472;
|
|
3725
|
+
readonly "600": 0.1299;
|
|
3726
|
+
readonly "700": 0.1067;
|
|
3727
|
+
readonly "800": 0.0898;
|
|
3728
|
+
readonly "900": 0.0726;
|
|
3729
|
+
readonly "950": 0.054;
|
|
3730
3730
|
};
|
|
3731
3731
|
declare const TW_CHROMA_50: 0.0108;
|
|
3732
3732
|
declare const TW_CHROMA_100: 0.0321;
|
|
@@ -7115,17 +7115,17 @@ declare const TW_HUE$1: {
|
|
|
7115
7115
|
readonly stone: 273;
|
|
7116
7116
|
};
|
|
7117
7117
|
declare const TW_LUMINOSITY$1: {
|
|
7118
|
-
readonly 50: 97.78;
|
|
7119
|
-
readonly 100: 93.56;
|
|
7120
|
-
readonly 200: 88.11;
|
|
7121
|
-
readonly 300: 82.67;
|
|
7122
|
-
readonly 400: 74.22;
|
|
7123
|
-
readonly 500: 64.78;
|
|
7124
|
-
readonly 600: 57.33;
|
|
7125
|
-
readonly 700: 46.89;
|
|
7126
|
-
readonly 800: 39.44;
|
|
7127
|
-
readonly 900: 32;
|
|
7128
|
-
readonly 950: 23.78;
|
|
7118
|
+
readonly "50": 97.78;
|
|
7119
|
+
readonly "100": 93.56;
|
|
7120
|
+
readonly "200": 88.11;
|
|
7121
|
+
readonly "300": 82.67;
|
|
7122
|
+
readonly "400": 74.22;
|
|
7123
|
+
readonly "500": 64.78;
|
|
7124
|
+
readonly "600": 57.33;
|
|
7125
|
+
readonly "700": 46.89;
|
|
7126
|
+
readonly "800": 39.44;
|
|
7127
|
+
readonly "900": 32;
|
|
7128
|
+
readonly "950": 23.78;
|
|
7129
7129
|
};
|
|
7130
7130
|
/**
|
|
7131
7131
|
* **TW_CHROMA**
|
|
@@ -7136,17 +7136,17 @@ declare const TW_LUMINOSITY$1: {
|
|
|
7136
7136
|
* **Related:** `TW_CHROMA_50`, `TW_CHROMA_100`, ...
|
|
7137
7137
|
*/
|
|
7138
7138
|
declare const TW_CHROMA$1: {
|
|
7139
|
-
readonly 50: 0.0108;
|
|
7140
|
-
readonly 100: 0.0321;
|
|
7141
|
-
readonly 200: 0.0609;
|
|
7142
|
-
readonly 300: 0.0908;
|
|
7143
|
-
readonly 400: 0.1398;
|
|
7144
|
-
readonly 500: 0.1472;
|
|
7145
|
-
readonly 600: 0.1299;
|
|
7146
|
-
readonly 700: 0.1067;
|
|
7147
|
-
readonly 800: 0.0898;
|
|
7148
|
-
readonly 900: 0.0726;
|
|
7149
|
-
readonly 950: 0.054;
|
|
7139
|
+
readonly "50": 0.0108;
|
|
7140
|
+
readonly "100": 0.0321;
|
|
7141
|
+
readonly "200": 0.0609;
|
|
7142
|
+
readonly "300": 0.0908;
|
|
7143
|
+
readonly "400": 0.1398;
|
|
7144
|
+
readonly "500": 0.1472;
|
|
7145
|
+
readonly "600": 0.1299;
|
|
7146
|
+
readonly "700": 0.1067;
|
|
7147
|
+
readonly "800": 0.0898;
|
|
7148
|
+
readonly "900": 0.0726;
|
|
7149
|
+
readonly "950": 0.054;
|
|
7150
7150
|
};
|
|
7151
7151
|
/**
|
|
7152
7152
|
* The list of "targets" where Tailwind color string references
|
|
@@ -7877,23 +7877,23 @@ type ValidChars$1<T extends readonly string[]> = [] extends T ? true : First$1<T
|
|
|
7877
7877
|
*/
|
|
7878
7878
|
type IsVariable$1<T extends string> = T extends Variable$1 ? ValidChars$1<Chars$1<T>> extends true ? true : false : false;
|
|
7879
7879
|
|
|
7880
|
-
type Process$
|
|
7880
|
+
type Process$1A$1<TVal, TDefault> = TVal extends Something$1 ? TVal : TDefault;
|
|
7881
7881
|
/**
|
|
7882
7882
|
* **Default**`<TVal,TDefault,[TProtect]>`
|
|
7883
7883
|
*
|
|
7884
7884
|
* Branching operator which allows giving a value `TVal` a _default value_ when
|
|
7885
7885
|
* it's value is either `null` or `undefined`.
|
|
7886
7886
|
*/
|
|
7887
|
-
type Default$1<TVal, TDefault> = Process$
|
|
7887
|
+
type Default$1<TVal, TDefault> = Process$1A$1<TVal, TDefault>;
|
|
7888
7888
|
|
|
7889
|
-
type Process$
|
|
7889
|
+
type Process$1z$1<TConditions extends readonly boolean[], TBooleanSeen extends boolean> = [] extends TConditions ? IfEqual$1<TBooleanSeen, true, boolean, true> : [First$1<TConditions>] extends [false] ? false : Process$1z$1<AfterFirst$1<TConditions>, TBooleanSeen>;
|
|
7890
7890
|
/**
|
|
7891
7891
|
* **And**`<TConditions, [TEmpty]>`
|
|
7892
7892
|
*
|
|
7893
7893
|
* Allows an array of conditions which are either ARE a boolean value or a
|
|
7894
7894
|
* function which evaluates to a boolean value to be logically AND'd together.
|
|
7895
7895
|
*/
|
|
7896
|
-
type And$1<TConditions, TEmpty extends boolean = false> = TConditions extends readonly (boolean | LogicFunction$1)[] ? IsEqual$1<TConditions, []> extends true ? TEmpty : LogicalReturns$1<TConditions> extends readonly boolean[] ? Process$
|
|
7896
|
+
type And$1<TConditions, TEmpty extends boolean = false> = TConditions extends readonly (boolean | LogicFunction$1)[] ? IsEqual$1<TConditions, []> extends true ? TEmpty : LogicalReturns$1<TConditions> extends readonly boolean[] ? Process$1z$1<LogicalReturns$1<TConditions>, NarrowlyContains$1<LogicalReturns$1<TConditions>, boolean>> : never : never;
|
|
7897
7897
|
|
|
7898
7898
|
/**
|
|
7899
7899
|
* comparison operators which require the base type to be a string
|
|
@@ -7910,14 +7910,14 @@ type NumericComparatorOperation$1 = "greaterThan" | "greaterThanOrEqual" | "less
|
|
|
7910
7910
|
*/
|
|
7911
7911
|
type ComparatorOperation$1 = "extends" | "equals" | StringComparatorOperation$1 | "contains" | "containsAll" | NumericComparatorOperation$1 | "returnEquals" | "returnExtends";
|
|
7912
7912
|
type Unionize$1<T> = T extends readonly unknown[] ? TupleToUnion$1<T> : T;
|
|
7913
|
-
type Process$
|
|
7913
|
+
type Process$1y$1<TVal, TOp extends ComparatorOperation$1, TComparator> = TOp extends "extends" ? DoesExtend$1<TVal, Unionize$1<TComparator>> : TOp extends "equals" ? IsEqual$1<TVal, Unionize$1<TComparator>> : TOp extends "contains" ? [TVal] extends [string | number | Tuple$1] ? Contains$1<TVal, TComparator> : never : TOp extends "containsAll" ? [TVal] extends [Tuple$1] ? [TComparator] extends [string | number | readonly string[]] ? Contains$1<TVal, TComparator> : never : never : TOp extends "startsWith" ? [TVal] extends [string | number] ? [TComparator] extends [string | number | readonly string[]] ? StartsWith$1<TVal, TComparator> : never : never : TOp extends "greaterThan" ? And$1<[Extends$1<TComparator, NumberLike$1>, Extends$1<TVal, NumberLike$1>]> extends true ? IsGreaterThan$1<As$1<TVal, NumberLike$1>, As$1<TComparator, NumberLike$1>> : never : TOp extends "greaterThanOrEqual" ? And$1<[Extends$1<TComparator, NumberLike$1>, Extends$1<TVal, NumberLike$1>]> extends true ? IsGreaterThanOrEqual$1<As$1<TVal, NumberLike$1>, As$1<TComparator, NumberLike$1>> : never : TOp extends "lessThan" ? And$1<[Extends$1<TComparator, NumberLike$1>, Extends$1<TVal, NumberLike$1>]> extends true ? IsLessThan$1<As$1<TVal, NumberLike$1>, As$1<TComparator, NumberLike$1>> : never : TOp extends "lessThanOrEqual" ? And$1<[Extends$1<TComparator, NumberLike$1>, Extends$1<TVal, NumberLike$1>]> extends true ? IsLessThanOrEqual$1<As$1<TVal, NumberLike$1>, As$1<TComparator, NumberLike$1>> : never : TOp extends "endsWith" ? [TVal] extends [string | number] ? [TComparator] extends [string | number | readonly string[]] ? EndsWith$1<TVal, TComparator> : never : never : TOp extends "returnEquals" ? TVal extends ((...args: any[]) => any) ? IsEqual$1<ReturnType<TVal>, TComparator> : false : TOp extends "returnExtends" ? TVal extends ((...args: any[]) => any) ? IsEqual$1<ReturnType<TVal>, TComparator> : false : never;
|
|
7914
7914
|
/**
|
|
7915
7915
|
* **Compare**`<TVal,TOp,TComparator>`
|
|
7916
7916
|
*
|
|
7917
7917
|
* Compares the value `TVal` with `TComparator` using
|
|
7918
7918
|
* the `TOp` _operator_.
|
|
7919
7919
|
*/
|
|
7920
|
-
type Compare$1$1<TVal, TOp extends ComparatorOperation$1, TComparator> = WhenNever$1<Process$
|
|
7920
|
+
type Compare$1$1<TVal, TOp extends ComparatorOperation$1, TComparator> = WhenNever$1<Process$1y$1<TVal, TOp, TComparator>>;
|
|
7921
7921
|
|
|
7922
7922
|
type Negate$1<TVal> = IsNever$1<TVal> extends true ? never : [TVal] extends [boolean] ? IsTrue$1<TVal> extends true ? false : IsFalse$1<TVal> extends true ? true : boolean : [TVal] extends [LogicFunction$1] ? Negate$1<ReturnType<LogicFunction$1>> : never;
|
|
7923
7923
|
type NegateTuple$1<TTuple extends readonly (boolean | LogicFunction$1)[], TResults extends readonly (boolean | LogicFunction$1)[] = []> = [] extends TTuple ? IsEqual$1<TResults, [], false, TResults> : NegateTuple$1<AfterFirst$1<TTuple>, [
|
|
@@ -7939,7 +7939,7 @@ type NegateTuple$1<TTuple extends readonly (boolean | LogicFunction$1)[], TResul
|
|
|
7939
7939
|
*/
|
|
7940
7940
|
type Not$1<TVal, TNotBoolean extends boolean = false> = [TVal] extends [boolean] ? Exclude<As$1<Negate$1<TVal>, boolean>, any[]> : [TVal] extends [LogicFunction$1] ? As$1<Negate$1<ReturnType<TVal>>, boolean> : [TVal] extends [readonly (LogicFunction$1 | boolean)[]] ? As$1<NegateTuple$1<TVal>, readonly boolean[]> : TNotBoolean;
|
|
7941
7941
|
|
|
7942
|
-
type Process$
|
|
7942
|
+
type Process$1x$1<TConditions extends readonly boolean[], TBooleanSean extends boolean> = NarrowlyContains$1<TConditions, true> extends true ? true : [IsEqual$1<TBooleanSean, true>] extends [true] ? boolean : false;
|
|
7943
7943
|
type ConditionError$1<TErr> = TErr extends ErrorCondition$1 ? ProxyError$1<TErr, "Or", "TConditions"> : never;
|
|
7944
7944
|
/**
|
|
7945
7945
|
* **Or**`<TConditions, [TEmpty]>`
|
|
@@ -7952,16 +7952,16 @@ type ConditionError$1<TErr> = TErr extends ErrorCondition$1 ? ProxyError$1<TErr,
|
|
|
7952
7952
|
*
|
|
7953
7953
|
* **Related:** `And`
|
|
7954
7954
|
*/
|
|
7955
|
-
type Or$1<TConditions, TEmpty extends boolean = false> = IsNever$1<TConditions> extends true ? Throw$1<"invalid-never", `Or<TConditions> received "never" for it's conditions!`, "Or"> : IsEqual$1<TConditions, []> extends true ? TEmpty : TConditions extends readonly (boolean | LogicFunction$1)[] ? LogicalReturns$1<TConditions> extends readonly boolean[] ? Process$
|
|
7955
|
+
type Or$1<TConditions, TEmpty extends boolean = false> = IsNever$1<TConditions> extends true ? Throw$1<"invalid-never", `Or<TConditions> received "never" for it's conditions!`, "Or"> : IsEqual$1<TConditions, []> extends true ? TEmpty : TConditions extends readonly (boolean | LogicFunction$1)[] ? LogicalReturns$1<TConditions> extends readonly boolean[] ? Process$1x$1<LogicalReturns$1<TConditions>, NarrowlyContains$1<LogicalReturns$1<TConditions>, boolean>> : never : IsErrorCondition$1<TConditions> extends true ? ConditionError$1<TConditions> : Throw$1<"invalid-conditions", `The conditions passed to Or<TConditions> were invalid!`, "Or", {
|
|
7956
7956
|
library: "inferred-types/constants";
|
|
7957
7957
|
value: TConditions;
|
|
7958
7958
|
}>;
|
|
7959
7959
|
|
|
7960
|
-
type Process$
|
|
7960
|
+
type Process$1w$1<TElements extends readonly unknown[], TOp extends ComparatorOperation$1, TComparator> = [] extends TElements ? false : [WhenNever$1<Compare$1$1<First$1<TElements>, TOp, TComparator>>] extends [true] ? true : Process$1w$1<AfterFirst$1<TElements>, TOp, TComparator>;
|
|
7961
7961
|
type Some$1<TContainer extends Container$1, TOp extends "extends" | "equals" | "startsWith" | "endsWith" | "lessThan" | "greaterThan", TComparator extends Or$1<[
|
|
7962
7962
|
IsEqual$1<TOp, "startsWith">,
|
|
7963
7963
|
IsEqual$1<TOp, "endsWith">
|
|
7964
|
-
]> extends true ? string : Or$1<[IsEqual$1<TOp, "lessThan">, IsEqual$1<TOp, "greaterThan">]> extends true ? NumberLike$1 : unknown> = TContainer extends readonly unknown[] ? Process$
|
|
7964
|
+
]> extends true ? string : Or$1<[IsEqual$1<TOp, "lessThan">, IsEqual$1<TOp, "greaterThan">]> extends true ? NumberLike$1 : unknown> = TContainer extends readonly unknown[] ? Process$1w$1<TContainer, TOp, TComparator> : TContainer extends Dictionary$1 ? Process$1w$1<Values$1<TContainer>, TOp, TComparator> : never;
|
|
7965
7965
|
|
|
7966
7966
|
type AllAcc$1<TList extends readonly unknown[], TExtend> = [] extends TList ? true : If$1<Extends$1<First$1<TList>, TExtend>, AllAcc$1<AfterFirst$1<TList>, TExtend>, false>;
|
|
7967
7967
|
/**
|
|
@@ -8052,11 +8052,11 @@ type Contains$1<TContent extends string | number | readonly unknown[], TComparat
|
|
|
8052
8052
|
type DoesExtend$1<TValue, TExtends> = IsNever$1<TValue> extends true ? false : [TValue] extends [TExtends] ? true : false;
|
|
8053
8053
|
|
|
8054
8054
|
type Test$1$1<TValue extends string, TComparator extends string> = TValue extends `${string}${TComparator}` ? true : false;
|
|
8055
|
-
type Process$
|
|
8055
|
+
type Process$1v$1<TValue extends string, TComparator extends string> = IsStringLiteral$1<TComparator> extends true ? IsStringLiteral$1<TValue> extends true ? Test$1$1<TValue, TComparator> : boolean : boolean;
|
|
8056
8056
|
type ProcessEach$1$1<TValue extends string, TComparator extends readonly string[]> = Or$1<{
|
|
8057
|
-
[K in keyof TComparator]: Process$
|
|
8057
|
+
[K in keyof TComparator]: Process$1v$1<TValue, TComparator[K]>;
|
|
8058
8058
|
}>;
|
|
8059
|
-
type PreProcess$4$1<TValue extends string, TComparator extends string | readonly string[]> = TComparator extends readonly string[] ? ProcessEach$1$1<TValue, TComparator> : TComparator extends string ? Process$
|
|
8059
|
+
type PreProcess$4$1<TValue extends string, TComparator extends string | readonly string[]> = TComparator extends readonly string[] ? ProcessEach$1$1<TValue, TComparator> : TComparator extends string ? Process$1v$1<TValue, TComparator> : never;
|
|
8060
8060
|
/**
|
|
8061
8061
|
* **EndsWith**<TValue, TComparator>
|
|
8062
8062
|
*
|
|
@@ -8093,13 +8093,13 @@ type _HasArray$1<TList extends readonly unknown[]> = [] extends TList ? false :
|
|
|
8093
8093
|
*/
|
|
8094
8094
|
type HasArray$1<TList extends readonly unknown[]> = _HasArray$1<TList>;
|
|
8095
8095
|
|
|
8096
|
-
type Process$
|
|
8096
|
+
type Process$1u$1<TStr extends string, TChars extends string, _TOp extends "any" | "all"> = TStr extends `${string}${TChars}${string}` ? true : false;
|
|
8097
8097
|
type ProcessTuple$4$1<TStr extends string, TChars extends readonly string[], TOp extends "any" | "all"> = TOp extends "any" ? Or$1<{
|
|
8098
8098
|
[K in keyof TChars]: TStr extends `${string}${TChars[K]}${string}` ? true : false;
|
|
8099
8099
|
}> : And$1<{
|
|
8100
8100
|
[K in keyof TChars]: TStr extends `${string}${TChars[K]}${string}` ? true : false;
|
|
8101
8101
|
}>;
|
|
8102
|
-
type PreProcess$3$1<TStr extends string, TChars extends string, TOp extends "any" | "all"> = IsUnion$1<TChars> extends true ? UnionToTuple$1$1<TChars> extends readonly string[] ? ProcessTuple$4$1<TStr, UnionToTuple$1$1<TChars>, TOp> : never : Process$
|
|
8102
|
+
type PreProcess$3$1<TStr extends string, TChars extends string, TOp extends "any" | "all"> = IsUnion$1<TChars> extends true ? UnionToTuple$1$1<TChars> extends readonly string[] ? ProcessTuple$4$1<TStr, UnionToTuple$1$1<TChars>, TOp> : never : Process$1u$1<TStr, TChars, TOp>;
|
|
8103
8103
|
/**
|
|
8104
8104
|
* **HasCharacters**`<TStr,TChars>`
|
|
8105
8105
|
*
|
|
@@ -8113,7 +8113,7 @@ type PreProcess$3$1<TStr extends string, TChars extends string, TOp extends "any
|
|
|
8113
8113
|
*/
|
|
8114
8114
|
type HasCharacters$1<TStr extends string, TChars extends string | readonly string[], TOp extends "any" | "all" = "any"> = IsStringLiteral$1<TStr> extends true ? TChars extends string ? IsStringLiteral$1<TChars> extends true ? PreProcess$3$1<TStr, TChars, TOp> : boolean : TChars extends readonly string[] ? AllStringLiterals$1<AsArray$1<TChars>> extends true ? ProcessTuple$4$1<TStr, TChars, TOp> : boolean : boolean : boolean;
|
|
8115
8115
|
|
|
8116
|
-
type Process$
|
|
8116
|
+
type Process$1t$1<TStr extends string, TChars extends string> = ReplaceAll$1<TStr, TChars, ""> extends "" ? false : true;
|
|
8117
8117
|
/**
|
|
8118
8118
|
* **HasOtherCharacters**`<TStr,TChars>`
|
|
8119
8119
|
*
|
|
@@ -8125,7 +8125,7 @@ type Process$1s$1<TStr extends string, TChars extends string> = ReplaceAll$1<TSt
|
|
|
8125
8125
|
*
|
|
8126
8126
|
* **Related:** `HasCharacters`
|
|
8127
8127
|
*/
|
|
8128
|
-
type HasOtherCharacters$1<TStr extends string, TChars extends string | readonly string[]> = [IsWideType$1<TStr>] extends [true] ? boolean : [TChars] extends [string] ? IsWideType$1<TChars> extends true ? boolean : Process$
|
|
8128
|
+
type HasOtherCharacters$1<TStr extends string, TChars extends string | readonly string[]> = [IsWideType$1<TStr>] extends [true] ? boolean : [TChars] extends [string] ? IsWideType$1<TChars> extends true ? boolean : Process$1t$1<TStr, TChars> : TChars extends readonly string[] ? Process$1t$1<TStr, TupleToUnion$1<TChars>> : never;
|
|
8129
8129
|
|
|
8130
8130
|
/**
|
|
8131
8131
|
* **HasParameters**`<T>`
|
|
@@ -8365,7 +8365,7 @@ type Validations$1<T> = IsStringLiteral$1<T> extends true ? true : IsNumericLite
|
|
|
8365
8365
|
*/
|
|
8366
8366
|
type IsLiteral$1<T> = [IsUnion$1<T>] extends [true] ? false : Validations$1<T>;
|
|
8367
8367
|
|
|
8368
|
-
type Process$
|
|
8368
|
+
type Process$1q$1<T> = UnionToTuple$1$1<T> extends readonly unknown[] ? RetainLiterals$1<UnionToTuple$1$1<T>>["length"] extends UnionToTuple$1$1<T>["length"] ? true : false : never;
|
|
8369
8369
|
/**
|
|
8370
8370
|
* **IsLiteralUnion**`<T>`
|
|
8371
8371
|
*
|
|
@@ -8374,7 +8374,7 @@ type Process$1p$1<T> = UnionToTuple$1$1<T> extends readonly unknown[] ? RetainLi
|
|
|
8374
8374
|
*
|
|
8375
8375
|
* **Related:** `IsLiteralUnion`, `IsWideUnion`
|
|
8376
8376
|
*/
|
|
8377
|
-
type IsLiteralUnion$1<T> = [IsUnion$1<T>] extends [true] ? Process$
|
|
8377
|
+
type IsLiteralUnion$1<T> = [IsUnion$1<T>] extends [true] ? Process$1q$1<T> : false;
|
|
8378
8378
|
|
|
8379
8379
|
/**
|
|
8380
8380
|
* **IsNarrowingFn**`<TFn>`
|
|
@@ -8493,7 +8493,7 @@ type IsSingleChar$1<T> = T extends string ? Length$1<T> extends 1 ? true : If$1<
|
|
|
8493
8493
|
*/
|
|
8494
8494
|
type IsString$1<T> = [IsUnion$1<T>] extends [true] ? WidenUnion$1<T> extends string ? true : string extends WidenUnion$1<T> ? boolean : false : [T] extends [string] ? true : false;
|
|
8495
8495
|
|
|
8496
|
-
type Process$
|
|
8496
|
+
type Process$1n$1<T, TNever> = [IsNever$1<T>] extends [true] ? TNever : [IsEqual$1<T, true>] extends [true] ? true : false;
|
|
8497
8497
|
/**
|
|
8498
8498
|
* **IsTrue**`<T,[TNever]>`
|
|
8499
8499
|
*
|
|
@@ -8507,9 +8507,9 @@ type Process$1m$1<T, TNever> = [IsNever$1<T>] extends [true] ? TNever : [IsEqual
|
|
|
8507
8507
|
* type F2 = IsTrue<"foobar">;
|
|
8508
8508
|
* ```
|
|
8509
8509
|
*/
|
|
8510
|
-
type IsTrue$1<T, TNever = never> = Process$
|
|
8510
|
+
type IsTrue$1<T, TNever = never> = Process$1n$1<T, TNever>;
|
|
8511
8511
|
|
|
8512
|
-
type Process$
|
|
8512
|
+
type Process$1m$1<T> = [IsNever$1<T>] extends [true] ? false : T extends readonly unknown[] ? number extends T["length"] ? false : true : false;
|
|
8513
8513
|
/**
|
|
8514
8514
|
* **IsTuple**`<T>`
|
|
8515
8515
|
*
|
|
@@ -8522,7 +8522,7 @@ type Process$1l$1<T> = [IsNever$1<T>] extends [true] ? false : T extends readonl
|
|
|
8522
8522
|
* - types such as `string[]`, etc. are _not_ tuples as they
|
|
8523
8523
|
* do not discretely specify a length of elements
|
|
8524
8524
|
*/
|
|
8525
|
-
type IsTuple$1<T> = Process$
|
|
8525
|
+
type IsTuple$1<T> = Process$1m$1<T> extends boolean ? Process$1m$1<T> : never;
|
|
8526
8526
|
|
|
8527
8527
|
/**
|
|
8528
8528
|
* **IsUndefined**
|
|
@@ -8674,7 +8674,7 @@ type InvalidNever$1 = Throw$1<"invalid-never", `The value of T when calling IsWi
|
|
|
8674
8674
|
*/
|
|
8675
8675
|
type IsWideType$1<T, TNever = InvalidNever$1> = [IsNever$1<T>] extends [true] ? TNever : [T] extends [ErrorCondition$1] ? ProxyError$1<T, "IsWideType"> : IsWideScalar$1<T> extends true ? true : IsWideContainer$1<T> extends true ? true : IsWideUnion$1<T> extends true ? true : false;
|
|
8676
8676
|
|
|
8677
|
-
type Process$
|
|
8677
|
+
type Process$1l$1<T extends readonly unknown[]> = {
|
|
8678
8678
|
[K in keyof T]: IsWideType$1<T[K]> extends true ? true : Or$1<[IsUndefined$1<T[K]>, IsNull$1<T[K]>]> extends true ? true : false;
|
|
8679
8679
|
};
|
|
8680
8680
|
/**
|
|
@@ -8685,7 +8685,7 @@ type Process$1k$1<T extends readonly unknown[]> = {
|
|
|
8685
8685
|
*
|
|
8686
8686
|
* **Related:** `IsNonLiteralUnion`
|
|
8687
8687
|
*/
|
|
8688
|
-
type IsWideUnion$1<T> = [IsUnion$1<T>] extends [true] ? [Process$
|
|
8688
|
+
type IsWideUnion$1<T> = [IsUnion$1<T>] extends [true] ? [Process$1l$1<UnionToTuple$1$1<T>>] extends [readonly true[]] ? true : false : false;
|
|
8689
8689
|
|
|
8690
8690
|
type Overlap$1<TKeys extends readonly ObjectKey$1[], TComparator extends AnyObject$1> = [] extends TKeys ? false : First$1<TKeys> extends keyof TComparator ? true : Overlap$1<AfterFirst$1<TKeys>, TComparator>;
|
|
8691
8691
|
/**
|
|
@@ -8774,7 +8774,7 @@ type HasQueryParameter$1<T extends string, P extends string> = And$1<[
|
|
|
8774
8774
|
]> extends true ? GetUrlQueryParams$1<T> extends `${string}${P}=${string}` ? true : false : boolean;
|
|
8775
8775
|
|
|
8776
8776
|
type Check$1<TValue extends string, TComparator extends string | number> = TValue extends `${TComparator}${string}` ? true : false;
|
|
8777
|
-
type Process$
|
|
8777
|
+
type Process$1k$1<TValue extends string, TComparator extends string | number | readonly string[]> = TComparator extends readonly string[] ? Check$1<[
|
|
8778
8778
|
TValue
|
|
8779
8779
|
] extends [number] ? `${TValue}` : TValue, TupleToUnion$1<TComparator>> : Check$1<[
|
|
8780
8780
|
TValue
|
|
@@ -8793,9 +8793,9 @@ type Process$1j$1<TValue extends string, TComparator extends string | number | r
|
|
|
8793
8793
|
* - this can be much more type efficient for unions with lots of characters
|
|
8794
8794
|
* - if you need larger pattern matches then use a Tuple for `TComparator`
|
|
8795
8795
|
*/
|
|
8796
|
-
type StartsWith$1<TValue extends string | number, TComparator extends string | number | readonly string[]> = [IsWideType$1<TValue>] extends [true] ? boolean : [IsWideType$1<TComparator>] extends [true] ? boolean : IsEqual$1<Process$
|
|
8796
|
+
type StartsWith$1<TValue extends string | number, TComparator extends string | number | readonly string[]> = [IsWideType$1<TValue>] extends [true] ? boolean : [IsWideType$1<TComparator>] extends [true] ? boolean : IsEqual$1<Process$1k$1<AsString$1<TValue>, TComparator>, boolean> extends true ? true : Process$1k$1<AsString$1<TValue>, TComparator>;
|
|
8797
8797
|
|
|
8798
|
-
type Process$
|
|
8798
|
+
type Process$1j$1<T extends readonly unknown[]> = HasArray$1<T> extends true ? true : false;
|
|
8799
8799
|
/**
|
|
8800
8800
|
* **UnionHasArray**`<T>`
|
|
8801
8801
|
*
|
|
@@ -8805,7 +8805,7 @@ type Process$1i$1<T extends readonly unknown[]> = HasArray$1<T> extends true ? t
|
|
|
8805
8805
|
* - and that one of the elements of the union is an array
|
|
8806
8806
|
* of some sort.
|
|
8807
8807
|
*/
|
|
8808
|
-
type UnionHasArray$1<T> = IsUnion$1<T> extends true ? Process$
|
|
8808
|
+
type UnionHasArray$1<T> = IsUnion$1<T> extends true ? Process$1j$1<UnionToTuple$1$1<T>> : false;
|
|
8809
8809
|
|
|
8810
8810
|
type ShouldFail$1<TTest> = [IsNever$1<TTest>] extends [true] ? true : [IsFalse$1<TTest>] extends [true] ? true : false;
|
|
8811
8811
|
type Iterate$8$1<TTest extends readonly unknown[]> = Or$1<{
|
|
@@ -8915,8 +8915,8 @@ type Merge$1$1<TUser extends Partial<OnPassRemap$1>, TKeys extends readonly (Obj
|
|
|
8915
8915
|
false: false;
|
|
8916
8916
|
error: Constant$1<"not-set">;
|
|
8917
8917
|
}> = [] extends TKeys ? TConfig : Merge$1$1<TUser, AfterFirst$1<TKeys>, As$1<ExpandDictionary$1<Record<First$1<TKeys>, TUser[First$1<TKeys>]> & Omit<TConfig, First$1<TKeys>>>, OnPassRemap$1>>;
|
|
8918
|
-
type Process$
|
|
8919
|
-
type Iterate$7$1<TTest extends readonly unknown[], TPass, TRemap extends OnPassRemap$1<unknown, unknown, unknown>> = [] extends TTest ? TPass : Process$
|
|
8918
|
+
type Process$1h$1<TTest, TPass, TRemap extends OnPassRemap$1<unknown, unknown, unknown>> = [IsNever$1<TTest>] extends [true] ? TRemap["never"] : [IsErrorCondition$1<TTest>] extends [true] ? TRemap["error"] extends Constant$1<"not-set"> ? TTest : TRemap["error"] : [IsFalse$1<TTest>] extends [true] ? TRemap["false"] : TPass;
|
|
8919
|
+
type Iterate$7$1<TTest extends readonly unknown[], TPass, TRemap extends OnPassRemap$1<unknown, unknown, unknown>> = [] extends TTest ? TPass : Process$1h$1<First$1<TTest>, TPass, TRemap> extends TPass ? Iterate$7$1<AfterFirst$1<TTest>, TPass, TRemap> : Process$1h$1<First$1<TTest>, TPass, TRemap>;
|
|
8920
8920
|
/**
|
|
8921
8921
|
* **OnPass**`<TTest, TPass,[TRemap],[TFalse]>`
|
|
8922
8922
|
*
|
|
@@ -8930,7 +8930,7 @@ type Iterate$7$1<TTest extends readonly unknown[], TPass, TRemap extends OnPassR
|
|
|
8930
8930
|
* - the `TRemap` allows you to remap error conditions
|
|
8931
8931
|
* as well if needed
|
|
8932
8932
|
*/
|
|
8933
|
-
type OnPass$1<TTest, TPass, TRemap extends Partial<OnPassRemap$1<unknown, unknown, unknown>> = OnPassRemap$1<never, false, Constant$1<"not-set">>> = TTest extends readonly unknown[] ? Iterate$7$1<TTest, TPass, TRemap extends OnPassRemap$1<never, false, Constant$1<"not-set">> ? TRemap : Merge$1$1<TRemap, Keys$1<TRemap>>> : Process$
|
|
8933
|
+
type OnPass$1<TTest, TPass, TRemap extends Partial<OnPassRemap$1<unknown, unknown, unknown>> = OnPassRemap$1<never, false, Constant$1<"not-set">>> = TTest extends readonly unknown[] ? Iterate$7$1<TTest, TPass, TRemap extends OnPassRemap$1<never, false, Constant$1<"not-set">> ? TRemap : Merge$1$1<TRemap, Keys$1<TRemap>>> : Process$1h$1<TTest, TPass, TRemap extends OnPassRemap$1<never, false, Constant$1<"not-set">> ? TRemap : Merge$1$1<TRemap, Keys$1<TRemap>>>;
|
|
8934
8934
|
|
|
8935
8935
|
/**
|
|
8936
8936
|
* **WhenNever**`<T, [TMapTo]>`
|
|
@@ -9009,13 +9009,13 @@ type RemoveEmpty$1<T> = T extends Tuple$1 ? As$1<RemoveMarked$1<ProcessTup$1<T>>
|
|
|
9009
9009
|
|
|
9010
9010
|
type Marked$2$1 = typeof MARKED$1;
|
|
9011
9011
|
type _Keys$4$1<T extends object> = UnionToTuple$1$1<keyof RemoveIndexKeys$1<T>> extends readonly ObjectKey$1[] ? UnionToTuple$1$1<keyof RemoveIndexKeys$1<T>> : never;
|
|
9012
|
-
type Process$
|
|
9012
|
+
type Process$1f$1<T extends Container$1, TKeys extends readonly PropertyKey[], TResults extends Container$1 = T extends readonly unknown[] ? [] : EmptyObject$1> = [] extends TKeys ? TResults : First$1<TKeys> extends keyof T ? DoesExtend$1<T[First$1<TKeys>], Marked$2$1> extends true ? Process$1f$1<T, AfterFirst$1<TKeys>, TResults> : Process$1f$1<T, AfterFirst$1<TKeys>, First$1<TKeys> extends keyof T ? TResults extends readonly unknown[] ? [...TResults, T[First$1<TKeys>]] : TResults extends Dictionary$1 ? TResults & Record<First$1<TKeys>, T[First$1<TKeys>]> : never : never> : never;
|
|
9013
9013
|
/**
|
|
9014
9014
|
* **RemoveMarked**`<T>`
|
|
9015
9015
|
*
|
|
9016
9016
|
* Removes all values in `T` which extends `Constant<"Marked">`
|
|
9017
9017
|
*/
|
|
9018
|
-
type RemoveMarked$1<T extends Container$1> = Process$
|
|
9018
|
+
type RemoveMarked$1<T extends Container$1> = Process$1f$1<T, T extends Tuple$1 ? NumericKeys$1<T> : _Keys$4$1<T>>;
|
|
9019
9019
|
|
|
9020
9020
|
/**
|
|
9021
9021
|
* **RemoveIndexKeys**`<T>`
|
|
@@ -9053,7 +9053,7 @@ type _AsArray$1<T> = T extends Tuple$1 ? Mutable$1<T> : If$1<IsUndefined$1<T>, [
|
|
|
9053
9053
|
*/
|
|
9054
9054
|
type AsArray$1<T> = _AsArray$1<T> extends any[] ? _AsArray$1<T> : never;
|
|
9055
9055
|
|
|
9056
|
-
type Process$
|
|
9056
|
+
type Process$1e$1<T extends `${number}`> = If$1<IsStringLiteral$1<T>, StripLeading$1<T, "-">, string>;
|
|
9057
9057
|
/**
|
|
9058
9058
|
* **Abs**`<T>`
|
|
9059
9059
|
*
|
|
@@ -9062,7 +9062,7 @@ type Process$1d$1<T extends `${number}`> = If$1<IsStringLiteral$1<T>, StripLeadi
|
|
|
9062
9062
|
* - you can pass in a numeric string literal and it perform ABS func while
|
|
9063
9063
|
* preserving string literal type
|
|
9064
9064
|
*/
|
|
9065
|
-
type Abs$1<T extends NumberLike$1> = T extends number ? AsNumber$1<Process$
|
|
9065
|
+
type Abs$1<T extends NumberLike$1> = T extends number ? AsNumber$1<Process$1e$1<`${T}`>> : T extends `${number}` ? Process$1e$1<T> : never;
|
|
9066
9066
|
|
|
9067
9067
|
/**
|
|
9068
9068
|
* **NumericChar**
|
|
@@ -9086,13 +9086,13 @@ type GrowExp$1<A extends any[], N extends number, P extends any[][], L extends n
|
|
|
9086
9086
|
type MapItemType$1<T, I> = {
|
|
9087
9087
|
[K in keyof T]: I;
|
|
9088
9088
|
};
|
|
9089
|
-
type Process$
|
|
9089
|
+
type Process$1d$1<T, N extends number> = N extends 0 ? [] : MapItemType$1<GrowExp$1<[0], N, []>, T>;
|
|
9090
9090
|
/**
|
|
9091
9091
|
* **FixedLengthArray**`<T,N>`
|
|
9092
9092
|
*
|
|
9093
9093
|
* Creates a fixed length `<N>` array of a given type `<T>`
|
|
9094
9094
|
*/
|
|
9095
|
-
type FixedLengthArray$1<T, N extends number> = Process$
|
|
9095
|
+
type FixedLengthArray$1<T, N extends number> = Process$1d$1<T, N> extends readonly unknown[] ? Process$1d$1<T, N> : never;
|
|
9096
9096
|
|
|
9097
9097
|
/**
|
|
9098
9098
|
* **ParseInt**`<T>`
|
|
@@ -9115,7 +9115,7 @@ type ParseInt$1<T> = T extends `${infer N extends number}` ? N : never;
|
|
|
9115
9115
|
*/
|
|
9116
9116
|
type AsNumber$1<T> = T extends number ? T : T extends `${number}` ? ParseInt$1<T> : never;
|
|
9117
9117
|
|
|
9118
|
-
type Process$
|
|
9118
|
+
type Process$1c$1<TTuple extends readonly string[], TSeparator extends string, TResult extends string = ""> = [] extends TTuple ? TResult : Process$1c$1<AfterFirst$1<TTuple>, TSeparator, TResult extends "" ? First$1<TTuple> extends "" ? TResult : `${First$1<TTuple>}` : First$1<TTuple> extends "" ? TResult : `${TResult}${TSeparator}${First$1<TTuple>}`>;
|
|
9119
9119
|
type Slicer$1<TTuple extends readonly unknown[], TMax extends number | null, TEllipsis extends string | false> = TMax extends number ? TakeFirst$1<TTuple, TMax> extends readonly unknown[] ? TEllipsis extends string ? ToStringArray$1<[...TakeFirst$1<TTuple, TMax>, TEllipsis]> : ToStringArray$1<TakeFirst$1<TTuple, TMax>> : never : ToStringArray$1<TTuple>;
|
|
9120
9120
|
/**
|
|
9121
9121
|
* **Join**`<TArr,[TSeparator],[TMax]>`
|
|
@@ -9130,7 +9130,7 @@ type Slicer$1<TTuple extends readonly unknown[], TMax extends number | null, TEl
|
|
|
9130
9130
|
*
|
|
9131
9131
|
* **Related:** `Concat<TArr>`
|
|
9132
9132
|
*/
|
|
9133
|
-
type Join$1<TTuple extends readonly unknown[], TSeparator extends string = "", TMax extends number | null = null, TEllipsis extends string | false = "..."> = ToStringArray$1<TTuple> extends readonly string[] ? TMax extends number ? IsGreaterThan$1<TTuple["length"], TMax> extends true ? Process$
|
|
9133
|
+
type Join$1<TTuple extends readonly unknown[], TSeparator extends string = "", TMax extends number | null = null, TEllipsis extends string | false = "..."> = ToStringArray$1<TTuple> extends readonly string[] ? TMax extends number ? IsGreaterThan$1<TTuple["length"], TMax> extends true ? Process$1c$1<Slicer$1<TTuple, TMax, TEllipsis>, TSeparator> : Process$1c$1<ToStringArray$1<TTuple>, TSeparator> : Process$1c$1<ToStringArray$1<TTuple>, TSeparator> : never;
|
|
9134
9134
|
|
|
9135
9135
|
/**
|
|
9136
9136
|
* **AsString**<T>
|
|
@@ -9216,9 +9216,9 @@ type RightMostDigit$1<s extends string> = s extends `${infer rest}${NumericChar$
|
|
|
9216
9216
|
type SumStrings$1<left extends string, right extends string, accumulatedResultDigits extends string = "", carry extends boolean = false> = "" extends left ? "" extends right ? carry extends true ? `1${accumulatedResultDigits}` : accumulatedResultDigits : RightMostDigit$1<right> extends RightMostDigitResult$1<infer remainingRight, infer rightDigit> ? SumSingleDigits$1<"0", rightDigit, carry> extends SingleDigitSumResult$1<infer resultDigit, infer resultCarry> ? SumStrings$1<"", remainingRight, `${resultDigit}${accumulatedResultDigits}`, resultCarry> : never : never : "" extends right ? RightMostDigit$1<left> extends RightMostDigitResult$1<infer remainingLeft, infer leftDigit> ? SumSingleDigits$1<"0", leftDigit, carry> extends SingleDigitSumResult$1<infer resultDigit, infer resultCarry> ? SumStrings$1<remainingLeft, "", `${resultDigit}${accumulatedResultDigits}`, resultCarry> : never : never : RightMostDigit$1<left> extends RightMostDigitResult$1<infer remainingLeft, infer leftDigit> ? RightMostDigit$1<right> extends RightMostDigitResult$1<infer remainingRight, infer rightDigit> ? SumSingleDigits$1<leftDigit, rightDigit, carry> extends SingleDigitSumResult$1<infer resultDigit, infer resultCarry> ? SumStrings$1<remainingLeft, remainingRight, `${resultDigit}${accumulatedResultDigits}`, resultCarry> : never : never : never;
|
|
9217
9217
|
type _Subtract$1<TValue extends `${number}`, TCountArr extends readonly unknown[]> = [] extends TCountArr ? TValue : _Subtract$1<Decrement$1<TValue>, AfterFirst$1<TCountArr>>;
|
|
9218
9218
|
type AddNegatives$1<A extends `${number}`, B extends `${number}`> = SumStrings$1<A, B>;
|
|
9219
|
-
type Process$
|
|
9219
|
+
type Process$1b$1<A extends `${number}`, B extends `${number}`> = And$1<[IsNegativeNumber$1<A>, IsNegativeNumber$1<B>]> extends true ? `-${AddNegatives$1<Abs$1<A>, Abs$1<B>>}` : IsNegativeNumber$1<B> extends true ? FixedLengthArray$1<unknown, AsNumber$1<Abs$1<B>>> extends readonly unknown[] ? _Subtract$1<A, FixedLengthArray$1<unknown, AsNumber$1<Abs$1<B>>>> : never : IsNegativeNumber$1<A> extends true ? FixedLengthArray$1<unknown, AsNumber$1<Abs$1<A>>> extends readonly unknown[] ? _Subtract$1<B, FixedLengthArray$1<unknown, AsNumber$1<Abs$1<A>>>> : never : SumStrings$1<A, B>;
|
|
9220
9220
|
type CheckWide$1<A extends NumberLike$1, B extends NumberLike$1> = IsWideType$1<A> extends true ? true : IsWideType$1<B> extends true ? true : false;
|
|
9221
|
-
type PreProcess$2$1<A extends NumberLike$1, B extends NumberLike$1> = CheckWide$1<A, B> extends true ? Or$1<[IsString$1<A>, IsString$1<A>]> extends true ? string : number : Or$1<[IsWideType$1<A>, IsWideType$1<B>]> extends true ? If$1<IsString$1<A>, string, number> : A extends `${number}` ? B extends `${number}` ? As$1<Process$
|
|
9221
|
+
type PreProcess$2$1<A extends NumberLike$1, B extends NumberLike$1> = CheckWide$1<A, B> extends true ? Or$1<[IsString$1<A>, IsString$1<A>]> extends true ? string : number : Or$1<[IsWideType$1<A>, IsWideType$1<B>]> extends true ? If$1<IsString$1<A>, string, number> : A extends `${number}` ? B extends `${number}` ? As$1<Process$1b$1<A, B>, `${number}`> : As$1<Process$1b$1<A, AsString$1<B>>, `${number}`> : A extends number ? B extends number ? AsNumber$1<Process$1b$1<`${A}`, `${B}`>> : AsNumber$1<Process$1b$1<`${A}`, As$1<B, `${number}`>>> : never;
|
|
9222
9222
|
/**
|
|
9223
9223
|
* **Add**`<A,B>`
|
|
9224
9224
|
*
|
|
@@ -9413,7 +9413,7 @@ type ProxyError$1<TError extends ErrorCondition$1, TUtility extends string, TGen
|
|
|
9413
9413
|
* Iterates over each element of the Tuple
|
|
9414
9414
|
*/
|
|
9415
9415
|
type SingleFilter$3$1<TList extends readonly unknown[], TFilter, TOp extends ComparatorOperation$1, Result extends unknown[] = []> = TList extends [infer Head, ...infer Rest] ? [Compare$1$1<Head, TOp, TFilter>] extends [true] ? SingleFilter$3$1<Rest, TFilter, TOp, Result> : SingleFilter$3$1<Rest, TFilter, TOp, [...Result, Head]> : Result;
|
|
9416
|
-
type Process$
|
|
9416
|
+
type Process$18$1<TList extends unknown[] | readonly unknown[], TFilter, TOp extends ComparatorOperation$1> = TList extends unknown[] ? SingleFilter$3$1<TList, TFilter, TOp> : TList extends readonly unknown[] ? Readonly<SingleFilter$3$1<[...TList], TFilter, TOp>> : never;
|
|
9417
9417
|
/**
|
|
9418
9418
|
* **Filter**`<TList, TComparator, [TOp]>`
|
|
9419
9419
|
*
|
|
@@ -9437,7 +9437,7 @@ type Process$17$1<TList extends unknown[] | readonly unknown[], TFilter, TOp ext
|
|
|
9437
9437
|
*
|
|
9438
9438
|
* **Related:** `RetainFromList`, `RemoveFromList`
|
|
9439
9439
|
*/
|
|
9440
|
-
type Filter$1<TList extends readonly unknown[], TComparator, TOp extends ComparatorOperation$1 = "extends"> = TList extends readonly unknown[] ? IfNever$1<TComparator, RemoveNever$1<TList>, If$1<IsArray$1<TComparator>, Process$
|
|
9440
|
+
type Filter$1<TList extends readonly unknown[], TComparator, TOp extends ComparatorOperation$1 = "extends"> = TList extends readonly unknown[] ? IfNever$1<TComparator, RemoveNever$1<TList>, If$1<IsArray$1<TComparator>, Process$18$1<TList, TupleToUnion$1<TComparator>, TOp>, Process$18$1<TList, TComparator, TOp>>> : never;
|
|
9441
9441
|
|
|
9442
9442
|
/**
|
|
9443
9443
|
* Converts a Tuple type into a _union_ of the tuple elements
|
|
@@ -9547,7 +9547,7 @@ type _DU$1<T extends string> = T extends Lowercase<T> ? T : `-${Lowercase<T>}`;
|
|
|
9547
9547
|
*/
|
|
9548
9548
|
type DashUppercase$1<T extends string> = HasUppercase$1<T> extends false ? T : T extends `${infer C0}${infer C1}${infer R}` ? `${_DU$1<C0>}${_DU$1<C1>}${DashUppercase$1<R>}` : T extends `${infer C0}${infer R}` ? `${_DU$1<C0>}${DashUppercase$1<R>}` : "";
|
|
9549
9549
|
|
|
9550
|
-
type Process$
|
|
9550
|
+
type Process$16$1<TString extends string, TPreserve extends boolean = false> = TPreserve extends true ? Concat$1<[
|
|
9551
9551
|
LeftWhitespace$1<TString>,
|
|
9552
9552
|
KebabCase$1<TString, false>,
|
|
9553
9553
|
RightWhitespace$1<TString>
|
|
@@ -9567,7 +9567,7 @@ type Process$15$1<TString extends string, TPreserve extends boolean = false> = T
|
|
|
9567
9567
|
* type Dash = Dasherize<"\n foo bar \t">;
|
|
9568
9568
|
* ```
|
|
9569
9569
|
*/
|
|
9570
|
-
type KebabCase$1<TString extends string, TPreserve extends boolean = false> = Process$
|
|
9570
|
+
type KebabCase$1<TString extends string, TPreserve extends boolean = false> = Process$16$1<TString, TPreserve> extends string ? Process$16$1<TString, TPreserve> : never;
|
|
9571
9571
|
|
|
9572
9572
|
/**
|
|
9573
9573
|
* **LowerAllCaps**`<T>
|
|
@@ -11244,7 +11244,7 @@ type PhoneCountryLookup$1 = Mutable$1<[...typeof PHONE_COUNTRY_CODES$1]>;
|
|
|
11244
11244
|
*/
|
|
11245
11245
|
type PhoneCountryCode$1 = FirstOfEach$1<PhoneCountryLookup$1>;
|
|
11246
11246
|
|
|
11247
|
-
type Process$
|
|
11247
|
+
type Process$15$1<T extends string, _TDelimiter extends PhoneNumberDelimiter$1 = PhoneNumberDelimiter$1> = OnPass$1<[
|
|
11248
11248
|
], T>;
|
|
11249
11249
|
/**
|
|
11250
11250
|
* **PhoneNumber**`<[T]>`
|
|
@@ -11265,7 +11265,7 @@ type Process$14$1<T extends string, _TDelimiter extends PhoneNumberDelimiter$1 =
|
|
|
11265
11265
|
*
|
|
11266
11266
|
* - Related: `PhoneNumberWithCountryCode`, `UsPhoneNumber`
|
|
11267
11267
|
*/
|
|
11268
|
-
type PhoneNumber$1<T extends number | string | null = null, TDelimiter extends PhoneNumberDelimiter$1 = PhoneNumberDelimiter$1> = T extends null ? LocalPhoneNumber$1<TDelimiter> | CountryPhoneNumber$1<TDelimiter> | InternationalPhoneNumber$1<TDelimiter> : IsStringLiteral$1<T> extends true ? Process$
|
|
11268
|
+
type PhoneNumber$1<T extends number | string | null = null, TDelimiter extends PhoneNumberDelimiter$1 = PhoneNumberDelimiter$1> = T extends null ? LocalPhoneNumber$1<TDelimiter> | CountryPhoneNumber$1<TDelimiter> | InternationalPhoneNumber$1<TDelimiter> : IsStringLiteral$1<T> extends true ? Process$15$1<As$1<T, string>, TDelimiter> : IsNumericLiteral$1<T> extends true ? Process$15$1<`${As$1<T, number>}`, TDelimiter> : T extends string ? string | ErrorCondition$1<"invalid-phone-number"> : T extends number ? number | ErrorCondition$1<"invalid-phone-number"> : never;
|
|
11269
11269
|
type PhoneNumberWithCountryCode$1 = `+${PhoneCountryCode$1} ${string}`;
|
|
11270
11270
|
type Sep$1 = "." | " " | "-";
|
|
11271
11271
|
type AreaCode$1 = `(${number}) ` | `${number}${Sep$1}`;
|
|
@@ -11961,7 +11961,7 @@ type YouTubeVideosInPlaylist$1 = `https://www.youtube.com/playlist?${string}list
|
|
|
11961
11961
|
*/
|
|
11962
11962
|
type GetYouTubePageType$1<T> = T extends YouTubeUrl$1 ? T extends YouTubeHome$1 ? "home" : T extends YouTubeVideoUrl$1 ? HasQueryParameter$1<T, "list"> extends true ? T extends YouTubeShareUrl$1 ? HasQueryParameter$1<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$1 ? HasQueryParameter$1<T, "t"> extends true ? "play::video::solo::share-link::with-timestamp" : "play::video::solo::share-link" : "play::video::solo" : T extends YouTubeCreatorUrl$1 ? GetUrlPath$1<T> extends `${string}/videos` ? "creator::videos" : GetUrlPath$1<T> extends `${string}/playlists` ? "creator::playlists" : Last$1<Split$1<GetUrlPath$1<T>, "/">> extends `@${string}` ? "creator::featured" : GetUrlPath$1<T> extends `${string}/featured` ? "creator::featured" : "creator::other" : T extends YouTubeFeedUrl$1 ? T extends YouTubeFeedUrl$1<"history"> ? "feed::history" : T extends YouTubeFeedUrl$1<"playlists"> ? "feed::playlists" : T extends YouTubeFeedUrl$1<"liked"> ? "feed::liked" : T extends YouTubeFeedUrl$1<"subscriptions"> ? "feed::subscriptions" : T extends YouTubeFeedUrl$1<"trending"> ? "feed::trending" : "feed::other" : T extends YouTubeVideosInPlaylist$1 ? "playlist::show" : "other" : never;
|
|
11963
11963
|
|
|
11964
|
-
type Process$
|
|
11964
|
+
type Process$13$1<TStr extends string, TResult extends readonly string[] = []> = IsStringLiteral$1<TStr> extends true ? IsEqual$1<TStr["length"], 0> extends true ? [] : TStr extends `${infer Char}${infer Rest}` ? Process$13$1<Rest, [
|
|
11965
11965
|
...TResult,
|
|
11966
11966
|
Char
|
|
11967
11967
|
]> : TResult : string;
|
|
@@ -11970,10 +11970,10 @@ type Process$12$1<TStr extends string, TResult extends readonly string[] = []> =
|
|
|
11970
11970
|
*
|
|
11971
11971
|
* Takes a literal string and converts it to an array of characters.
|
|
11972
11972
|
*/
|
|
11973
|
-
type Chars$1<TStr extends string> = IsStringLiteral$1<TStr> extends true ? Process$
|
|
11973
|
+
type Chars$1<TStr extends string> = IsStringLiteral$1<TStr> extends true ? Process$13$1<TStr> extends readonly string[] ? Process$13$1<TStr> : never : readonly string[];
|
|
11974
11974
|
|
|
11975
11975
|
type ElementLiteral$1<T> = [T] extends [string] ? IsStringLiteral$1<T> extends true ? T : string : [T] extends [number] ? IsNumericLiteral$1<T> extends true ? T : `${number}` : [T] extends [boolean] ? IsBooleanLiteral$1<T> extends true ? T : `${boolean}` : never;
|
|
11976
|
-
type Process$
|
|
11976
|
+
type Process$12$1<T extends Tuple$1, Result extends string = ""> = [] extends T ? Result : Process$12$1<AfterFirst$1<T>, `${Result}${ElementLiteral$1<First$1<T>>}`>;
|
|
11977
11977
|
/**
|
|
11978
11978
|
* **Concat**`<T>`
|
|
11979
11979
|
*
|
|
@@ -11989,7 +11989,7 @@ type Process$11$1<T extends Tuple$1, Result extends string = ""> = [] extends T
|
|
|
11989
11989
|
*
|
|
11990
11990
|
* **Related:** `Join<TArr,TWith>`
|
|
11991
11991
|
*/
|
|
11992
|
-
type Concat$1<T extends readonly unknown[]> = Process$
|
|
11992
|
+
type Concat$1<T extends readonly unknown[]> = Process$12$1<T>;
|
|
11993
11993
|
|
|
11994
11994
|
/**
|
|
11995
11995
|
* The ISO8601 standard means of representing a _timezone_. `Z` by itself represents UTC.
|
|
@@ -12050,9 +12050,9 @@ type Iso8601Time$1<TExplicit extends IsoExplicitness$1 = "both", TZ extends Time
|
|
|
12050
12050
|
*/
|
|
12051
12051
|
type Iso8601DateTime$1<TZ extends Timezone$1 | "" = Timezone$1 | ""> = `${number}-${number}-${number}T${number}:${number}:${number}${TZ}`;
|
|
12052
12052
|
|
|
12053
|
-
type Process$
|
|
12053
|
+
type Process$11$1<TContent extends string, TLeading extends string> = TContent extends `${TLeading}${string}` ? TContent : `${TLeading}${TContent}`;
|
|
12054
12054
|
type IterateOver$1$1<TContent extends readonly (string | number)[], TLeading extends string | number> = {
|
|
12055
|
-
[K in keyof TContent]: TContent[K] extends string ? Process$
|
|
12055
|
+
[K in keyof TContent]: TContent[K] extends string ? Process$11$1<TContent[K], AsStringUnion$1<TLeading>> : TContent[K] extends number ? AsNumber$1<Process$11$1<`${TContent[K]}`, AsStringUnion$1<TLeading>>> : never;
|
|
12056
12056
|
};
|
|
12057
12057
|
type WideContent$1<TContent extends string | number, TLeading extends string | number> = IsString$1<TContent> extends true ? `${TLeading}${string}` : number;
|
|
12058
12058
|
type WideLeading$1<TContent extends string | number, TLeading extends string | number> = TContent extends string ? `${TLeading}${TContent}` : number;
|
|
@@ -12077,7 +12077,7 @@ type WideLeading$1<TContent extends string | number, TLeading extends string | n
|
|
|
12077
12077
|
*
|
|
12078
12078
|
* **Related:** `EnsureLeadingEvery`, `EnsureTrailing`, `EnsureSurround`, `Surround`
|
|
12079
12079
|
*/
|
|
12080
|
-
type EnsureLeading$1<TContent extends string | number | readonly (string | number)[], TLeading extends string | number> = TContent extends readonly (string | number)[] ? IterateOver$1$1<TContent, TLeading> : IsWideType$1<TContent> extends true ? WideContent$1<As$1<TContent, string | number>, TLeading> : IsWideType$1<TLeading> extends true ? WideLeading$1<As$1<TContent, string | number>, TLeading> : TContent extends string ? Process$
|
|
12080
|
+
type EnsureLeading$1<TContent extends string | number | readonly (string | number)[], TLeading extends string | number> = TContent extends readonly (string | number)[] ? IterateOver$1$1<TContent, TLeading> : IsWideType$1<TContent> extends true ? WideContent$1<As$1<TContent, string | number>, TLeading> : IsWideType$1<TLeading> extends true ? WideLeading$1<As$1<TContent, string | number>, TLeading> : TContent extends string ? Process$11$1<TContent, AsStringUnion$1<TLeading>> : TContent extends number ? AsNumber$1<Process$11$1<`${TContent}`, AsStringUnion$1<TLeading>>> : never;
|
|
12081
12081
|
|
|
12082
12082
|
/**
|
|
12083
12083
|
* **EnsureSurround**
|
|
@@ -12639,7 +12639,7 @@ type TypeStrength$1 = "strong" | "simple";
|
|
|
12639
12639
|
type StripSlash$1<T extends readonly string[]> = {
|
|
12640
12640
|
[K in keyof T]: T[K] extends `/${infer Middle}/` ? Middle : T[K] extends `/${infer Trailing}` ? Trailing : T[K] extends `${infer Leading}/` ? Leading : T[K];
|
|
12641
12641
|
};
|
|
12642
|
-
type Process$
|
|
12642
|
+
type Process$_$1<TPath extends string, TFirst extends string, TLast extends string> = TFirst extends `/${string}` ? TLast extends `${string}/` ? `/${TPath}/` : `/${TPath}` : TLast extends `${string}/` ? `${TPath}/` : TPath;
|
|
12643
12643
|
/**
|
|
12644
12644
|
* **PathJoin**`<T,U>`
|
|
12645
12645
|
*
|
|
@@ -12653,7 +12653,7 @@ type Process$Z$1<TPath extends string, TFirst extends string, TLast extends stri
|
|
|
12653
12653
|
* `EnsureStarting<T>`, and `StripStarting<T>` to further shape
|
|
12654
12654
|
* the type.
|
|
12655
12655
|
*/
|
|
12656
|
-
type PathJoin$1<TSegments extends readonly string[]> = StripSlash$1<TSegments> extends readonly string[] ? Process$
|
|
12656
|
+
type PathJoin$1<TSegments extends readonly string[]> = StripSlash$1<TSegments> extends readonly string[] ? Process$_$1<Join$1<StripSlash$1<TSegments>, "/">, First$1<TSegments>, Last$1<TSegments>> : never;
|
|
12657
12657
|
|
|
12658
12658
|
type ExceptionLookup$1 = typeof PLURAL_EXCEPTIONS$1;
|
|
12659
12659
|
type SingularNoun$2 = "s" | "sh" | "ch" | "x" | "z" | "o";
|
|
@@ -12725,7 +12725,7 @@ type _RetainAfter$1<TStr extends string, TBreak extends string, TInclude extends
|
|
|
12725
12725
|
*/
|
|
12726
12726
|
type RetainAfter$1<TStr extends string, TBreak extends string, TInclude extends boolean = false> = IsNever$1<_RetainAfter$1<TStr, TBreak, TInclude>> extends true ? "" : IsUnion$1<_RetainAfter$1<TStr, TBreak, TInclude>> extends true ? MaxLength$1<UnionToTuple$1$1<_RetainAfter$1<TStr, TBreak, TInclude>>> : _RetainAfter$1<TStr, TBreak, TInclude>;
|
|
12727
12727
|
|
|
12728
|
-
type Process$
|
|
12728
|
+
type Process$Z$1<TChars extends readonly string[], TOp extends "is" | "not", TComparator extends string, TInclude extends boolean = false, TResult extends string = ""> = [] extends TChars ? TResult : First$1<TChars> extends TComparator ? TOp extends "is" ? Process$Z$1<AfterFirst$1<TChars>, TOp, TComparator, TInclude, `${TResult}${First$1<TChars>}`> : If$1<TInclude, `${TResult}${First$1<TChars>}`, TResult> : TOp extends "is" ? If$1<TInclude, `${TResult}${First$1<TChars>}`, TResult> : Process$Z$1<AfterFirst$1<TChars>, TOp, TComparator, TInclude, `${TResult}${First$1<TChars>}`>;
|
|
12729
12729
|
/**
|
|
12730
12730
|
* **RetainUntil**`<TContent,TComparator>`
|
|
12731
12731
|
*
|
|
@@ -12739,7 +12739,7 @@ type Process$Y$1<TChars extends readonly string[], TOp extends "is" | "not", TCo
|
|
|
12739
12739
|
*
|
|
12740
12740
|
* **Related:** `RetainWhile`
|
|
12741
12741
|
*/
|
|
12742
|
-
type RetainUntil$1<TContent extends string, TComparator extends string, TInclude extends boolean = false> = Process$
|
|
12742
|
+
type RetainUntil$1<TContent extends string, TComparator extends string, TInclude extends boolean = false> = Process$Z$1<Chars$1<TContent>, "not", TComparator, TInclude>;
|
|
12743
12743
|
/**
|
|
12744
12744
|
* **RetainWhile**`<TContent,TComparator>`
|
|
12745
12745
|
*
|
|
@@ -12753,7 +12753,7 @@ type RetainUntil$1<TContent extends string, TComparator extends string, TInclude
|
|
|
12753
12753
|
*
|
|
12754
12754
|
* **Related:** `RetainUntil`
|
|
12755
12755
|
*/
|
|
12756
|
-
type RetainWhile$1<TContent extends string, TComparator extends string> = Process$
|
|
12756
|
+
type RetainWhile$1<TContent extends string, TComparator extends string> = Process$Z$1<Chars$1<TContent>, "is", TComparator>;
|
|
12757
12757
|
|
|
12758
12758
|
type Policy$1 = "omit" | "before" | "after";
|
|
12759
12759
|
type Postfix$1<T extends string> = ["postfix", T];
|
|
@@ -12770,7 +12770,7 @@ type EachBlock$1<TContent extends readonly (string | Postfix$1<string>)[], TSep
|
|
|
12770
12770
|
First$1<TContent>
|
|
12771
12771
|
]>;
|
|
12772
12772
|
type Iterate$3$1<TContent extends readonly (string | Postfix$1<string>)[], TSep extends readonly string[], TPolicy extends Policy$1> = [] extends TSep ? FixPostfix$1<Filter$1<TContent, "", "equals">> : Iterate$3$1<EachBlock$1<TContent, First$1<TSep>, TPolicy>, AfterFirst$1<TSep>, TPolicy>;
|
|
12773
|
-
type Process$
|
|
12773
|
+
type Process$Y$1<TContent extends string, TSep extends string | readonly string[], TPolicy extends Policy$1 = "omit"> = IsLiteral$1<TSep> extends true ? TSep extends "" ? ErrMsg$1<"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$1<[TContent], TSep, TPolicy> : TSep extends string ? Convert$3$1<TContent, TSep, TPolicy> extends readonly (string | Postfix$1<string>)[] ? FixPostfix$1<Convert$3$1<TContent, TSep, TPolicy>> : never : never : never;
|
|
12774
12774
|
/**
|
|
12775
12775
|
* **Split**`<TContent,TSep,[TPolicy]>`
|
|
12776
12776
|
*
|
|
@@ -12785,7 +12785,7 @@ type Process$X$1<TContent extends string, TSep extends string | readonly string[
|
|
|
12785
12785
|
* than `SplitAlt` but there are instances where `SplitAlt` is more performant
|
|
12786
12786
|
* in inference.
|
|
12787
12787
|
*/
|
|
12788
|
-
type Split$1<TContent extends string, TSep extends string | readonly string[], TPolicy extends Policy$1 = "omit"> = IsStringLiteral$1<TContent> extends true ? IsUnion$1<TSep> extends true ? UnionToTuple$1$1<TSep> extends readonly string[] ? Split$1<TContent, UnionToTuple$1$1<TSep>, TPolicy> : ErrMsg$1<"invalid-union"> : Process$
|
|
12788
|
+
type Split$1<TContent extends string, TSep extends string | readonly string[], TPolicy extends Policy$1 = "omit"> = IsStringLiteral$1<TContent> extends true ? IsUnion$1<TSep> extends true ? UnionToTuple$1$1<TSep> extends readonly string[] ? Split$1<TContent, UnionToTuple$1$1<TSep>, TPolicy> : ErrMsg$1<"invalid-union"> : Process$Y$1<TContent, TSep, TPolicy> : string[];
|
|
12789
12789
|
|
|
12790
12790
|
type UnionPolicy$1 = "omit" | "include";
|
|
12791
12791
|
type UnionSplit$1<TContent extends readonly string[], TSep extends string, TUnionPolicy extends UnionPolicy$1, TResult extends readonly string[] = []> = [] extends TContent ? TResult : UnionSplit$1<AfterFirst$1<TContent>, // advance to next character
|
|
@@ -12800,8 +12800,8 @@ type LiteralSplit$1<TContent extends string, TSep extends string, TUnionPolicy e
|
|
|
12800
12800
|
...TResults,
|
|
12801
12801
|
TUnionPolicy extends "omit" ? Block : `${Block}${TSep}`
|
|
12802
12802
|
]> : Filter$1<[...TResults, TContent], "">;
|
|
12803
|
-
type Process$
|
|
12804
|
-
type PreProcess$1$1<TContent extends string, TSep extends string | readonly string[], TUnionPolicy extends UnionPolicy$1 = "omit"> = IsUnion$1<TSep> extends true ? UnionToTuple$1$1<TSep> extends readonly string[] ? Process$
|
|
12803
|
+
type Process$X$1<TContent extends string, TSep extends string | readonly string[], TUnionPolicy extends UnionPolicy$1 = "omit"> = IsWideType$1<TContent> extends true ? string : TSep extends readonly string[] ? TupleToUnion$1<TSep> extends string ? Chars$1<TContent> extends readonly string[] ? UnionSplit$1<Chars$1<TContent>, TupleToUnion$1<TSep>, TUnionPolicy> : never : never : TSep extends string ? LiteralSplit$1<TContent, TSep, TUnionPolicy> : never;
|
|
12804
|
+
type PreProcess$1$1<TContent extends string, TSep extends string | readonly string[], TUnionPolicy extends UnionPolicy$1 = "omit"> = IsUnion$1<TSep> extends true ? UnionToTuple$1$1<TSep> extends readonly string[] ? Process$X$1<TContent, UnionToTuple$1$1<TSep>, TUnionPolicy> : never : Process$X$1<TContent, TSep, TUnionPolicy>;
|
|
12805
12805
|
/**
|
|
12806
12806
|
* **SplitAlt**`<TContent,TSep,[TPolicy]>`
|
|
12807
12807
|
*
|
|
@@ -12841,7 +12841,7 @@ type StripAfter$1<TStr extends string, TBreak extends string> = IsStringLiteral$
|
|
|
12841
12841
|
*/
|
|
12842
12842
|
type StripBefore$1<TStr extends string, TBreak extends string> = IsStringLiteral$1<TStr> extends true ? IsStringLiteral$1<TBreak> extends true ? TStr extends `${string}${TBreak}${infer REST}` ? `${REST}` : TStr : string : string;
|
|
12843
12843
|
|
|
12844
|
-
type Process$
|
|
12844
|
+
type Process$W$1<TContent extends string, TStrip extends string> = And$1<[IsStringLiteral$1<TContent>, IsStringLiteral$1<TStrip>]> extends true ? TContent extends `${TStrip & string}${infer After}` ? After : TContent : string;
|
|
12845
12845
|
/**
|
|
12846
12846
|
* **StripLeading**`<T, U>`
|
|
12847
12847
|
*
|
|
@@ -12858,9 +12858,9 @@ type Process$V$1<TContent extends string, TStrip extends string> = And$1<[IsStri
|
|
|
12858
12858
|
* - if `T` is a non-string type then no transformation will be done
|
|
12859
12859
|
* - same applies to `U`
|
|
12860
12860
|
*/
|
|
12861
|
-
type StripLeading$1<TContent extends string | number, TStrip extends string | number> = TContent extends number ? AsNumber$1<Process$
|
|
12861
|
+
type StripLeading$1<TContent extends string | number, TStrip extends string | number> = TContent extends number ? AsNumber$1<Process$W$1<`${TContent}`, AsStringUnion$1<TStrip>>> : TContent extends string ? Process$W$1<TContent, AsStringUnion$1<TStrip>> : never;
|
|
12862
12862
|
|
|
12863
|
-
type Process$
|
|
12863
|
+
type Process$V$1<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;
|
|
12864
12864
|
/**
|
|
12865
12865
|
* **StripSurround**`<TContent, TSurround>`
|
|
12866
12866
|
*
|
|
@@ -12872,9 +12872,9 @@ type Process$U$1<TContent extends string, TSurround extends string> = TContent e
|
|
|
12872
12872
|
* type Hello = StripSurround<"(Hi there)", "(" | ")">;
|
|
12873
12873
|
* ```
|
|
12874
12874
|
*/
|
|
12875
|
-
type StripSurround$1<TContent extends string | number, TSurround extends string | number> = IsWideType$1<TContent> extends true ? TContent : TContent extends string ? Process$
|
|
12875
|
+
type StripSurround$1<TContent extends string | number, TSurround extends string | number> = IsWideType$1<TContent> extends true ? TContent : TContent extends string ? Process$V$1<TContent, AsStringUnion$1<TSurround>> : AsNumber$1<Process$V$1<`${TContent}`, AsStringUnion$1<TSurround>>>;
|
|
12876
12876
|
|
|
12877
|
-
type Process$
|
|
12877
|
+
type Process$U$1<TContent extends string, TStrip extends string> = And$1<[IsStringLiteral$1<TContent>, IsStringLiteral$1<TStrip>]> extends true ? TContent extends `${infer Before}${TStrip}` ? Before : TContent : string;
|
|
12878
12878
|
/**
|
|
12879
12879
|
* **StripEnding**`<TContent, TStrip>`
|
|
12880
12880
|
*
|
|
@@ -12888,23 +12888,23 @@ type Process$T$1<TContent extends string, TStrip extends string> = And$1<[IsStri
|
|
|
12888
12888
|
* type R = StripEnding<T,U>;
|
|
12889
12889
|
* ```
|
|
12890
12890
|
*/
|
|
12891
|
-
type StripTrailing$1<TContent extends string | number, TStrip extends string | number> = TContent extends number ? AsNumber$1<Process$
|
|
12891
|
+
type StripTrailing$1<TContent extends string | number, TStrip extends string | number> = TContent extends number ? AsNumber$1<Process$U$1<`${TContent}`, `${TStrip}`> extends `${number}` ? Process$U$1<`${TContent}`, `${TStrip}`> : never> : TContent extends string ? Process$U$1<`${TContent}`, `${TStrip}`> extends string ? Process$U$1<`${TContent}`, `${TStrip}`> : never : never;
|
|
12892
12892
|
|
|
12893
|
-
type Process$
|
|
12893
|
+
type Process$T$1<TChars extends readonly string[], TOp extends "is" | "not", TComparator extends string, TResult extends string> = [] extends TChars ? TResult : First$1<TChars> extends TComparator ? TOp extends "is" ? Process$T$1<AfterFirst$1<TChars>, TOp, TComparator, Shift$2<TResult> extends string ? Shift$2<TResult> : ""> : TResult : TOp extends "is" ? TResult : Process$T$1<AfterFirst$1<TChars>, TOp, TComparator, Shift$2<TResult> extends string ? Shift$2<TResult> : "">;
|
|
12894
12894
|
/**
|
|
12895
12895
|
* **StripUntil**`<TContent,TComparator>`
|
|
12896
12896
|
*
|
|
12897
12897
|
* Strip characters from the start of `TContent` _until_ a
|
|
12898
12898
|
* character extends `TComparator`.
|
|
12899
12899
|
*/
|
|
12900
|
-
type StripUntil$1<TContent extends string, TComparator extends string> = Process$
|
|
12900
|
+
type StripUntil$1<TContent extends string, TComparator extends string> = Process$T$1<Chars$1<TContent>, "not", TComparator, TContent>;
|
|
12901
12901
|
/**
|
|
12902
12902
|
* **StripWhile**`<TContent,TComparator>`
|
|
12903
12903
|
*
|
|
12904
12904
|
* Strip characters from the start of `TContent` _while_ those
|
|
12905
12905
|
* characters extend `TComparator`.
|
|
12906
12906
|
*/
|
|
12907
|
-
type StripWhile$1<TContent extends string, TComparator extends string> = Process$
|
|
12907
|
+
type StripWhile$1<TContent extends string, TComparator extends string> = Process$T$1<Chars$1<TContent>, "is", TComparator, TContent>;
|
|
12908
12908
|
|
|
12909
12909
|
type Compute$1<TStr extends string, TLen extends Tuple$1 = []> = TStr extends `${infer _Char}${infer Rest}` ? Compute$1<Rest, [...TLen, unknown]> : TLen["length"];
|
|
12910
12910
|
/**
|
|
@@ -12915,9 +12915,9 @@ type Compute$1<TStr extends string, TLen extends Tuple$1 = []> = TStr extends `$
|
|
|
12915
12915
|
*/
|
|
12916
12916
|
type StrLen$1<T extends string> = Compute$1<T>;
|
|
12917
12917
|
|
|
12918
|
-
type Process$
|
|
12918
|
+
type Process$S$1<TContent extends string, TPrefix extends string, TPostfix extends string> = `${TPrefix}${TContent}${TPostfix}`;
|
|
12919
12919
|
type ProcessEach$2<TContent extends readonly string[], TPrefix extends string, TPostfix extends string> = {
|
|
12920
|
-
[K in keyof TContent]: Process$
|
|
12920
|
+
[K in keyof TContent]: Process$S$1<TContent[K], TPrefix, TPostfix>;
|
|
12921
12921
|
};
|
|
12922
12922
|
/**
|
|
12923
12923
|
* **Surround**`<TContent,TPrefix,TPostfix>`
|
|
@@ -12932,7 +12932,7 @@ type ProcessEach$2<TContent extends readonly string[], TPrefix extends string, T
|
|
|
12932
12932
|
* type T2 = Surround<["one","two"], "<",">">;
|
|
12933
12933
|
* ```
|
|
12934
12934
|
*/
|
|
12935
|
-
type Surround$1<TContent extends string | number | readonly (string | number)[], TPrefix extends string, TPostfix extends string> = TContent extends number ? Surround$1<`${TContent}`, TPrefix, TPostfix> : TContent extends readonly unknown[] ? TContent extends readonly string[] ? ProcessEach$2<TContent, TPrefix, TPostfix> : ProcessEach$2<ToStringArray$1<TContent> extends readonly string[] ? ToStringArray$1<TContent> : never, TPrefix, TPostfix> : TContent extends string ? Process$
|
|
12935
|
+
type Surround$1<TContent extends string | number | readonly (string | number)[], TPrefix extends string, TPostfix extends string> = TContent extends number ? Surround$1<`${TContent}`, TPrefix, TPostfix> : TContent extends readonly unknown[] ? TContent extends readonly string[] ? ProcessEach$2<TContent, TPrefix, TPostfix> : ProcessEach$2<ToStringArray$1<TContent> extends readonly string[] ? ToStringArray$1<TContent> : never, TPrefix, TPostfix> : TContent extends string ? Process$S$1<TContent, TPrefix, TPostfix> : never;
|
|
12936
12936
|
|
|
12937
12937
|
type CivilianTwoDigitHour$1 = "10" | "11" | "12";
|
|
12938
12938
|
type TimeResolution$1 = "HH:MM" | "HH:MM:SS" | "HH:MM:SS.ms";
|
|
@@ -13114,7 +13114,7 @@ type TypeSubtype$1 = `${string}/${string}` & {
|
|
|
13114
13114
|
brand: "type-subtype";
|
|
13115
13115
|
};
|
|
13116
13116
|
|
|
13117
|
-
type Process$
|
|
13117
|
+
type Process$R$1<T> = T extends NumberLike$1 ? AsNumber$1<T> : T extends BooleanLike$1 ? AsBoolean$1<T> : T;
|
|
13118
13118
|
/**
|
|
13119
13119
|
* **UnderlyingType**`<T>`
|
|
13120
13120
|
*
|
|
@@ -13127,8 +13127,8 @@ type Process$Q$1<T> = T extends NumberLike$1 ? AsNumber$1<T> : T extends Boolean
|
|
|
13127
13127
|
* In all other cases it simply proxies the type of `T` through.
|
|
13128
13128
|
*/
|
|
13129
13129
|
type UnderlyingType$1<T> = T extends readonly unknown[] ? {
|
|
13130
|
-
[K in keyof T]: Process$
|
|
13131
|
-
} : Process$
|
|
13130
|
+
[K in keyof T]: Process$R$1<T[K]>;
|
|
13131
|
+
} : Process$R$1<T>;
|
|
13132
13132
|
|
|
13133
13133
|
/**
|
|
13134
13134
|
* **JsonValue**`<T>`
|
|
@@ -13205,7 +13205,7 @@ type MutableArray$1<T extends readonly unknown[]> = [
|
|
|
13205
13205
|
*/
|
|
13206
13206
|
type Mutable$1<T> = [T] extends [readonly unknown[]] ? MutableArray$1<T> : [T] extends [boolean] ? T : [IsObjectLiteral$1<T>] extends [true] ? MutableObject$1<T> : T;
|
|
13207
13207
|
|
|
13208
|
-
type Process$
|
|
13208
|
+
type Process$P$1<TSource extends AnyObject$1, TKeys extends readonly (ObjectKey$1 & keyof TSource)[], TTuple extends readonly KeyValue$1[] = []> = [] extends TKeys ? TTuple : Process$P$1<TSource, AfterFirst$1<TKeys>, [
|
|
13209
13209
|
...TTuple,
|
|
13210
13210
|
{
|
|
13211
13211
|
key: First$1<TKeys>;
|
|
@@ -13229,10 +13229,10 @@ type Compact$1<TSource extends AnyObject$1, TKeys extends readonly (ObjectKey$1
|
|
|
13229
13229
|
* type C = ObjectToTuple< foo: 1 }, true>;
|
|
13230
13230
|
* ```
|
|
13231
13231
|
*/
|
|
13232
|
-
type ObjectToTuple$1<TObj extends AnyObject$1, TCompact extends boolean = false> = TObj extends ExplicitlyEmptyObject$1 ? [] : IsWideContainer$1<TObj> extends true ? TCompact extends false ? KeyValue$1[] : Record<ObjectKey$1, any>[] : TCompact extends false ? Process$
|
|
13232
|
+
type ObjectToTuple$1<TObj extends AnyObject$1, TCompact extends boolean = false> = TObj extends ExplicitlyEmptyObject$1 ? [] : IsWideContainer$1<TObj> extends true ? TCompact extends false ? KeyValue$1[] : Record<ObjectKey$1, any>[] : TCompact extends false ? Process$P$1<TObj, As$1<Keys$1<TObj>, readonly (ObjectKey$1 & keyof TObj)[]>> : Compact$1<TObj, As$1<Keys$1<TObj>, readonly (ObjectKey$1 & keyof TObj)[]>>;
|
|
13233
13233
|
|
|
13234
13234
|
type Prefix$2$1<T extends boolean> = T extends true ? "\n " : "";
|
|
13235
|
-
type Process$
|
|
13235
|
+
type Process$O$1<T extends readonly Record<ObjectKey$1, any>[], E extends boolean> = Join$1<{
|
|
13236
13236
|
[K in keyof T]: T[K] extends Record<infer Key extends string, infer Value> ? `${Prefix$2$1<E>}${Key}: ${AsString$1<Value>}` : never;
|
|
13237
13237
|
}, "; ">;
|
|
13238
13238
|
/**
|
|
@@ -13242,10 +13242,10 @@ type Process$N$1<T extends readonly Record<ObjectKey$1, any>[], E extends boolea
|
|
|
13242
13242
|
*
|
|
13243
13243
|
* **Related:** `ObjectToJsString`, `ObjectToJsonString`, `ObjectToTuple`
|
|
13244
13244
|
*/
|
|
13245
|
-
type ObjectToCssString$1<TObj extends AnyObject$1, TExpand extends boolean = false> = TObj extends ExplicitlyEmptyObject$1 ? "{}" : IsWideContainer$1<TObj> extends true ? string : Surround$1<Process$
|
|
13245
|
+
type ObjectToCssString$1<TObj extends AnyObject$1, TExpand extends boolean = false> = TObj extends ExplicitlyEmptyObject$1 ? "{}" : IsWideContainer$1<TObj> extends true ? string : Surround$1<Process$O$1<ObjectToTuple$1<TObj, true>, false>, TExpand extends false ? "{ " : "{", TExpand extends false ? " }" : "\n}">;
|
|
13246
13246
|
|
|
13247
13247
|
type Prefix$3<T extends boolean> = T extends true ? "\n " : "";
|
|
13248
|
-
type Process$
|
|
13248
|
+
type Process$L$1<T extends readonly Record<ObjectKey$1, any>[], E extends boolean> = Join$1<{
|
|
13249
13249
|
[K in keyof T]: T[K] extends Record<infer Key extends string, infer Value> ? Value extends AnyObject$1 ? `${Prefix$3<E>}${Key} ${AsString$1<Value>}` : never : never;
|
|
13250
13250
|
}, "\n ">;
|
|
13251
13251
|
/**
|
|
@@ -13255,7 +13255,7 @@ type Process$K$1<T extends readonly Record<ObjectKey$1, any>[], E extends boolea
|
|
|
13255
13255
|
*
|
|
13256
13256
|
* **Related:** `ObjectToJsString`, `ObjectToJsonString`, `ObjectToTuple`, `ObjectToCssString`
|
|
13257
13257
|
*/
|
|
13258
|
-
type ObjectToKeyframeString$1<TObj extends AnyObject$1, TExpand extends boolean = false> = TObj extends ExplicitlyEmptyObject$1 ? "{}" : IsWideContainer$1<TObj> extends true ? string : Surround$1<Process$
|
|
13258
|
+
type ObjectToKeyframeString$1<TObj extends AnyObject$1, TExpand extends boolean = false> = TObj extends ExplicitlyEmptyObject$1 ? "{}" : IsWideContainer$1<TObj> extends true ? string : Surround$1<Process$L$1<ObjectToTuple$1<TObj, true>, false>, TExpand extends false ? "{ " : "{\n ", TExpand extends false ? " }" : "\n}">;
|
|
13259
13259
|
|
|
13260
13260
|
/**
|
|
13261
13261
|
* **RemoveIndex**`<T>`
|
|
@@ -13290,9 +13290,9 @@ type RemoveIndex$1<T extends Record<any, any>> = {
|
|
|
13290
13290
|
*/
|
|
13291
13291
|
type Replace$1<TText extends string, TFind extends string, TReplace extends string> = TText extends "" ? If$1<IsEqual$1<TFind, "">, TReplace, ""> : TFind extends "" ? TText : TText extends `${infer F}${TFind}${infer E}` ? `${F}${TReplace}${E}` : TText;
|
|
13292
13292
|
|
|
13293
|
-
type Process$
|
|
13294
|
-
type Iterate$2$1<TText extends string, TFind extends readonly string[], TReplace extends string> = [] extends TFind ? TText : Iterate$2$1<Process$
|
|
13295
|
-
type Singular$1<TText extends string, TFind extends string, TReplace extends string> = IsStringLiteral$1<TText> extends true ? IsStringLiteral$1<TFind> extends true ? IsUnion$1<TFind> extends true ? UnionToTuple$1$1<TFind> extends readonly string[] ? Iterate$2$1<TText, UnionToTuple$1$1<TFind>, TReplace> : never : Process$
|
|
13293
|
+
type Process$K$1<TText extends string, TFind extends string, TReplace extends string> = Replace$1<TText, TFind, TReplace> extends `${string}${TFind}${string}` ? Process$K$1<Replace$1<TText, TFind, TReplace>, TFind, TReplace> : Replace$1<TText, TFind, TReplace>;
|
|
13294
|
+
type Iterate$2$1<TText extends string, TFind extends readonly string[], TReplace extends string> = [] extends TFind ? TText : Iterate$2$1<Process$K$1<TText, First$1<TFind>, TReplace>, AfterFirst$1<TFind>, TReplace>;
|
|
13295
|
+
type Singular$1<TText extends string, TFind extends string, TReplace extends string> = IsStringLiteral$1<TText> extends true ? IsStringLiteral$1<TFind> extends true ? IsUnion$1<TFind> extends true ? UnionToTuple$1$1<TFind> extends readonly string[] ? Iterate$2$1<TText, UnionToTuple$1$1<TFind>, TReplace> : never : Process$K$1<TText, TFind, TReplace> : string : string;
|
|
13296
13296
|
type Multiple$1<TText extends readonly string[], TFind extends string, TReplace extends string, TResult extends readonly string[] = []> = [] extends TText ? TResult : Multiple$1<AfterFirst$1<TText>, TFind, TReplace, [
|
|
13297
13297
|
...TResult,
|
|
13298
13298
|
ReplaceAll$1<First$1<TText>, TFind, TReplace>
|
|
@@ -13316,7 +13316,7 @@ type Multiple$1<TText extends readonly string[], TFind extends string, TReplace
|
|
|
13316
13316
|
*/
|
|
13317
13317
|
type ReplaceAll$1<TText extends string | readonly string[], TFind extends string, TReplace extends string> = TText extends readonly string[] ? IsLiteral$1<TText> extends true ? Multiple$1<TText, TFind, TReplace> : string[] : TText extends string ? Singular$1<TText, TFind, TReplace> : never;
|
|
13318
13318
|
|
|
13319
|
-
type Process$
|
|
13319
|
+
type Process$J$1<TChars extends readonly string[], TRetain extends string> = RemoveMarked$1<{
|
|
13320
13320
|
[K in keyof TChars]: TChars[K] extends TRetain ? TChars[K] : Constant$1<"Marked">;
|
|
13321
13321
|
}>;
|
|
13322
13322
|
/**
|
|
@@ -13326,7 +13326,7 @@ type Process$I$1<TChars extends readonly string[], TRetain extends string> = Rem
|
|
|
13326
13326
|
* of the characters in `TRetain` _retained_ while all
|
|
13327
13327
|
* other characters are removed.
|
|
13328
13328
|
*/
|
|
13329
|
-
type RetainChars$1<TContent extends string, TRetain extends string> = Or$1<[IsWideType$1<TContent>, IsWideType$1<TRetain>]> extends true ? string : Process$
|
|
13329
|
+
type RetainChars$1<TContent extends string, TRetain extends string> = Or$1<[IsWideType$1<TContent>, IsWideType$1<TRetain>]> extends true ? string : Process$J$1<Chars$1<TContent>, TRetain> extends readonly string[] ? Join$1<Process$J$1<Chars$1<TContent>, TRetain>> : never;
|
|
13330
13330
|
|
|
13331
13331
|
/**
|
|
13332
13332
|
* Provides the _left_ whitespace of a string
|
|
@@ -13340,7 +13340,7 @@ type RightWhitespace$1<S extends string> = string extends S ? string : Replace$1
|
|
|
13340
13340
|
type Strip$1<TChars extends readonly string[], TStrip extends string> = {
|
|
13341
13341
|
[K in keyof TChars]: TChars[K] extends TStrip ? Marked$3$1 : TChars[K];
|
|
13342
13342
|
};
|
|
13343
|
-
type Process$
|
|
13343
|
+
type Process$I$1<TChars extends readonly string[], TStrip extends string> = As$1<RemoveMarked$1<Strip$1<TChars, TStrip>>, readonly string[]>;
|
|
13344
13344
|
/**
|
|
13345
13345
|
* **StripChars**`<TContent,TStrip>`
|
|
13346
13346
|
*
|
|
@@ -13351,7 +13351,7 @@ type Process$H$1<TChars extends readonly string[], TStrip extends string> = As$1
|
|
|
13351
13351
|
* of single characters or this will throw
|
|
13352
13352
|
* `ErrorCondition<"invalid-strip-char">`
|
|
13353
13353
|
*/
|
|
13354
|
-
type StripChars$1<TContent extends string, TStrip extends string> = Or$1<[IsWideType$1<TContent>, IsWideType$1<TStrip>]> extends true ? string : Chars$1<TContent> extends readonly string[] ? Concat$1<Process$
|
|
13354
|
+
type StripChars$1<TContent extends string, TStrip extends string> = Or$1<[IsWideType$1<TContent>, IsWideType$1<TStrip>]> extends true ? string : Chars$1<TContent> extends readonly string[] ? Concat$1<Process$I$1<Chars$1<TContent>, TStrip>> extends string ? Concat$1<Process$I$1<Chars$1<TContent>, TStrip>> : never : never;
|
|
13355
13355
|
|
|
13356
13356
|
/**
|
|
13357
13357
|
* **ToNumber**`<T>`
|
|
@@ -13394,7 +13394,7 @@ type ToStringArray$1<T extends Tuple$1> = {
|
|
|
13394
13394
|
[K in keyof T]: AsString$1<T[K]>;
|
|
13395
13395
|
} : never;
|
|
13396
13396
|
|
|
13397
|
-
type Process$
|
|
13397
|
+
type Process$H$1<S extends string> = string extends S ? string : S extends `${Whitespace$1}${infer Right}` ? Process$H$1<Right> : S extends `${infer Left}${Whitespace$1}` ? Process$H$1<Left> : S;
|
|
13398
13398
|
/**
|
|
13399
13399
|
* Trims off blank spaces, `\n` and `\t` characters from both sides of a _string literal_.
|
|
13400
13400
|
* ```ts
|
|
@@ -13404,7 +13404,7 @@ type Process$G$1<S extends string> = string extends S ? string : S extends `${Wh
|
|
|
13404
13404
|
* type T = Trim<string>;
|
|
13405
13405
|
* ```
|
|
13406
13406
|
*/
|
|
13407
|
-
type Trim$1<S extends string> = Process$
|
|
13407
|
+
type Trim$1<S extends string> = Process$H$1<S> extends string ? Process$H$1<S> : never;
|
|
13408
13408
|
|
|
13409
13409
|
/**
|
|
13410
13410
|
* Trims off whitespace on left of string
|
|
@@ -13479,10 +13479,10 @@ type GetKeys$1$1<T extends AnyFunction$1> = FnProps$1<T> extends Dictionary$1 ?
|
|
|
13479
13479
|
* Widens any _scalar_ type `T`.
|
|
13480
13480
|
*/
|
|
13481
13481
|
type WidenScalar$1<T extends Scalar$1> = T extends string ? string : T extends number ? number : T extends boolean ? boolean : T extends symbol ? symbol : T extends null ? null : never;
|
|
13482
|
-
type Process$
|
|
13483
|
-
type WidenObj$1<T extends Dictionary$1, TKeys extends readonly (keyof T)[], TResults extends Dictionary$1 = EmptyObject$1> = [] extends TKeys ? TResults : WidenObj$1<T, AfterFirst$1<TKeys>, TResults & Record<First$1<TKeys>, T[First$1<TKeys>] extends TypedFunction$1 ? WidenFn$1<IsNarrowingFn$1<T[First$1<TKeys>]>, Parameters<T[First$1<TKeys>]>, ReturnType<T[First$1<TKeys>]>, ExpandDictionary$1<FnProps$1<T[First$1<TKeys>]>>> : IsLiteral$1<T[First$1<TKeys>]> extends true ? WidenLiteral$1<T[First$1<TKeys>]> : Process$
|
|
13482
|
+
type Process$E$1<T> = T extends Scalar$1 ? WidenScalar$1<T> : T extends unknown[] ? T extends (infer Type)[] ? IsUnion$1<Type> extends true ? WidenUnion$1<Type>[] : Type extends unknown[] ? WidenTuple$1<Type> : T : never : T extends AnyFunction$1 ? GetKeys$1$1<T>["length"] extends 0 ? RemoveFnProps$1<T> : RemoveFnProps$1<T> & ExpandRecursively$1<WidenObj$1<FnProps$1<T>, GetKeys$1$1<T>>> : T;
|
|
13483
|
+
type WidenObj$1<T extends Dictionary$1, TKeys extends readonly (keyof T)[], TResults extends Dictionary$1 = EmptyObject$1> = [] extends TKeys ? TResults : WidenObj$1<T, AfterFirst$1<TKeys>, TResults & Record<First$1<TKeys>, T[First$1<TKeys>] extends TypedFunction$1 ? WidenFn$1<IsNarrowingFn$1<T[First$1<TKeys>]>, Parameters<T[First$1<TKeys>]>, ReturnType<T[First$1<TKeys>]>, ExpandDictionary$1<FnProps$1<T[First$1<TKeys>]>>> : IsLiteral$1<T[First$1<TKeys>]> extends true ? WidenLiteral$1<T[First$1<TKeys>]> : Process$E$1<T[First$1<TKeys>]>>>;
|
|
13484
13484
|
type WidenTuple$1<T extends readonly unknown[]> = {
|
|
13485
|
-
[K in keyof T]: IsLiteral$1<T[K]> extends true ? WidenLiteral$1<T[K]> : Process$
|
|
13485
|
+
[K in keyof T]: IsLiteral$1<T[K]> extends true ? WidenLiteral$1<T[K]> : Process$E$1<T[K]>;
|
|
13486
13486
|
};
|
|
13487
13487
|
type WidenFnParams$1<T extends readonly unknown[]> = {
|
|
13488
13488
|
[K in keyof T]: IsLiteral$1<T[K]> extends true ? WidenLiteral$1<T[K]> : IsLiteralUnion$1<T[K]> extends true ? WidenUnion$1<T[K]> : T[K];
|
|
@@ -13515,10 +13515,10 @@ type WidenContainer$1<T extends Container$1, TForce extends boolean = false> = [
|
|
|
13515
13515
|
* **Note:** should you want the container values to be fully widened you
|
|
13516
13516
|
* can set `TForce` to true.
|
|
13517
13517
|
*/
|
|
13518
|
-
type Widen$1<T, TForce extends boolean = false> = [IsUnion$1<T>] extends [true] ? WidenUnion$1<T> : T extends Container$1 ? WidenContainer$1<T, TForce> : T extends Scalar$1 ? WidenScalar$1<T> : Process$
|
|
13518
|
+
type Widen$1<T, TForce extends boolean = false> = [IsUnion$1<T>] extends [true] ? WidenUnion$1<T> : T extends Container$1 ? WidenContainer$1<T, TForce> : T extends Scalar$1 ? WidenScalar$1<T> : Process$E$1<T>;
|
|
13519
13519
|
|
|
13520
13520
|
type Tighten$1<T extends string> = T extends ` ${infer Rest extends string}` ? T extends ` ${infer Double extends string}` ? Double : Rest : T;
|
|
13521
|
-
type Process$
|
|
13521
|
+
type Process$D$1<T extends string, Result extends readonly unknown[] = []> = T extends `${infer Element},${infer Rest}` ? Process$D$1<Rest, [
|
|
13522
13522
|
...Result,
|
|
13523
13523
|
Tighten$1<Element> extends NumberLike$1 ? AsNumber$1<Tighten$1<Element>> : Tighten$1<Element>
|
|
13524
13524
|
]> : [
|
|
@@ -13549,7 +13549,7 @@ type ProcessUnionStr$1<T extends string, Result extends string | number = never>
|
|
|
13549
13549
|
*
|
|
13550
13550
|
* **Related:** `CsvToTupleStr`, `CsvToUnion`
|
|
13551
13551
|
*/
|
|
13552
|
-
type CsvToTuple$1<T extends string> = Process$
|
|
13552
|
+
type CsvToTuple$1<T extends string> = Process$D$1<T>;
|
|
13553
13553
|
/**
|
|
13554
13554
|
* **CsvToTupleStr**`<T>`
|
|
13555
13555
|
*
|
|
@@ -13714,12 +13714,12 @@ type WideFlatten$1<T> = T extends (infer Type)[] ? Type extends unknown[] ? Type
|
|
|
13714
13714
|
* Just returns `TList` "as is" if it's not a a Tuple or
|
|
13715
13715
|
* Union type.
|
|
13716
13716
|
*/
|
|
13717
|
-
type Process$
|
|
13717
|
+
type Process$x$1<TList, TLevel extends 1 | 2 | 3 = 1> = TList extends readonly unknown[] ? IsTuple$1<TList> extends true ? FlattenTuple$1<TList, TLevel> : WideFlatten$1<TList> : IsUnion$1<TList> extends true ? FlattenUnion$1<TList> : TList;
|
|
13718
13718
|
/**
|
|
13719
13719
|
* converts a wide array to a scalar and tuple
|
|
13720
13720
|
* to a union type
|
|
13721
13721
|
*/
|
|
13722
|
-
type ToScalar$1<TList, TLevel extends 1 | 2 | 3> = [IsTuple$1<Process$
|
|
13722
|
+
type ToScalar$1<TList, TLevel extends 1 | 2 | 3> = [IsTuple$1<Process$x$1<TList>>] extends [true] ? TupleToUnion$1<Process$x$1<TList, TLevel>> : Process$x$1<TList, TLevel> extends (infer Type)[] ? Type : never;
|
|
13723
13723
|
type IterateScalar$1<T extends readonly unknown[], TLevel extends 1 | 2 | 3> = TupleToUnion$1<{
|
|
13724
13724
|
[K in keyof T]: T[K] extends unknown[] ? ToScalar$1<T[K], TLevel> : T[K];
|
|
13725
13725
|
}>;
|
|
@@ -13735,15 +13735,15 @@ type IterateScalar$1<T extends readonly unknown[], TLevel extends 1 | 2 | 3> = T
|
|
|
13735
13735
|
* if you set `ToScalar` to `true` then it will flatten right out of being an array
|
|
13736
13736
|
* into a union type
|
|
13737
13737
|
*/
|
|
13738
|
-
type Flatten$1<TList, TLevel extends 1 | 2 | 3 = 1, ToScalar extends boolean = false> = [ToScalar] extends [false] ? Process$
|
|
13739
|
-
IsUnion$1<Process$
|
|
13740
|
-
] extends [true] ? IterateScalar$1<UnionToTuple$1$1<Process$
|
|
13738
|
+
type Flatten$1<TList, TLevel extends 1 | 2 | 3 = 1, ToScalar extends boolean = false> = [ToScalar] extends [false] ? Process$x$1<TList, TLevel> : [
|
|
13739
|
+
IsUnion$1<Process$x$1<TList, TLevel>>
|
|
13740
|
+
] extends [true] ? IterateScalar$1<UnionToTuple$1$1<Process$x$1<TList, TLevel>>, TLevel> : [IsTuple$1<Process$x$1<TList, TLevel>>] extends [true] ? TupleToUnion$1<Process$x$1<TList, TLevel>> : Process$x$1<TList, TLevel> extends (infer Type)[] ? Type : never;
|
|
13741
13741
|
|
|
13742
13742
|
/**
|
|
13743
13743
|
* extract props from functions
|
|
13744
13744
|
*/
|
|
13745
13745
|
type F$2<T> = T extends TypedFunction$1 ? FnProps$1<T> : T;
|
|
13746
|
-
type Process$
|
|
13746
|
+
type Process$w$1<TList extends readonly unknown[], TKey extends string> = RemoveNever$1<{
|
|
13747
13747
|
[K in keyof TList]: [TKey] extends [keyof F$2<TList[K]>] ? [IndexOf$1<F$2<TList[K]>, TKey>] extends [undefined] ? never : IndexOf$1<F$2<TList[K]>, TKey> : [IsValidDotPath$1<F$2<TList[K]>, TKey>] extends [true] ? Mutable$1<Get$1$1<F$2<TList[K]>, TKey, never>> : never;
|
|
13748
13748
|
}>;
|
|
13749
13749
|
/**
|
|
@@ -13765,7 +13765,7 @@ type Process$v$1<TList extends readonly unknown[], TKey extends string> = Remove
|
|
|
13765
13765
|
* ], "name">
|
|
13766
13766
|
* ```
|
|
13767
13767
|
*/
|
|
13768
|
-
type GetEach$1<TList extends readonly unknown[], TKey extends string | null> = TKey extends null ? TList : TKey extends "" ? TList : IsReadonlyArray$1<TList> extends true ? Readonly<Process$
|
|
13768
|
+
type GetEach$1<TList extends readonly unknown[], TKey extends string | null> = TKey extends null ? TList : TKey extends "" ? TList : IsReadonlyArray$1<TList> extends true ? Readonly<Process$w$1<[...TList], Exclude<TKey, null>>> : Process$w$1<TList, Exclude<TKey, null>>;
|
|
13769
13769
|
|
|
13770
13770
|
type Override$1<TValue, TOverride> = TOverride extends Constant$1<"no-override"> ? TValue : TValue extends ErrorCondition$1<"invalid-index"> ? TOverride : TValue;
|
|
13771
13771
|
type NegativeIndex$1<TValue extends readonly unknown[], TIdx extends number> = Decrement$1<Abs$1<TIdx>> extends number ? If$1<IsValidIndex$1<TValue, Decrement$1<Abs$1<TIdx>>>, TValue[Decrement$1<Abs$1<TIdx>>], Throw$1<"invalid-index", `Use of a negative index [${AsString$1<TIdx>}] was unsuccessful in matching a valid index`, "IndexOf", {
|
|
@@ -13790,7 +13790,7 @@ type HandleObj$1<TValue extends Dictionary$1, TIdx extends PropertyKey> = TIdx e
|
|
|
13790
13790
|
key: TIdx;
|
|
13791
13791
|
library: "inferred-types/constants";
|
|
13792
13792
|
}>;
|
|
13793
|
-
type Process$
|
|
13793
|
+
type Process$v$1<TValue, TIdx extends PropertyKey | null> = If$1<IsNull$1<TIdx>, TValue, TValue extends readonly unknown[] ? If$1<IsValidIndex$1<TValue, AsPropertyKey$1<TIdx>>, HandleArr$1<TValue, AsPropertyKey$1<TIdx>>, Throw$1<"invalid-index", `Call to IndexOf<DescribeType<TValue>,${AsString$1<TIdx>}> is not allowed as an tuple based container must receive either null or numeric index value.`, "IndexOf", {
|
|
13794
13794
|
library: "inferred-types/constants";
|
|
13795
13795
|
container: TValue;
|
|
13796
13796
|
key: TIdx;
|
|
@@ -13819,7 +13819,7 @@ type Process$u$1<TValue, TIdx extends PropertyKey | null> = If$1<IsNull$1<TIdx>,
|
|
|
13819
13819
|
* **Errors:** produces an `ErrorCondition<"invalid-index">` when an a bad index value
|
|
13820
13820
|
* is passed in for the given container
|
|
13821
13821
|
*/
|
|
13822
|
-
type IndexOf$1<TValue, TIdx extends PropertyKey | null, TOverride = Constant$1<"no-override">> = TIdx extends null ? TValue : Override$1<Process$
|
|
13822
|
+
type IndexOf$1<TValue, TIdx extends PropertyKey | null, TOverride = Constant$1<"no-override">> = TIdx extends null ? TValue : Override$1<Process$v$1<TValue, TIdx>, TOverride>;
|
|
13823
13823
|
|
|
13824
13824
|
/**
|
|
13825
13825
|
* **Last**`<TList, [TEmpty]>`
|
|
@@ -13881,14 +13881,14 @@ interface FnMeta$1<TFn extends AnyFunction$1 = AnyFunction$1, TArgs extends read
|
|
|
13881
13881
|
isNarrowingFn: IsNarrowingFn$1<TFn>;
|
|
13882
13882
|
}
|
|
13883
13883
|
|
|
13884
|
-
type Process$
|
|
13884
|
+
type Process$t$1<T extends AnyFunction$1> = IsEqual$1<T, Function> extends true ? EmptyObject$1 : keyof T extends ObjectKey$1 ? Pick<T, keyof T> : never;
|
|
13885
13885
|
/**
|
|
13886
13886
|
* **FnProps**`<T>`
|
|
13887
13887
|
*
|
|
13888
13888
|
* Return a dictionary of key/value pairs from a function. If no key/value
|
|
13889
13889
|
* pairs are assigned to the function base then an empty object is returned.
|
|
13890
13890
|
*/
|
|
13891
|
-
type FnProps$1<T extends AnyFunction$1> = Process$
|
|
13891
|
+
type FnProps$1<T extends AnyFunction$1> = Process$t$1<T>;
|
|
13892
13892
|
|
|
13893
13893
|
type FnDefn$1 = [fn: AnyFunction$1] | [fn: AnyFunction$1, desc: string] | [fn: AnyFunction$1, props: Record<ObjectKey$1, unknown>];
|
|
13894
13894
|
/**
|
|
@@ -14807,7 +14807,7 @@ interface VueRef$1<T = any> {
|
|
|
14807
14807
|
value: T;
|
|
14808
14808
|
}
|
|
14809
14809
|
|
|
14810
|
-
type Process$
|
|
14810
|
+
type Process$s$1<TValues extends readonly (boolean | LogicFunction$1)[], _TParams extends readonly unknown[] = []> = {
|
|
14811
14811
|
[K in keyof TValues]: TValues[K] extends ((...args: any[]) => boolean) ? ReturnType<TValues[K]> : TValues[K];
|
|
14812
14812
|
};
|
|
14813
14813
|
/**
|
|
@@ -14820,7 +14820,7 @@ type Process$r$1<TValues extends readonly (boolean | LogicFunction$1)[], _TParam
|
|
|
14820
14820
|
*
|
|
14821
14821
|
* **Related**: `ReturnTypes` and `TruthyReturns`
|
|
14822
14822
|
*/
|
|
14823
|
-
type LogicalReturns$1<TValues extends readonly (boolean | LogicFunction$1)[], _TParams extends readonly unknown[] = []> = Process$
|
|
14823
|
+
type LogicalReturns$1<TValues extends readonly (boolean | LogicFunction$1)[], _TParams extends readonly unknown[] = []> = Process$s$1<TValues, _TParams> extends readonly boolean[] ? Process$s$1<TValues, _TParams> : never;
|
|
14824
14824
|
|
|
14825
14825
|
type Reduce$1<T extends readonly ([string, number])[], TMax extends number = 0, TVal extends string = ""> = [] extends T ? TVal : Reduce$1<AfterFirst$1<T>, First$1<T> extends [string, infer Len extends number] ? If$1<IsGreaterThan$1<Len, TMax>, Len, TMax> : TMax, First$1<T> extends [infer Val extends string, infer Len extends number] ? If$1<IsGreaterThan$1<Len, TMax>, Val, TVal> : TVal>;
|
|
14826
14826
|
/**
|
|
@@ -14840,7 +14840,7 @@ type Recurse$1<TList extends Tuple$1, TResults extends Tuple$1 = []> = [] extend
|
|
|
14840
14840
|
type Convert$1$1<TList extends Tuple$1> = Length$1<TList> extends 0 ? number[] : Recurse$1<{
|
|
14841
14841
|
[K in keyof TList]: K;
|
|
14842
14842
|
}>;
|
|
14843
|
-
type Process$
|
|
14843
|
+
type Process$r$1<TList extends Tuple$1> = If$1<IsReadonlyArray$1<TList>, TList["length"] extends 0 ? number[] : Readonly<Convert$1$1<TList>>, Convert$1$1<TList>>;
|
|
14844
14844
|
/**
|
|
14845
14845
|
* **NumericKeys**<`TList`>
|
|
14846
14846
|
*
|
|
@@ -14855,7 +14855,7 @@ type Process$q$1<TList extends Tuple$1> = If$1<IsReadonlyArray$1<TList>, TList["
|
|
|
14855
14855
|
*
|
|
14856
14856
|
* **Related:** `Keys`
|
|
14857
14857
|
*/
|
|
14858
|
-
type NumericKeys$1<TList extends Tuple$1> = Process$
|
|
14858
|
+
type NumericKeys$1<TList extends Tuple$1> = Process$r$1<TList> extends readonly number[] ? Process$r$1<TList> : never;
|
|
14859
14859
|
|
|
14860
14860
|
type _Get$1<T, K, Acc = never> = K extends `${infer A}.${infer B}` ? A extends keyof T ? _Get$1<T[A], B, _Get$1<T[A], B>> : Acc : K extends keyof T ? _Get$1<T[K], K, T[K]> : Acc;
|
|
14861
14861
|
/**
|
|
@@ -14889,7 +14889,7 @@ type _Pop$1<TVal extends Tuple$1> = TVal extends [...(infer Rest), unknown] ? Re
|
|
|
14889
14889
|
*/
|
|
14890
14890
|
type Pop$2<TList extends Tuple$1 | string> = TList extends string ? IsWideType$1<TList> extends true ? string : IsStringLiteral$1<TList> extends true ? TList extends string ? TList extends "" ? "" : Chars$1<TList> extends readonly string[] ? Concat$1<_Pop$1<Chars$1<TList>>> : never : never : string : _Pop$1<Exclude<TList, string>>;
|
|
14891
14891
|
|
|
14892
|
-
type Process$
|
|
14892
|
+
type Process$p$1<TList extends readonly unknown[], TValue> = [
|
|
14893
14893
|
...TList,
|
|
14894
14894
|
TValue
|
|
14895
14895
|
];
|
|
@@ -14900,13 +14900,13 @@ type Process$o$1<TList extends readonly unknown[], TValue> = [
|
|
|
14900
14900
|
*
|
|
14901
14901
|
* - If you want to make the push conditional you can add `TCondition`
|
|
14902
14902
|
*/
|
|
14903
|
-
type Push$2<TList extends readonly unknown[], TVal, TCondition = true> = [TCondition] extends [true] ? As$1<Process$
|
|
14903
|
+
type Push$2<TList extends readonly unknown[], TVal, TCondition = true> = [TCondition] extends [true] ? As$1<Process$p$1<TList, TVal>, readonly unknown[]> : TList;
|
|
14904
14904
|
|
|
14905
14905
|
/**
|
|
14906
14906
|
* Iterates over each element of the Tuple
|
|
14907
14907
|
*/
|
|
14908
14908
|
type SingleFilter$4<TList extends readonly unknown[], TFilter, TOp extends ComparatorOperation$1, Result extends unknown[] = []> = TList extends [infer Head, ...infer Rest] ? [Compare$1$1<Head, TOp, TFilter>] extends [true] ? SingleFilter$4<Rest, TFilter, TOp, [...Result, Head]> : SingleFilter$4<Rest, TFilter, TOp, Result> : Result;
|
|
14909
|
-
type Process$
|
|
14909
|
+
type Process$o$1<TList extends readonly unknown[], TComparator, TOp extends ComparatorOperation$1> = TList extends unknown[] ? SingleFilter$4<TList, TComparator, TOp> : TList extends readonly unknown[] ? Readonly<SingleFilter$4<[...TList], TComparator, TOp>> : never;
|
|
14910
14910
|
type PrepList$1<T extends readonly unknown[], O extends ComparatorOperation$1> = Or$1<[
|
|
14911
14911
|
IsEqual$1<O, "contains">,
|
|
14912
14912
|
IsEqual$1<O, "startsWith">,
|
|
@@ -14925,9 +14925,9 @@ type PrepList$1<T extends readonly unknown[], O extends ComparatorOperation$1> =
|
|
|
14925
14925
|
*
|
|
14926
14926
|
* **Related:** `Filter`
|
|
14927
14927
|
*/
|
|
14928
|
-
type Retain$1<TList extends readonly unknown[], TComparator, TOp extends ComparatorOperation$1 = "extends"> = PrepList$1<TList, TOp> extends readonly unknown[] ? [TComparator] extends [unknown[]] ? Process$
|
|
14928
|
+
type Retain$1<TList extends readonly unknown[], TComparator, TOp extends ComparatorOperation$1 = "extends"> = PrepList$1<TList, TOp> extends readonly unknown[] ? [TComparator] extends [unknown[]] ? Process$o$1<PrepList$1<TList, TOp>, TupleToUnion$1<TComparator>, TOp> : Process$o$1<PrepList$1<TList, TOp>, TComparator, TOp> : never;
|
|
14929
14929
|
|
|
14930
|
-
type Process$
|
|
14930
|
+
type Process$n$1<T extends readonly unknown[]> = RemoveMarked$1<{
|
|
14931
14931
|
[K in keyof T]: If$1<IsLiteral$1<T[K]>, T[K], Constant$1<"Marked">>;
|
|
14932
14932
|
}>;
|
|
14933
14933
|
/**
|
|
@@ -14940,7 +14940,7 @@ type Process$m$1<T extends readonly unknown[]> = RemoveMarked$1<{
|
|
|
14940
14940
|
*
|
|
14941
14941
|
* **Related:** `Retain`, `FilterLiterals`, `RetainWideTypes`
|
|
14942
14942
|
*/
|
|
14943
|
-
type RetainLiterals$1<T extends readonly unknown[]> = Process$
|
|
14943
|
+
type RetainLiterals$1<T extends readonly unknown[]> = Process$n$1<T> extends readonly unknown[] ? Process$n$1<T> : never;
|
|
14944
14944
|
|
|
14945
14945
|
/**
|
|
14946
14946
|
* **Second**`<T, [ELSE]>`
|
|
@@ -14981,8 +14981,8 @@ type RemoveStart$1<TList extends readonly unknown[], TStart extends number> = TS
|
|
|
14981
14981
|
...(infer REST)
|
|
14982
14982
|
] ? REST : Throw$1<"invalid-start-index">;
|
|
14983
14983
|
type TruncateAtLen$1<TList extends readonly unknown[], TLen extends number> = IsNegativeNumber$1<TLen> extends true ? If$1<IsGreaterThan$1<Abs$1<TLen>, TList["length"]>, never, TakeFirst$1<TList, Add$1<TList["length"], TLen>>> : If$1<IsGreaterThanOrEqual$1<TLen, TList["length"]>, TList, TakeFirst$1<TList, TLen>>;
|
|
14984
|
-
type Process$
|
|
14985
|
-
type PreProcess$6<TList extends readonly unknown[], TStart extends number, TLen extends number | undefined = undefined> = TList extends string ? Chars$1<TList> extends readonly string[] ? Concat$1<As$1<Process$
|
|
14984
|
+
type Process$l$1<TList extends readonly unknown[], TStart extends number, TLen extends number | undefined> = TList extends readonly unknown[] ? RemoveStart$1<TList, TStart> extends readonly unknown[] ? If$1<IsNumericLiteral$1<TLen>, TruncateAtLen$1<RemoveStart$1<TList, TStart>, As$1<TLen, number>>, RemoveStart$1<TList, TStart>> : RemoveStart$1<TList, TStart> : never;
|
|
14985
|
+
type PreProcess$6<TList extends readonly unknown[], TStart extends number, TLen extends number | undefined = undefined> = TList extends string ? Chars$1<TList> extends readonly string[] ? Concat$1<As$1<Process$l$1<Chars$1<TList>, TStart, TLen>, readonly string[]>> : never : TList extends readonly unknown[] ? Process$l$1<TList, TStart, TLen> : never;
|
|
14986
14986
|
/**
|
|
14987
14987
|
* **Slice**`<TList, TStart, TLen>`
|
|
14988
14988
|
*
|
|
@@ -14996,7 +14996,7 @@ type PreProcess$6<TList extends readonly unknown[], TStart extends number, TLen
|
|
|
14996
14996
|
*/
|
|
14997
14997
|
type Slice$1<TList extends readonly unknown[] | string, TStart extends number, TLen extends number | undefined = undefined> = TList extends string ? Concat$1<As$1<PreProcess$6<Chars$1<TList>, TStart, TLen>, readonly string[]>> : TList extends readonly unknown[] ? PreProcess$6<TList, TStart, TLen> extends readonly unknown[] ? PreProcess$6<TList, TStart, TLen> : never : never;
|
|
14998
14998
|
|
|
14999
|
-
type Process$
|
|
14999
|
+
type Process$k$1<TContent extends readonly unknown[], TLen extends number, TIdx extends number = 0, TResult extends readonly unknown[] = []> = [] extends TContent ? TResult : If$1<IsGreaterThanOrEqual$1<TIdx, TLen>, TResult, Process$k$1<AfterFirst$1<TContent>, TLen, Increment$1<TIdx>, [
|
|
15000
15000
|
...TResult,
|
|
15001
15001
|
First$1<TContent>
|
|
15002
15002
|
]>>;
|
|
@@ -15013,7 +15013,7 @@ type Process$j$1<TContent extends readonly unknown[], TLen extends number, TIdx
|
|
|
15013
15013
|
* - if you want a precise length, then set `THandle` to "throw" and
|
|
15014
15014
|
* an error will be thrown.
|
|
15015
15015
|
*/
|
|
15016
|
-
type TakeFirst$1<TContent extends readonly unknown[], TLen extends number, THandle extends "ignore" | "throw" = "ignore"> = If$1<IsGreaterThan$1<TLen, TContent["length"]>, If$1<THandle extends "ignore" ? true : false, TContent, Throw$1<"invalid-length", `TakeFirst<TContent,TLen> was called where the length of TLen(${TLen}) was greater than the length of the content (${TContent["length"]})!`>>, If$1<IsEqual$1<TLen, TContent["length"]>, TContent, Process$
|
|
15016
|
+
type TakeFirst$1<TContent extends readonly unknown[], TLen extends number, THandle extends "ignore" | "throw" = "ignore"> = If$1<IsGreaterThan$1<TLen, TContent["length"]>, If$1<THandle extends "ignore" ? true : false, TContent, Throw$1<"invalid-length", `TakeFirst<TContent,TLen> was called where the length of TLen(${TLen}) was greater than the length of the content (${TContent["length"]})!`>>, If$1<IsEqual$1<TLen, TContent["length"]>, TContent, Process$k$1<TContent, TLen>>>;
|
|
15017
15017
|
|
|
15018
15018
|
type _Keys$2$1<T extends object> = UnionToTuple$1$1<keyof RemoveIndexKeys$1<T>> extends readonly ObjectKey$1[] ? UnionToTuple$1$1<keyof RemoveIndexKeys$1<T>> : never;
|
|
15019
15019
|
type ProcessObj$1$1<T extends Container$1, TKeys extends readonly PropertyKey[], TResults extends Dictionary$1 = EmptyObject$1> = [] extends TKeys ? TResults : First$1<TKeys> extends keyof T ? IfNever$1<T[First$1<TKeys>], ProcessObj$1$1<T, AfterFirst$1<TKeys>, TResults>, ProcessObj$1$1<T, AfterFirst$1<TKeys>, First$1<TKeys> extends keyof T ? TResults extends readonly unknown[] ? [...TResults, T[First$1<TKeys>]] : TResults extends Dictionary$1 ? TResults & Record<First$1<TKeys>, T[First$1<TKeys>]> : never : never>> : never;
|
|
@@ -15029,7 +15029,7 @@ type _Keys$9<T extends object> = UnionToTuple$1$1<keyof RemoveIndexKeys$1<T>>;
|
|
|
15029
15029
|
type GetKeys$3<T extends object> = IsVueRef$1<T> extends true ? ["value"] : _Keys$9<T> extends [symbol] ? ObjectKey$1[] : _Keys$9<T> extends [] ? UnionToTuple$1$1<keyof T> extends [ObjectKey$1] ? (keyof T)[] : ObjectKey$1[] : _Keys$9<T>;
|
|
15030
15030
|
type ProcessObj$4<TContainer extends object> = GetKeys$3<TContainer>;
|
|
15031
15031
|
type ProcessTuple$6<TContainer extends readonly unknown[]> = NumericKeys$1<TContainer> extends readonly number[] ? NumericKeys$1<TContainer> : never;
|
|
15032
|
-
type Process$
|
|
15032
|
+
type Process$h$1<TContainer extends AnyObject$1> = [IsObjectLiteral$1<RemoveIndexKeys$1<TContainer>>] extends [true] ? ProcessObj$4<RemoveIndexKeys$1<TContainer>> extends readonly (keyof TContainer & ObjectKey$1)[] ? As$1<ProcessObj$4<RemoveIndexKeys$1<TContainer>>, readonly ObjectKey$1[]> : never : ObjectKey$1[];
|
|
15033
15033
|
/**
|
|
15034
15034
|
* **Keys**`<TContainer>`
|
|
15035
15035
|
*
|
|
@@ -15046,7 +15046,7 @@ type Process$g$1<TContainer extends AnyObject$1> = [IsObjectLiteral$1<RemoveInde
|
|
|
15046
15046
|
*
|
|
15047
15047
|
* **Related:** `ValidKey`, `PublicKeys`
|
|
15048
15048
|
*/
|
|
15049
|
-
type Keys$1<TContainer extends Tuple$1 | AnyObject$1> = TContainer extends Tuple$1 ? ProcessTuple$6<TContainer> : TContainer extends AnyObject$1 ? Process$
|
|
15049
|
+
type Keys$1<TContainer extends Tuple$1 | AnyObject$1> = TContainer extends Tuple$1 ? ProcessTuple$6<TContainer> : TContainer extends AnyObject$1 ? Process$h$1<TContainer> extends readonly ObjectKey$1[] ? Process$h$1<TContainer> : never : never;
|
|
15050
15050
|
|
|
15051
15051
|
type ProcessTupleKeys$1<TObj extends AnyObject$1, TKeys extends readonly ObjectKey$1[]> = ExpandDictionary$1<WithoutKeys$1<TObj, TKeys> & {
|
|
15052
15052
|
[K in keyof WithKeys$1<TObj, TKeys>]?: K extends keyof TObj ? TObj[K] : never;
|
|
@@ -15124,7 +15124,7 @@ interface ConstrainedObjectIdentity$1<TConstraint extends AnyObject$1> {
|
|
|
15124
15124
|
asCallback: ConstrainedObjectCallback$1<TConstraint>;
|
|
15125
15125
|
}
|
|
15126
15126
|
|
|
15127
|
-
type Process$
|
|
15127
|
+
type Process$f$1<TKeys extends readonly string[], TValue, TObj extends Dictionary$1 = EmptyObject$1> = [] extends TKeys ? TObj : Process$f$1<AfterFirst$1<TKeys>, TValue, TObj & Record<First$1<TKeys>, TValue>>;
|
|
15128
15128
|
/**
|
|
15129
15129
|
* **CreateKV**`<TKeys,[TValue]>`
|
|
15130
15130
|
*
|
|
@@ -15132,7 +15132,7 @@ type Process$e$1<TKeys extends readonly string[], TValue, TObj extends Dictionar
|
|
|
15132
15132
|
* as `TKeys` and with all properties set to the value
|
|
15133
15133
|
* of `TValue` (which defaults to `unknown`)
|
|
15134
15134
|
*/
|
|
15135
|
-
type CreateKV$1<TKeys extends readonly string[], TValue = unknown> = ExpandRecursively$1<Process$
|
|
15135
|
+
type CreateKV$1<TKeys extends readonly string[], TValue = unknown> = ExpandRecursively$1<Process$f$1<TKeys, TValue>>;
|
|
15136
15136
|
|
|
15137
15137
|
/**
|
|
15138
15138
|
* the _optional_ variants of the `SimpleScalarToken` type
|
|
@@ -15732,7 +15732,7 @@ type SKeys$1<T extends AnyObject$1> = IsVueRef$1<T> extends true ? ["value"] : _
|
|
|
15732
15732
|
*/
|
|
15733
15733
|
type TakeProp$1<TTest, TProp extends PropertyKey, TElse = undefined> = TProp extends keyof TTest ? TTest[TProp] : TElse;
|
|
15734
15734
|
|
|
15735
|
-
type Process$
|
|
15735
|
+
type Process$5$1<TKeys extends readonly ObjectKey$1[], TObj extends Record<ObjectKey$1, unknown>, TResult extends readonly unknown[] = []> = [] extends TKeys ? TResult : Process$5$1<AfterFirst$1<TKeys>, TObj, [
|
|
15736
15736
|
...TResult,
|
|
15737
15737
|
First$1<TKeys> extends keyof TObj ? TObj[First$1<TKeys>] : never
|
|
15738
15738
|
]>;
|
|
@@ -15744,7 +15744,7 @@ type Process$4$1<TKeys extends readonly ObjectKey$1[], TObj extends Record<Objec
|
|
|
15744
15744
|
* - for **tuples** this is just a _proxy_ of the type
|
|
15745
15745
|
* - for _wide_ types like `string[]`
|
|
15746
15746
|
*/
|
|
15747
|
-
type Values$1<T extends Container$1> = T extends Tuple$1 ? T : T extends Dictionary$1 ? Process$
|
|
15747
|
+
type Values$1<T extends Container$1> = T extends Tuple$1 ? T : T extends Dictionary$1 ? Process$5$1<Keys$1<T> extends readonly ObjectKey$1[] ? Keys$1<T> : never, T> : T extends TypedFunction$1 ? [T] : [];
|
|
15748
15748
|
|
|
15749
15749
|
type MakeIntoUnion$1<K extends PropertyKey | readonly PropertyKey[]> = K extends readonly PropertyKey[] ? TupleToUnion$1<K> : K;
|
|
15750
15750
|
type MakeNumericIndex$1<T> = T;
|
|
@@ -15767,7 +15767,7 @@ type MakeNumericIndex$1<T> = T;
|
|
|
15767
15767
|
*/
|
|
15768
15768
|
type WithKeys$1<T extends AnyObject$1 | Tuple$1, K extends PropertyKey | readonly PropertyKey[]> = ExpandRecursively$1<UnionToIntersection$3<MakeIntoUnion$1<K> extends keyof T ? T extends Tuple$1 ? MakeNumericIndex$1<Pick<T, MakeIntoUnion$1<K>>> : Pick<T, MakeIntoUnion$1<K>> : never>>;
|
|
15769
15769
|
|
|
15770
|
-
type Process$
|
|
15770
|
+
type Process$4$1<TObj extends Dictionary$1, TKeys extends ObjectKey$1> = [] extends TKeys ? TObj : Omit<TObj, TKeys>;
|
|
15771
15771
|
/**
|
|
15772
15772
|
* **WithoutKeys**`<TObj, TKeys>`
|
|
15773
15773
|
*
|
|
@@ -15775,7 +15775,7 @@ type Process$3$1<TObj extends Dictionary$1, TKeys extends ObjectKey$1> = [] exte
|
|
|
15775
15775
|
* functionally equivalent to the `Omit<T,U>` built-in but rather than
|
|
15776
15776
|
* taking a union type it takes an array of keys.
|
|
15777
15777
|
*/
|
|
15778
|
-
type WithoutKeys$1<TObj extends Dictionary$1, TKeys extends ObjectKey$1 | readonly ObjectKey$1[]> = TKeys extends readonly ObjectKey$1[] ? Process$
|
|
15778
|
+
type WithoutKeys$1<TObj extends Dictionary$1, TKeys extends ObjectKey$1 | readonly ObjectKey$1[]> = TKeys extends readonly ObjectKey$1[] ? Process$4$1<TObj, TupleToUnion$1<TKeys>> : ExpandDictionary$1<Process$4$1<TObj, TKeys extends readonly ObjectKey$1[] ? TupleToUnion$1<TKeys> : TKeys>>;
|
|
15779
15779
|
|
|
15780
15780
|
/**
|
|
15781
15781
|
* **WithoutValue**
|
|
@@ -15794,7 +15794,7 @@ type WithoutKeys$1<TObj extends Dictionary$1, TKeys extends ObjectKey$1 | readon
|
|
|
15794
15794
|
type WithoutValue$1<TObj extends AnyObject$1, TValue extends Narrowable$1> = ExpandRecursively$1<Pick<TObj, KeysWithoutValue$1<TObj, TValue>>>;
|
|
15795
15795
|
|
|
15796
15796
|
type Marked$1$1 = typeof MARKED$1;
|
|
15797
|
-
type Process$
|
|
15797
|
+
type Process$3$1<TObj extends Dictionary$1, TValue, TOp extends "equals" | "extends"> = RemoveMarked$1<{
|
|
15798
15798
|
[K in keyof TObj]: If$1<Compare$1$1<TObj[K], TOp, TValue>, TObj[K], Marked$1$1>;
|
|
15799
15799
|
}>;
|
|
15800
15800
|
/**
|
|
@@ -15810,7 +15810,7 @@ type Process$2$1<TObj extends Dictionary$1, TValue, TOp extends "equals" | "exte
|
|
|
15810
15810
|
*
|
|
15811
15811
|
* **Related:** `WithoutValue`, `WithKeys`, `WithoutKeys`
|
|
15812
15812
|
*/
|
|
15813
|
-
type WithValue$1<TObj extends Dictionary$1, TValue, TOp extends "equals" | "extends" = "extends"> = ExpandRecursively$1<Process$
|
|
15813
|
+
type WithValue$1<TObj extends Dictionary$1, TValue, TOp extends "equals" | "extends" = "extends"> = ExpandRecursively$1<Process$3$1<TObj, TValue, TOp>>;
|
|
15814
15814
|
|
|
15815
15815
|
/** Converts a single KeyValue into a one-key object */
|
|
15816
15816
|
type KeyValueToObj$1<KV extends {
|
|
@@ -15844,7 +15844,7 @@ interface KeyValue$1<K = ObjectKey$1, V = any> {
|
|
|
15844
15844
|
value: V;
|
|
15845
15845
|
}
|
|
15846
15846
|
|
|
15847
|
-
type Process$
|
|
15847
|
+
type Process$2$1<TObj extends AnyObject$1, TKeys extends readonly (ObjectKey$1 & keyof TObj)[], TKv extends readonly KeyValue$1[] = []> = [] extends TKeys ? TKv : Process$2$1<TObj, AfterFirst$1<TKeys>, [
|
|
15848
15848
|
...TKv,
|
|
15849
15849
|
{
|
|
15850
15850
|
key: First$1<TKeys>;
|
|
@@ -15873,7 +15873,7 @@ type Process$1$1<TObj extends AnyObject$1, TKeys extends readonly (ObjectKey$1 &
|
|
|
15873
15873
|
*
|
|
15874
15874
|
* **Related:** `KeyValue`, `FromKv`
|
|
15875
15875
|
*/
|
|
15876
|
-
type ToKv$1<TObj extends AnyObject$1, TKeys extends (readonly (ObjectKey$1 & keyof TObj)[]) | false = As$1<Keys$1<TObj>, (readonly (ObjectKey$1 & keyof TObj)[])>> = IsObjectLiteral$1<TObj> extends true ? TKeys extends readonly (ObjectKey$1 & keyof TObj)[] ? Process$
|
|
15876
|
+
type ToKv$1<TObj extends AnyObject$1, TKeys extends (readonly (ObjectKey$1 & keyof TObj)[]) | false = As$1<Keys$1<TObj>, (readonly (ObjectKey$1 & keyof TObj)[])>> = IsObjectLiteral$1<TObj> extends true ? TKeys extends readonly (ObjectKey$1 & keyof TObj)[] ? Process$2$1<TObj, TKeys> : Array<{
|
|
15877
15877
|
[K in keyof TObj]: {
|
|
15878
15878
|
key: K;
|
|
15879
15879
|
value: TObj[K];
|
|
@@ -16000,7 +16000,7 @@ type Intersection$1<A extends readonly unknown[], B extends readonly unknown[],
|
|
|
16000
16000
|
|
|
16001
16001
|
type Get$2<TValue, TDeref extends PropertyKey | never> = IfNever$1<TDeref, TValue, // just proxy value back
|
|
16002
16002
|
TDeref extends keyof TValue ? TValue[TDeref] : TValue extends Container$1 ? never : TValue>;
|
|
16003
|
-
type Process$
|
|
16003
|
+
type Process$1$1<TValues extends readonly unknown[], TDeref extends string | number | never, TResults extends readonly unknown[] = []> = [] extends TValues ? TResults : Process$1$1<AfterFirst$1<TValues>, TDeref, Push$2<TResults, First$1<TResults>, IsScalar$1<First$1<TValues>> extends true ? Not$1<Contains$1<TResults, First$1<TValues>>> : Not$1<Contains$1<As$1<IsNever$1<TDeref> extends true ? TResults : GetEach$1<TResults, AsString$1<TDeref>>, string | number | readonly unknown[]>, Get$2<First$1<TValues>, TDeref>>>>>;
|
|
16004
16004
|
/**
|
|
16005
16005
|
* **Unique**`<TList, [TDeref]>`
|
|
16006
16006
|
*
|
|
@@ -16017,7 +16017,7 @@ type Process$1A<TValues extends readonly unknown[], TDeref extends string | numb
|
|
|
16017
16017
|
* type FooBar = Unique<["foo","foo","bar"]>;
|
|
16018
16018
|
* ```
|
|
16019
16019
|
*/
|
|
16020
|
-
type Unique$1<TList extends readonly unknown[], TDeref extends string | number | never = never> = IfNever$1<TDeref, UnionToTuple$1$1<TupleToUnion$1<TList>>, Process$
|
|
16020
|
+
type Unique$1<TList extends readonly unknown[], TDeref extends string | number | never = never> = IfNever$1<TDeref, UnionToTuple$1$1<TupleToUnion$1<TList>>, Process$1$1<TList, TDeref>>;
|
|
16021
16021
|
|
|
16022
16022
|
/**
|
|
16023
16023
|
* **UniqueKeys**`<L,R>`
|
|
@@ -17066,11 +17066,15 @@ declare function capitalize<T extends string>(str: T): Capitalize<T>;
|
|
|
17066
17066
|
*/
|
|
17067
17067
|
declare function cssColor<TColorSpace extends CssColorSpace$1, TV1 extends ColorFnValue$1, TV2 extends ColorFnValue$1, TV3 extends ColorFnValue$1, TOp extends undefined | ColorFnOptOpacity$1>(color: TColorSpace, v1: TV1, v2: TV2, v3: TV3, opacity?: TOp): CssColorFn$1<TColorSpace, TV1, TV2, TV3, TOp extends ` / ${number}` ? TOp : "">;
|
|
17068
17068
|
|
|
17069
|
-
type Rtn$1<TColor extends TwColor$1, TLum extends TwLuminosity$1> = TLum extends keyof TwLuminosityLookup$1 ? TLum extends keyof TwChromaLookup$1 ? TColor extends keyof TwHue$1 ? `oklch(${TwLuminosityLookup$1[TLum]} ${TwChromaLookup$1[TLum]} ${TwHue$1[TColor]})
|
|
17069
|
+
type Rtn$1<TColor extends TwColor$1, TLum extends TwLuminosity$1> = TLum extends keyof TwLuminosityLookup$1 ? TLum extends keyof TwChromaLookup$1 ? TColor extends keyof TwHue$1 ? `oklch(${TwLuminosityLookup$1[TLum]} ${TwChromaLookup$1[TLum]} ${TwHue$1[TColor]})` : never : never : never;
|
|
17070
17070
|
/**
|
|
17071
|
+
* **twColor**`(color, luminosity)` => `oklch(...)`
|
|
17072
|
+
*
|
|
17071
17073
|
* Provides a Tailwind Color using the `oklch` color
|
|
17072
17074
|
* specification. The output is intended to put into
|
|
17073
17075
|
* a CSS property.
|
|
17076
|
+
*
|
|
17077
|
+
* **Related:** `twColorRgb()`
|
|
17074
17078
|
*/
|
|
17075
17079
|
declare function twColor<TColor extends TwColor$1, TLum extends TwLuminosity$1>(color: TColor, luminosity: TLum): Rtn$1<TColor, TLum>;
|
|
17076
17080
|
|
|
@@ -23340,17 +23344,17 @@ declare const TW_HUE: {
|
|
|
23340
23344
|
readonly stone: 273;
|
|
23341
23345
|
};
|
|
23342
23346
|
declare const TW_LUMINOSITY: {
|
|
23343
|
-
readonly 50: 97.78;
|
|
23344
|
-
readonly 100: 93.56;
|
|
23345
|
-
readonly 200: 88.11;
|
|
23346
|
-
readonly 300: 82.67;
|
|
23347
|
-
readonly 400: 74.22;
|
|
23348
|
-
readonly 500: 64.78;
|
|
23349
|
-
readonly 600: 57.33;
|
|
23350
|
-
readonly 700: 46.89;
|
|
23351
|
-
readonly 800: 39.44;
|
|
23352
|
-
readonly 900: 32;
|
|
23353
|
-
readonly 950: 23.78;
|
|
23347
|
+
readonly "50": 97.78;
|
|
23348
|
+
readonly "100": 93.56;
|
|
23349
|
+
readonly "200": 88.11;
|
|
23350
|
+
readonly "300": 82.67;
|
|
23351
|
+
readonly "400": 74.22;
|
|
23352
|
+
readonly "500": 64.78;
|
|
23353
|
+
readonly "600": 57.33;
|
|
23354
|
+
readonly "700": 46.89;
|
|
23355
|
+
readonly "800": 39.44;
|
|
23356
|
+
readonly "900": 32;
|
|
23357
|
+
readonly "950": 23.78;
|
|
23354
23358
|
};
|
|
23355
23359
|
/**
|
|
23356
23360
|
* **TW_CHROMA**
|
|
@@ -23361,17 +23365,17 @@ declare const TW_LUMINOSITY: {
|
|
|
23361
23365
|
* **Related:** `TW_CHROMA_50`, `TW_CHROMA_100`, ...
|
|
23362
23366
|
*/
|
|
23363
23367
|
declare const TW_CHROMA: {
|
|
23364
|
-
readonly 50: 0.0108;
|
|
23365
|
-
readonly 100: 0.0321;
|
|
23366
|
-
readonly 200: 0.0609;
|
|
23367
|
-
readonly 300: 0.0908;
|
|
23368
|
-
readonly 400: 0.1398;
|
|
23369
|
-
readonly 500: 0.1472;
|
|
23370
|
-
readonly 600: 0.1299;
|
|
23371
|
-
readonly 700: 0.1067;
|
|
23372
|
-
readonly 800: 0.0898;
|
|
23373
|
-
readonly 900: 0.0726;
|
|
23374
|
-
readonly 950: 0.054;
|
|
23368
|
+
readonly "50": 0.0108;
|
|
23369
|
+
readonly "100": 0.0321;
|
|
23370
|
+
readonly "200": 0.0609;
|
|
23371
|
+
readonly "300": 0.0908;
|
|
23372
|
+
readonly "400": 0.1398;
|
|
23373
|
+
readonly "500": 0.1472;
|
|
23374
|
+
readonly "600": 0.1299;
|
|
23375
|
+
readonly "700": 0.1067;
|
|
23376
|
+
readonly "800": 0.0898;
|
|
23377
|
+
readonly "900": 0.0726;
|
|
23378
|
+
readonly "950": 0.054;
|
|
23375
23379
|
};
|
|
23376
23380
|
/**
|
|
23377
23381
|
* The list of "targets" where Tailwind color string references
|
|
@@ -24497,23 +24501,23 @@ type ValidChars<T extends readonly string[]> = [] extends T ? true : First<T> ex
|
|
|
24497
24501
|
*/
|
|
24498
24502
|
type IsVariable<T extends string> = T extends Variable ? ValidChars<Chars<T>> extends true ? true : false : false;
|
|
24499
24503
|
|
|
24500
|
-
type Process$
|
|
24504
|
+
type Process$1A<TVal, TDefault> = TVal extends Something ? TVal : TDefault;
|
|
24501
24505
|
/**
|
|
24502
24506
|
* **Default**`<TVal,TDefault,[TProtect]>`
|
|
24503
24507
|
*
|
|
24504
24508
|
* Branching operator which allows giving a value `TVal` a _default value_ when
|
|
24505
24509
|
* it's value is either `null` or `undefined`.
|
|
24506
24510
|
*/
|
|
24507
|
-
type Default<TVal, TDefault> = Process$
|
|
24511
|
+
type Default<TVal, TDefault> = Process$1A<TVal, TDefault>;
|
|
24508
24512
|
|
|
24509
|
-
type Process$
|
|
24513
|
+
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>;
|
|
24510
24514
|
/**
|
|
24511
24515
|
* **And**`<TConditions, [TEmpty]>`
|
|
24512
24516
|
*
|
|
24513
24517
|
* Allows an array of conditions which are either ARE a boolean value or a
|
|
24514
24518
|
* function which evaluates to a boolean value to be logically AND'd together.
|
|
24515
24519
|
*/
|
|
24516
|
-
type And<TConditions, TEmpty extends boolean = false> = TConditions extends readonly (boolean | LogicFunction)[] ? IsEqual<TConditions, []> extends true ? TEmpty : LogicalReturns<TConditions> extends readonly boolean[] ? Process$
|
|
24520
|
+
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;
|
|
24517
24521
|
|
|
24518
24522
|
/**
|
|
24519
24523
|
* comparison operators which require the base type to be a string
|
|
@@ -24558,14 +24562,14 @@ type Comparison<TOp extends ComparatorOperation = ComparatorOperation, TArgs ext
|
|
|
24558
24562
|
fn: TFn;
|
|
24559
24563
|
} : ErrorCondition<"invalid-comparison">;
|
|
24560
24564
|
type Unionize<T> = T extends readonly unknown[] ? TupleToUnion<T> : T;
|
|
24561
|
-
type Process$
|
|
24565
|
+
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;
|
|
24562
24566
|
/**
|
|
24563
24567
|
* **Compare**`<TVal,TOp,TComparator>`
|
|
24564
24568
|
*
|
|
24565
24569
|
* Compares the value `TVal` with `TComparator` using
|
|
24566
24570
|
* the `TOp` _operator_.
|
|
24567
24571
|
*/
|
|
24568
|
-
type Compare$1<TVal, TOp extends ComparatorOperation, TComparator> = WhenNever<Process$
|
|
24572
|
+
type Compare$1<TVal, TOp extends ComparatorOperation, TComparator> = WhenNever<Process$1y<TVal, TOp, TComparator>>;
|
|
24569
24573
|
|
|
24570
24574
|
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;
|
|
24571
24575
|
type NegateTuple<TTuple extends readonly (boolean | LogicFunction)[], TResults extends readonly (boolean | LogicFunction)[] = []> = [] extends TTuple ? IsEqual<TResults, [], false, TResults> : NegateTuple<AfterFirst<TTuple>, [
|
|
@@ -24587,7 +24591,7 @@ type NegateTuple<TTuple extends readonly (boolean | LogicFunction)[], TResults e
|
|
|
24587
24591
|
*/
|
|
24588
24592
|
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;
|
|
24589
24593
|
|
|
24590
|
-
type Process$
|
|
24594
|
+
type Process$1x<TConditions extends readonly boolean[], TBooleanSean extends boolean> = NarrowlyContains<TConditions, true> extends true ? true : [IsEqual<TBooleanSean, true>] extends [true] ? boolean : false;
|
|
24591
24595
|
type ConditionError<TErr> = TErr extends ErrorCondition ? ProxyError<TErr, "Or", "TConditions"> : never;
|
|
24592
24596
|
/**
|
|
24593
24597
|
* **Or**`<TConditions, [TEmpty]>`
|
|
@@ -24600,16 +24604,16 @@ type ConditionError<TErr> = TErr extends ErrorCondition ? ProxyError<TErr, "Or",
|
|
|
24600
24604
|
*
|
|
24601
24605
|
* **Related:** `And`
|
|
24602
24606
|
*/
|
|
24603
|
-
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$
|
|
24607
|
+
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", {
|
|
24604
24608
|
library: "inferred-types/constants";
|
|
24605
24609
|
value: TConditions;
|
|
24606
24610
|
}>;
|
|
24607
24611
|
|
|
24608
|
-
type Process$
|
|
24612
|
+
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>;
|
|
24609
24613
|
type Some<TContainer extends Container, TOp extends "extends" | "equals" | "startsWith" | "endsWith" | "lessThan" | "greaterThan", TComparator extends Or<[
|
|
24610
24614
|
IsEqual<TOp, "startsWith">,
|
|
24611
24615
|
IsEqual<TOp, "endsWith">
|
|
24612
|
-
]> extends true ? string : Or<[IsEqual<TOp, "lessThan">, IsEqual<TOp, "greaterThan">]> extends true ? NumberLike : unknown> = TContainer extends readonly unknown[] ? Process$
|
|
24616
|
+
]> 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;
|
|
24613
24617
|
|
|
24614
24618
|
type AllAcc<TList extends readonly unknown[], TExtend> = [] extends TList ? true : If<Extends<First<TList>, TExtend>, AllAcc<AfterFirst<TList>, TExtend>, false>;
|
|
24615
24619
|
/**
|
|
@@ -24834,11 +24838,11 @@ type DoesExtend<TValue, TExtends> = IsNever<TValue> extends true ? false : [TVal
|
|
|
24834
24838
|
type DoesNotExtend<TValue, TNotExtends> = TValue extends TNotExtends ? false : true;
|
|
24835
24839
|
|
|
24836
24840
|
type Test$1<TValue extends string, TComparator extends string> = TValue extends `${string}${TComparator}` ? true : false;
|
|
24837
|
-
type Process$
|
|
24841
|
+
type Process$1v<TValue extends string, TComparator extends string> = IsStringLiteral<TComparator> extends true ? IsStringLiteral<TValue> extends true ? Test$1<TValue, TComparator> : boolean : boolean;
|
|
24838
24842
|
type ProcessEach$1<TValue extends string, TComparator extends readonly string[]> = Or<{
|
|
24839
|
-
[K in keyof TComparator]: Process$
|
|
24843
|
+
[K in keyof TComparator]: Process$1v<TValue, TComparator[K]>;
|
|
24840
24844
|
}>;
|
|
24841
|
-
type PreProcess$4<TValue extends string, TComparator extends string | readonly string[]> = TComparator extends readonly string[] ? ProcessEach$1<TValue, TComparator> : TComparator extends string ? Process$
|
|
24845
|
+
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;
|
|
24842
24846
|
/**
|
|
24843
24847
|
* **EndsWith**<TValue, TComparator>
|
|
24844
24848
|
*
|
|
@@ -24913,13 +24917,13 @@ type _HasArray<TList extends readonly unknown[]> = [] extends TList ? false : Is
|
|
|
24913
24917
|
*/
|
|
24914
24918
|
type HasArray<TList extends readonly unknown[]> = _HasArray<TList>;
|
|
24915
24919
|
|
|
24916
|
-
type Process$
|
|
24920
|
+
type Process$1u<TStr extends string, TChars extends string, _TOp extends "any" | "all"> = TStr extends `${string}${TChars}${string}` ? true : false;
|
|
24917
24921
|
type ProcessTuple$4<TStr extends string, TChars extends readonly string[], TOp extends "any" | "all"> = TOp extends "any" ? Or<{
|
|
24918
24922
|
[K in keyof TChars]: TStr extends `${string}${TChars[K]}${string}` ? true : false;
|
|
24919
24923
|
}> : And<{
|
|
24920
24924
|
[K in keyof TChars]: TStr extends `${string}${TChars[K]}${string}` ? true : false;
|
|
24921
24925
|
}>;
|
|
24922
|
-
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$
|
|
24926
|
+
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>;
|
|
24923
24927
|
/**
|
|
24924
24928
|
* **HasCharacters**`<TStr,TChars>`
|
|
24925
24929
|
*
|
|
@@ -24941,7 +24945,7 @@ type HasCharacters<TStr extends string, TChars extends string | readonly string[
|
|
|
24941
24945
|
*/
|
|
24942
24946
|
type HasIndex<TContainer, TIdx extends PropertyKey> = TContainer extends Container ? TIdx extends keyof TContainer ? true : false : false;
|
|
24943
24947
|
|
|
24944
|
-
type Process$
|
|
24948
|
+
type Process$1t<TStr extends string, TChars extends string> = ReplaceAll<TStr, TChars, ""> extends "" ? false : true;
|
|
24945
24949
|
/**
|
|
24946
24950
|
* **HasOtherCharacters**`<TStr,TChars>`
|
|
24947
24951
|
*
|
|
@@ -24953,7 +24957,7 @@ type Process$1s<TStr extends string, TChars extends string> = ReplaceAll<TStr, T
|
|
|
24953
24957
|
*
|
|
24954
24958
|
* **Related:** `HasCharacters`
|
|
24955
24959
|
*/
|
|
24956
|
-
type HasOtherCharacters<TStr extends string, TChars extends string | readonly string[]> = [IsWideType<TStr>] extends [true] ? boolean : [TChars] extends [string] ? IsWideType<TChars> extends true ? boolean : Process$
|
|
24960
|
+
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;
|
|
24957
24961
|
|
|
24958
24962
|
/**
|
|
24959
24963
|
* **HasParameters**`<T>`
|
|
@@ -24987,7 +24991,7 @@ type HasProp<TTest, TProp extends string, TIf = true, TElse = false> = TTest ext
|
|
|
24987
24991
|
*/
|
|
24988
24992
|
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;
|
|
24989
24993
|
|
|
24990
|
-
type Process$
|
|
24994
|
+
type Process$1s<A extends readonly unknown[], B extends readonly unknown[]> = And<{
|
|
24991
24995
|
[K in keyof A]: K extends keyof B ? true : false;
|
|
24992
24996
|
}>;
|
|
24993
24997
|
type _Keys$8<T extends object> = UnionToTuple$1<keyof RemoveIndexKeys<T>> extends readonly ObjectKey[] ? UnionToTuple$1<keyof RemoveIndexKeys<T>> : never;
|
|
@@ -24996,7 +25000,7 @@ type _Keys$8<T extends object> = UnionToTuple$1<keyof RemoveIndexKeys<T>> extend
|
|
|
24996
25000
|
*
|
|
24997
25001
|
* Boolean operator which compares two lists to see if they have the same keys.
|
|
24998
25002
|
*/
|
|
24999
|
-
type HasSameKeys<A extends Container, B extends Container> = IsTuple<A> extends true ? IsTuple<B> extends true ? AsTuple<A>["length"] extends AsTuple<B>["length"] ? Process$
|
|
25003
|
+
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;
|
|
25000
25004
|
|
|
25001
25005
|
type Find$1<TList extends readonly unknown[], TComparator> = Or<{
|
|
25002
25006
|
[K in keyof TList]: [TList[K]] extends [TComparator] ? true : false;
|
|
@@ -25004,8 +25008,8 @@ type Find$1<TList extends readonly unknown[], TComparator> = Or<{
|
|
|
25004
25008
|
type Compare<TList extends readonly unknown[], TComparator extends readonly unknown[]> = And<{
|
|
25005
25009
|
[K in keyof TList]: Find$1<TComparator, TList[K]> extends boolean ? Find$1<TComparator, TList[K]> : never;
|
|
25006
25010
|
}, true>;
|
|
25007
|
-
type Process$
|
|
25008
|
-
type _HasSameValues<TContainer extends readonly unknown[], TComparator extends readonly unknown[]> = TContainer extends readonly unknown[] ? Process$
|
|
25011
|
+
type Process$1r<TList extends readonly unknown[], TComparator extends readonly unknown[]> = TList["length"] extends TComparator["length"] ? Compare<TList, TComparator> : false;
|
|
25012
|
+
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;
|
|
25009
25013
|
/**
|
|
25010
25014
|
* **HasSameValues**`<TContainer,TComparator>`
|
|
25011
25015
|
*
|
|
@@ -25366,7 +25370,7 @@ type RegularFn<Fn> = Fn extends ((...args: any[]) => any) ? (...args: Parameters
|
|
|
25366
25370
|
*/
|
|
25367
25371
|
type IsLiteralFn<TFn> = TFn extends AnyFunction ? IsEqual<RegularFn<TFn>, TFn> : false;
|
|
25368
25372
|
|
|
25369
|
-
type Process$
|
|
25373
|
+
type Process$1q<T> = UnionToTuple$1<T> extends readonly unknown[] ? RetainLiterals<UnionToTuple$1<T>>["length"] extends UnionToTuple$1<T>["length"] ? true : false : never;
|
|
25370
25374
|
/**
|
|
25371
25375
|
* **IsLiteralUnion**`<T>`
|
|
25372
25376
|
*
|
|
@@ -25375,7 +25379,7 @@ type Process$1p<T> = UnionToTuple$1<T> extends readonly unknown[] ? RetainLitera
|
|
|
25375
25379
|
*
|
|
25376
25380
|
* **Related:** `IsLiteralUnion`, `IsWideUnion`
|
|
25377
25381
|
*/
|
|
25378
|
-
type IsLiteralUnion<T> = [IsUnion<T>] extends [true] ? Process$
|
|
25382
|
+
type IsLiteralUnion<T> = [IsUnion<T>] extends [true] ? Process$1q<T> : false;
|
|
25379
25383
|
|
|
25380
25384
|
/**
|
|
25381
25385
|
* **IsNarrowingFn**`<TFn>`
|
|
@@ -25397,7 +25401,7 @@ type IsNarrowingFn<TFn> = TFn extends AnyFunction ? Not<IsEqual<LiteralFn<TFn>,
|
|
|
25397
25401
|
*/
|
|
25398
25402
|
type IsNegativeNumber<T extends NumberLike> = IsWideType<T> extends true ? boolean : IsEqual<T, NumberLike> extends true ? boolean : AsString<T> extends `-${number}` ? true : false;
|
|
25399
25403
|
|
|
25400
|
-
type Process$
|
|
25404
|
+
type Process$1p<T> = UnionToTuple$1<T> extends readonly unknown[] ? RetainLiterals<UnionToTuple$1<T>>["length"] extends UnionToTuple$1<T>["length"] ? false : true : never;
|
|
25401
25405
|
/**
|
|
25402
25406
|
* **IsNonLiteralUnion**`<T>`
|
|
25403
25407
|
*
|
|
@@ -25406,7 +25410,7 @@ type Process$1o<T> = UnionToTuple$1<T> extends readonly unknown[] ? RetainLitera
|
|
|
25406
25410
|
*
|
|
25407
25411
|
* **Related:** `IsLiteralUnion`, `IsWideUnion`
|
|
25408
25412
|
*/
|
|
25409
|
-
type IsNonLiteralUnion<T> = If<IsUnion<T>, Process$
|
|
25413
|
+
type IsNonLiteralUnion<T> = If<IsUnion<T>, Process$1p<T>, false>;
|
|
25410
25414
|
|
|
25411
25415
|
/**
|
|
25412
25416
|
* **NotEqual**`<X,Y>`
|
|
@@ -25498,7 +25502,7 @@ type IsOptional<T> = IsUnion<T> extends true ? Contains<UnionToTuple$1<T>, undef
|
|
|
25498
25502
|
*/
|
|
25499
25503
|
type IsRequired<T> = Not<IsOptional<T>>;
|
|
25500
25504
|
|
|
25501
|
-
type Process$
|
|
25505
|
+
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;
|
|
25502
25506
|
/**
|
|
25503
25507
|
* **IsOptionalScalar**`<T>`
|
|
25504
25508
|
*
|
|
@@ -25506,7 +25510,7 @@ type Process$1n<T> = [IsNever<T>] extends [true] ? false : [IsScalar<T>] extends
|
|
|
25506
25510
|
*
|
|
25507
25511
|
* **Related:** `IsScalar`
|
|
25508
25512
|
*/
|
|
25509
|
-
type IsOptionalScalar<T> = Process$
|
|
25513
|
+
type IsOptionalScalar<T> = Process$1o<T> extends boolean ? Process$1o<T> : never;
|
|
25510
25514
|
|
|
25511
25515
|
/**
|
|
25512
25516
|
* **IsPositiveNumber**`<T>`
|
|
@@ -25596,7 +25600,7 @@ type IsStrictPromise<T> = T extends {
|
|
|
25596
25600
|
finally?: (onfinally?: () => void) => any;
|
|
25597
25601
|
} ? true : false;
|
|
25598
25602
|
|
|
25599
|
-
type Process$
|
|
25603
|
+
type Process$1n<T, TNever> = [IsNever<T>] extends [true] ? TNever : [IsEqual<T, true>] extends [true] ? true : false;
|
|
25600
25604
|
/**
|
|
25601
25605
|
* **IsTrue**`<T,[TNever]>`
|
|
25602
25606
|
*
|
|
@@ -25610,7 +25614,7 @@ type Process$1m<T, TNever> = [IsNever<T>] extends [true] ? TNever : [IsEqual<T,
|
|
|
25610
25614
|
* type F2 = IsTrue<"foobar">;
|
|
25611
25615
|
* ```
|
|
25612
25616
|
*/
|
|
25613
|
-
type IsTrue<T, TNever = never> = Process$
|
|
25617
|
+
type IsTrue<T, TNever = never> = Process$1n<T, TNever>;
|
|
25614
25618
|
|
|
25615
25619
|
/**
|
|
25616
25620
|
* **IsTruthy**`<T>`
|
|
@@ -25624,7 +25628,7 @@ type IsTruthy<T> = [
|
|
|
25624
25628
|
T
|
|
25625
25629
|
] 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>;
|
|
25626
25630
|
|
|
25627
|
-
type Process$
|
|
25631
|
+
type Process$1m<T> = [IsNever<T>] extends [true] ? false : T extends readonly unknown[] ? number extends T["length"] ? false : true : false;
|
|
25628
25632
|
/**
|
|
25629
25633
|
* **IsTuple**`<T>`
|
|
25630
25634
|
*
|
|
@@ -25637,7 +25641,7 @@ type Process$1l<T> = [IsNever<T>] extends [true] ? false : T extends readonly un
|
|
|
25637
25641
|
* - types such as `string[]`, etc. are _not_ tuples as they
|
|
25638
25642
|
* do not discretely specify a length of elements
|
|
25639
25643
|
*/
|
|
25640
|
-
type IsTuple<T> = Process$
|
|
25644
|
+
type IsTuple<T> = Process$1m<T> extends boolean ? Process$1m<T> : never;
|
|
25641
25645
|
|
|
25642
25646
|
/**
|
|
25643
25647
|
* **IsUndefined**
|
|
@@ -25798,7 +25802,7 @@ type InvalidNever = Throw<"invalid-never", `The value of T when calling IsWideTy
|
|
|
25798
25802
|
*/
|
|
25799
25803
|
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;
|
|
25800
25804
|
|
|
25801
|
-
type Process$
|
|
25805
|
+
type Process$1l<T extends readonly unknown[]> = {
|
|
25802
25806
|
[K in keyof T]: IsWideType<T[K]> extends true ? true : Or<[IsUndefined<T[K]>, IsNull<T[K]>]> extends true ? true : false;
|
|
25803
25807
|
};
|
|
25804
25808
|
/**
|
|
@@ -25809,7 +25813,7 @@ type Process$1k<T extends readonly unknown[]> = {
|
|
|
25809
25813
|
*
|
|
25810
25814
|
* **Related:** `IsNonLiteralUnion`
|
|
25811
25815
|
*/
|
|
25812
|
-
type IsWideUnion<T> = [IsUnion<T>] extends [true] ? [Process$
|
|
25816
|
+
type IsWideUnion<T> = [IsUnion<T>] extends [true] ? [Process$1l<UnionToTuple$1<T>>] extends [readonly true[]] ? true : false : false;
|
|
25813
25817
|
|
|
25814
25818
|
type Overlap<TKeys extends readonly ObjectKey[], TComparator extends AnyObject> = [] extends TKeys ? false : First<TKeys> extends keyof TComparator ? true : Overlap<AfterFirst<TKeys>, TComparator>;
|
|
25815
25819
|
/**
|
|
@@ -26017,7 +26021,7 @@ type SomeAcc<TList extends readonly unknown[], TExtend> = [] extends TList ? fal
|
|
|
26017
26021
|
type SomeExtend<TList extends readonly unknown[], TExtend> = SomeAcc<TList, TExtend>;
|
|
26018
26022
|
|
|
26019
26023
|
type Check<TValue extends string, TComparator extends string | number> = TValue extends `${TComparator}${string}` ? true : false;
|
|
26020
|
-
type Process$
|
|
26024
|
+
type Process$1k<TValue extends string, TComparator extends string | number | readonly string[]> = TComparator extends readonly string[] ? Check<[
|
|
26021
26025
|
TValue
|
|
26022
26026
|
] extends [number] ? `${TValue}` : TValue, TupleToUnion<TComparator>> : Check<[
|
|
26023
26027
|
TValue
|
|
@@ -26036,9 +26040,9 @@ type Process$1j<TValue extends string, TComparator extends string | number | rea
|
|
|
26036
26040
|
* - this can be much more type efficient for unions with lots of characters
|
|
26037
26041
|
* - if you need larger pattern matches then use a Tuple for `TComparator`
|
|
26038
26042
|
*/
|
|
26039
|
-
type StartsWith<TValue extends string | number, TComparator extends string | number | readonly string[]> = [IsWideType<TValue>] extends [true] ? boolean : [IsWideType<TComparator>] extends [true] ? boolean : IsEqual<Process$
|
|
26043
|
+
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>;
|
|
26040
26044
|
|
|
26041
|
-
type Process$
|
|
26045
|
+
type Process$1j<T extends readonly unknown[]> = HasArray<T> extends true ? true : false;
|
|
26042
26046
|
/**
|
|
26043
26047
|
* **UnionHasArray**`<T>`
|
|
26044
26048
|
*
|
|
@@ -26048,7 +26052,7 @@ type Process$1i<T extends readonly unknown[]> = HasArray<T> extends true ? true
|
|
|
26048
26052
|
* - and that one of the elements of the union is an array
|
|
26049
26053
|
* of some sort.
|
|
26050
26054
|
*/
|
|
26051
|
-
type UnionHasArray<T> = IsUnion<T> extends true ? Process$
|
|
26055
|
+
type UnionHasArray<T> = IsUnion<T> extends true ? Process$1j<UnionToTuple$1<T>> : false;
|
|
26052
26056
|
|
|
26053
26057
|
type WideBooleanNotAllowed = ErrorCondition<"wide-boolean-not-allowed", `Call to Validate<T,E> received a wide boolean type for T!`>;
|
|
26054
26058
|
type WideReturnNotAllowed<T> = ErrorCondition<"wide-return-not-allowed", `Call to Validate<T,E> returned a wide type: ${AsString<T>}!`>;
|
|
@@ -26154,7 +26158,7 @@ type IfEquals<X, Y, IF = X & Y, ELSE = Exclude<X, Y>> = IfEqual<X, Y, IF, ELSE>;
|
|
|
26154
26158
|
type IfErrorCondition<T, IF, ELSE = T> = IsErrorCondition<T> extends true ? T extends ErrorConditionShape ? IF : never : ELSE;
|
|
26155
26159
|
|
|
26156
26160
|
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>;
|
|
26157
|
-
type Process$
|
|
26161
|
+
type Process$1i<TValues extends readonly unknown[], TIgnore, TNotFound> = [] extends TValues ? TNotFound : First<TValues> extends TIgnore ? Process$1i<AfterFirst<TValues>, TIgnore, TNotFound> : First<TValues>;
|
|
26158
26162
|
/**
|
|
26159
26163
|
* **Iff**`<TValues,[TIgnore],[TOffset],[TNotFound]>`
|
|
26160
26164
|
*
|
|
@@ -26173,7 +26177,7 @@ type Iff<TValues extends NonArray | readonly unknown[], TIgnore = Nothing, TOffs
|
|
|
26173
26177
|
library: "inferred-types/constants";
|
|
26174
26178
|
values: AsArray<TValues>;
|
|
26175
26179
|
offset: TOffset;
|
|
26176
|
-
}> : Process$
|
|
26180
|
+
}> : Process$1i<AsArray<TValues>, TIgnore, TNotFound>;
|
|
26177
26181
|
|
|
26178
26182
|
/**
|
|
26179
26183
|
* **IfLength**`<TEvaluate,TLength,IF,[ELSE],[MAYBE]>`
|
|
@@ -26218,8 +26222,8 @@ type Merge$1<TUser extends Partial<OnPassRemap>, TKeys extends readonly (ObjectK
|
|
|
26218
26222
|
false: false;
|
|
26219
26223
|
error: Constant<"not-set">;
|
|
26220
26224
|
}> = [] extends TKeys ? TConfig : Merge$1<TUser, AfterFirst<TKeys>, As<ExpandDictionary<Record<First<TKeys>, TUser[First<TKeys>]> & Omit<TConfig, First<TKeys>>>, OnPassRemap>>;
|
|
26221
|
-
type Process$
|
|
26222
|
-
type Iterate$7<TTest extends readonly unknown[], TPass, TRemap extends OnPassRemap<unknown, unknown, unknown>> = [] extends TTest ? TPass : Process$
|
|
26225
|
+
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;
|
|
26226
|
+
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>;
|
|
26223
26227
|
/**
|
|
26224
26228
|
* **OnPass**`<TTest, TPass,[TRemap],[TFalse]>`
|
|
26225
26229
|
*
|
|
@@ -26233,7 +26237,7 @@ type Iterate$7<TTest extends readonly unknown[], TPass, TRemap extends OnPassRem
|
|
|
26233
26237
|
* - the `TRemap` allows you to remap error conditions
|
|
26234
26238
|
* as well if needed
|
|
26235
26239
|
*/
|
|
26236
|
-
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$
|
|
26240
|
+
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>>>;
|
|
26237
26241
|
|
|
26238
26242
|
/**
|
|
26239
26243
|
* **Passthrough**`<TContent,TPass,THandle>`
|
|
@@ -26285,7 +26289,7 @@ type AsDoneFn<T> = T extends {
|
|
|
26285
26289
|
*/
|
|
26286
26290
|
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>;
|
|
26287
26291
|
|
|
26288
|
-
type Process$
|
|
26292
|
+
type Process$1g<T extends readonly unknown[]> = TupleToUnion<RemoveMarked<{
|
|
26289
26293
|
[K in keyof T]: T[K] extends Nothing ? Constant<"Marked"> : T[K];
|
|
26290
26294
|
}>>;
|
|
26291
26295
|
/**
|
|
@@ -26300,7 +26304,7 @@ type Process$1f<T extends readonly unknown[]> = TupleToUnion<RemoveMarked<{
|
|
|
26300
26304
|
* which defaults to `never`)
|
|
26301
26305
|
* - all other values are just proxied through
|
|
26302
26306
|
*/
|
|
26303
|
-
type AsSomething<T, TNonUnion = never> = IsUnion<T> extends true ? Process$
|
|
26307
|
+
type AsSomething<T, TNonUnion = never> = IsUnion<T> extends true ? Process$1g<UnionToTuple$1<T>> : T extends Nothing ? TNonUnion : T;
|
|
26304
26308
|
|
|
26305
26309
|
/**
|
|
26306
26310
|
* Define a class constructor; allowing strong typing for constructor's parameters
|
|
@@ -26378,13 +26382,13 @@ type RemoveEmpty<T> = T extends Tuple ? As<RemoveMarked<ProcessTup<T>>, readonly
|
|
|
26378
26382
|
|
|
26379
26383
|
type Marked$2 = typeof MARKED;
|
|
26380
26384
|
type _Keys$4<T extends object> = UnionToTuple$1<keyof RemoveIndexKeys<T>> extends readonly ObjectKey[] ? UnionToTuple$1<keyof RemoveIndexKeys<T>> : never;
|
|
26381
|
-
type Process$
|
|
26385
|
+
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;
|
|
26382
26386
|
/**
|
|
26383
26387
|
* **RemoveMarked**`<T>`
|
|
26384
26388
|
*
|
|
26385
26389
|
* Removes all values in `T` which extends `Constant<"Marked">`
|
|
26386
26390
|
*/
|
|
26387
|
-
type RemoveMarked<T extends Container> = Process$
|
|
26391
|
+
type RemoveMarked<T extends Container> = Process$1f<T, T extends Tuple ? NumericKeys<T> : _Keys$4<T>>;
|
|
26388
26392
|
|
|
26389
26393
|
/**
|
|
26390
26394
|
* **RemoveIndexKeys**`<T>`
|
|
@@ -26443,7 +26447,7 @@ type _AsArray<T> = T extends Tuple ? Mutable<T> : If<IsUndefined<T>, [
|
|
|
26443
26447
|
*/
|
|
26444
26448
|
type AsArray<T> = _AsArray<T> extends any[] ? _AsArray<T> : never;
|
|
26445
26449
|
|
|
26446
|
-
type Process$
|
|
26450
|
+
type Process$1e<T extends `${number}`> = If<IsStringLiteral<T>, StripLeading<T, "-">, string>;
|
|
26447
26451
|
/**
|
|
26448
26452
|
* **Abs**`<T>`
|
|
26449
26453
|
*
|
|
@@ -26452,7 +26456,7 @@ type Process$1d<T extends `${number}`> = If<IsStringLiteral<T>, StripLeading<T,
|
|
|
26452
26456
|
* - you can pass in a numeric string literal and it perform ABS func while
|
|
26453
26457
|
* preserving string literal type
|
|
26454
26458
|
*/
|
|
26455
|
-
type Abs<T extends NumberLike> = T extends number ? AsNumber<Process$
|
|
26459
|
+
type Abs<T extends NumberLike> = T extends number ? AsNumber<Process$1e<`${T}`>> : T extends `${number}` ? Process$1e<T> : never;
|
|
26456
26460
|
|
|
26457
26461
|
/**
|
|
26458
26462
|
* **AbsMaybe**`<T>`
|
|
@@ -26497,13 +26501,13 @@ type GrowExp<A extends any[], N extends number, P extends any[][], L extends num
|
|
|
26497
26501
|
type MapItemType<T, I> = {
|
|
26498
26502
|
[K in keyof T]: I;
|
|
26499
26503
|
};
|
|
26500
|
-
type Process$
|
|
26504
|
+
type Process$1d<T, N extends number> = N extends 0 ? [] : MapItemType<GrowExp<[0], N, []>, T>;
|
|
26501
26505
|
/**
|
|
26502
26506
|
* **FixedLengthArray**`<T,N>`
|
|
26503
26507
|
*
|
|
26504
26508
|
* Creates a fixed length `<N>` array of a given type `<T>`
|
|
26505
26509
|
*/
|
|
26506
|
-
type FixedLengthArray<T, N extends number> = Process$
|
|
26510
|
+
type FixedLengthArray<T, N extends number> = Process$1d<T, N> extends readonly unknown[] ? Process$1d<T, N> : never;
|
|
26507
26511
|
|
|
26508
26512
|
/**
|
|
26509
26513
|
* **ParseInt**`<T>`
|
|
@@ -26526,7 +26530,7 @@ type ParseInt<T> = T extends `${infer N extends number}` ? N : never;
|
|
|
26526
26530
|
*/
|
|
26527
26531
|
type AsNumber<T> = T extends number ? T : T extends `${number}` ? ParseInt<T> : never;
|
|
26528
26532
|
|
|
26529
|
-
type Process$
|
|
26533
|
+
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>}`>;
|
|
26530
26534
|
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>;
|
|
26531
26535
|
/**
|
|
26532
26536
|
* **Join**`<TArr,[TSeparator],[TMax]>`
|
|
@@ -26541,7 +26545,7 @@ type Slicer<TTuple extends readonly unknown[], TMax extends number | null, TElli
|
|
|
26541
26545
|
*
|
|
26542
26546
|
* **Related:** `Concat<TArr>`
|
|
26543
26547
|
*/
|
|
26544
|
-
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$
|
|
26548
|
+
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;
|
|
26545
26549
|
|
|
26546
26550
|
/**
|
|
26547
26551
|
* **AsString**<T>
|
|
@@ -26627,9 +26631,9 @@ type RightMostDigit<s extends string> = s extends `${infer rest}${NumericChar}`
|
|
|
26627
26631
|
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;
|
|
26628
26632
|
type _Subtract<TValue extends `${number}`, TCountArr extends readonly unknown[]> = [] extends TCountArr ? TValue : _Subtract<Decrement<TValue>, AfterFirst<TCountArr>>;
|
|
26629
26633
|
type AddNegatives<A extends `${number}`, B extends `${number}`> = SumStrings<A, B>;
|
|
26630
|
-
type Process$
|
|
26634
|
+
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>;
|
|
26631
26635
|
type CheckWide<A extends NumberLike, B extends NumberLike> = IsWideType<A> extends true ? true : IsWideType<B> extends true ? true : false;
|
|
26632
|
-
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$
|
|
26636
|
+
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;
|
|
26633
26637
|
/**
|
|
26634
26638
|
* **Add**`<A,B>`
|
|
26635
26639
|
*
|
|
@@ -26640,7 +26644,7 @@ type PreProcess$2<A extends NumberLike, B extends NumberLike> = CheckWide<A, B>
|
|
|
26640
26644
|
*/
|
|
26641
26645
|
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;
|
|
26642
26646
|
|
|
26643
|
-
type Process$
|
|
26647
|
+
type Process$1a<T extends `${number}`> = EnsureLeading<T, "-">;
|
|
26644
26648
|
/**
|
|
26645
26649
|
* **AsNegativeNumber**
|
|
26646
26650
|
*
|
|
@@ -26648,7 +26652,7 @@ type Process$19<T extends `${number}`> = EnsureLeading<T, "-">;
|
|
|
26648
26652
|
*
|
|
26649
26653
|
* **Related**: `Abs`, `InvertNumericSign`
|
|
26650
26654
|
*/
|
|
26651
|
-
type AsNegativeNumber<T extends NumberLike> = T extends Zero ? T : T extends number ? AsNumber<Process$
|
|
26655
|
+
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;
|
|
26652
26656
|
|
|
26653
26657
|
type Convert$4<T> = T extends `${number}` ? ToNumber<T> : T;
|
|
26654
26658
|
type ConvertTuple<T> = T extends unknown[] ? {
|
|
@@ -26721,7 +26725,7 @@ type AsError__Meta = [
|
|
|
26721
26725
|
type Props$1<T extends AnyObject | undefined> = T extends AnyObject ? T : EmptyObject;
|
|
26722
26726
|
type IdFrom<T extends AnyObject> = AsIndexOf<T, "id", never>;
|
|
26723
26727
|
type LibraryFrom<T extends AnyObject> = AsIndexOf<T, "library", never>;
|
|
26724
|
-
type Process$
|
|
26728
|
+
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", {
|
|
26725
26729
|
id: IdFrom<Props$1<T[2]>>;
|
|
26726
26730
|
library: LibraryFrom<Props$1<T[2]>>;
|
|
26727
26731
|
}> : ErrorCondition<T[0], T[1], never>;
|
|
@@ -26750,7 +26754,7 @@ type Process$18<T extends AsError__Meta> = IsEqual<T, [string, string]> extends
|
|
|
26750
26754
|
*/
|
|
26751
26755
|
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", {
|
|
26752
26756
|
library: "inferred-types/constants";
|
|
26753
|
-
}> : TType extends AsError__Meta ? Process$
|
|
26757
|
+
}> : TType extends AsError__Meta ? Process$19<TType> : Throw<"failed-to-wrap", Concat<[
|
|
26754
26758
|
"An unexpected value -- ",
|
|
26755
26759
|
ToString<TType>,
|
|
26756
26760
|
" -- was passed into the AsError<T> type utility!"
|
|
@@ -26995,7 +26999,7 @@ type StackTrace = StackFrame[];
|
|
|
26995
26999
|
* Iterates over each element of the Tuple
|
|
26996
27000
|
*/
|
|
26997
27001
|
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;
|
|
26998
|
-
type Process$
|
|
27002
|
+
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;
|
|
26999
27003
|
/**
|
|
27000
27004
|
* **Filter**`<TList, TComparator, [TOp]>`
|
|
27001
27005
|
*
|
|
@@ -27019,7 +27023,7 @@ type Process$17<TList extends unknown[] | readonly unknown[], TFilter, TOp exten
|
|
|
27019
27023
|
*
|
|
27020
27024
|
* **Related:** `RetainFromList`, `RemoveFromList`
|
|
27021
27025
|
*/
|
|
27022
|
-
type Filter<TList extends readonly unknown[], TComparator, TOp extends ComparatorOperation = "extends"> = TList extends readonly unknown[] ? IfNever<TComparator, RemoveNever<TList>, If<IsArray<TComparator>, Process$
|
|
27026
|
+
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;
|
|
27023
27027
|
|
|
27024
27028
|
/**
|
|
27025
27029
|
* Converts a Tuple type into a _union_ of the tuple elements
|
|
@@ -27263,7 +27267,7 @@ type CardinalityIn<T extends Cardinality> = T extends `${infer IN}:${string}` ?
|
|
|
27263
27267
|
type CardinalityOut<T extends Cardinality> = T extends `${string}:${infer OUT}` ? OUT : never;
|
|
27264
27268
|
type CardinalityInput<T, C extends Cardinality> = UnionToTuple$1<C> extends readonly unknown[] ? First<UnionToTuple$1<C>> extends 1 ? T : T[] : T | undefined;
|
|
27265
27269
|
|
|
27266
|
-
type Process$
|
|
27270
|
+
type Process$17<TChars extends readonly string[]> = {
|
|
27267
27271
|
[K in keyof TChars]: Capitalize<TChars[K]>;
|
|
27268
27272
|
};
|
|
27269
27273
|
/**
|
|
@@ -27272,7 +27276,7 @@ type Process$16<TChars extends readonly string[]> = {
|
|
|
27272
27276
|
* Type utility which converts all alphabetic characters to their
|
|
27273
27277
|
* UPPERCASE variant.
|
|
27274
27278
|
*/
|
|
27275
|
-
type AllCaps<T extends string> = If<IsStringLiteral<T>, Chars<T> extends readonly string[] ? Process$
|
|
27279
|
+
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>;
|
|
27276
27280
|
|
|
27277
27281
|
/**
|
|
27278
27282
|
* **CamelCase**`<TString,TPreserveWhitespace>`
|
|
@@ -27320,7 +27324,7 @@ type _DU<T extends string> = T extends Lowercase<T> ? T : `-${Lowercase<T>}`;
|
|
|
27320
27324
|
*/
|
|
27321
27325
|
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>}` : "";
|
|
27322
27326
|
|
|
27323
|
-
type Process$
|
|
27327
|
+
type Process$16<TString extends string, TPreserve extends boolean = false> = TPreserve extends true ? Concat<[
|
|
27324
27328
|
LeftWhitespace<TString>,
|
|
27325
27329
|
KebabCase<TString, false>,
|
|
27326
27330
|
RightWhitespace<TString>
|
|
@@ -27340,7 +27344,7 @@ type Process$15<TString extends string, TPreserve extends boolean = false> = TPr
|
|
|
27340
27344
|
* type Dash = Dasherize<"\n foo bar \t">;
|
|
27341
27345
|
* ```
|
|
27342
27346
|
*/
|
|
27343
|
-
type KebabCase<TString extends string, TPreserve extends boolean = false> = Process$
|
|
27347
|
+
type KebabCase<TString extends string, TPreserve extends boolean = false> = Process$16<TString, TPreserve> extends string ? Process$16<TString, TPreserve> : never;
|
|
27344
27348
|
|
|
27345
27349
|
/**
|
|
27346
27350
|
* **LowerAllCaps**`<T>
|
|
@@ -30185,7 +30189,7 @@ type PhoneCountryLookup = Mutable<[...typeof PHONE_COUNTRY_CODES]>;
|
|
|
30185
30189
|
*/
|
|
30186
30190
|
type PhoneCountryCode = FirstOfEach<PhoneCountryLookup>;
|
|
30187
30191
|
|
|
30188
|
-
type Process$
|
|
30192
|
+
type Process$15<T extends string, _TDelimiter extends PhoneNumberDelimiter = PhoneNumberDelimiter> = OnPass<[
|
|
30189
30193
|
], T>;
|
|
30190
30194
|
/**
|
|
30191
30195
|
* **PhoneNumber**`<[T]>`
|
|
@@ -30206,7 +30210,7 @@ type Process$14<T extends string, _TDelimiter extends PhoneNumberDelimiter = Pho
|
|
|
30206
30210
|
*
|
|
30207
30211
|
* - Related: `PhoneNumberWithCountryCode`, `UsPhoneNumber`
|
|
30208
30212
|
*/
|
|
30209
|
-
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$
|
|
30213
|
+
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;
|
|
30210
30214
|
type PhoneNumberWithCountryCode = `+${PhoneCountryCode} ${string}`;
|
|
30211
30215
|
type Sep = "." | " " | "-";
|
|
30212
30216
|
type AreaCode = `(${number}) ` | `${number}${Sep}`;
|
|
@@ -31570,8 +31574,8 @@ interface GetUrlDynamics<T extends string> {
|
|
|
31570
31574
|
allVars: PathAndQueryDynamics<T>;
|
|
31571
31575
|
}
|
|
31572
31576
|
|
|
31573
|
-
type Process$
|
|
31574
|
-
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$
|
|
31577
|
+
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;
|
|
31578
|
+
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;
|
|
31575
31579
|
|
|
31576
31580
|
/**
|
|
31577
31581
|
* **VariableChar**
|
|
@@ -31731,7 +31735,7 @@ type YouTubeSubscriptionsUrl = `https://www.youtube.com/feed/subscriptions${AnyQ
|
|
|
31731
31735
|
*/
|
|
31732
31736
|
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;
|
|
31733
31737
|
|
|
31734
|
-
type Process$
|
|
31738
|
+
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, [
|
|
31735
31739
|
...TResult,
|
|
31736
31740
|
Char
|
|
31737
31741
|
]> : TResult : string;
|
|
@@ -31740,10 +31744,10 @@ type Process$12<TStr extends string, TResult extends readonly string[] = []> = I
|
|
|
31740
31744
|
*
|
|
31741
31745
|
* Takes a literal string and converts it to an array of characters.
|
|
31742
31746
|
*/
|
|
31743
|
-
type Chars<TStr extends string> = IsStringLiteral<TStr> extends true ? Process$
|
|
31747
|
+
type Chars<TStr extends string> = IsStringLiteral<TStr> extends true ? Process$13<TStr> extends readonly string[] ? Process$13<TStr> : never : readonly string[];
|
|
31744
31748
|
|
|
31745
31749
|
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;
|
|
31746
|
-
type Process$
|
|
31750
|
+
type Process$12<T extends Tuple, Result extends string = ""> = [] extends T ? Result : Process$12<AfterFirst<T>, `${Result}${ElementLiteral<First<T>>}`>;
|
|
31747
31751
|
/**
|
|
31748
31752
|
* **Concat**`<T>`
|
|
31749
31753
|
*
|
|
@@ -31759,7 +31763,7 @@ type Process$11<T extends Tuple, Result extends string = ""> = [] extends T ? Re
|
|
|
31759
31763
|
*
|
|
31760
31764
|
* **Related:** `Join<TArr,TWith>`
|
|
31761
31765
|
*/
|
|
31762
|
-
type Concat<T extends readonly unknown[]> = Process$
|
|
31766
|
+
type Concat<T extends readonly unknown[]> = Process$12<T>;
|
|
31763
31767
|
|
|
31764
31768
|
type Year<T extends "strong" | "simple" = "strong"> = T extends "strong" ? `${"1" | "2"}${NumericChar}${NumericChar}${NumericChar}` : `${"1" | "2"}${number}`;
|
|
31765
31769
|
type ZeroThenDigit = `0${NumericChar}`;
|
|
@@ -31991,9 +31995,9 @@ type EmptyString = "";
|
|
|
31991
31995
|
*/
|
|
31992
31996
|
type EmptyStringOr<T extends string | readonly string[]> = T extends readonly string[] ? EmptyString | TupleToUnion<T & readonly string[]> : EmptyString | (T & string);
|
|
31993
31997
|
|
|
31994
|
-
type Process$
|
|
31998
|
+
type Process$11<TContent extends string, TLeading extends string> = TContent extends `${TLeading}${string}` ? TContent : `${TLeading}${TContent}`;
|
|
31995
31999
|
type IterateOver$1<TContent extends readonly (string | number)[], TLeading extends string | number> = {
|
|
31996
|
-
[K in keyof TContent]: TContent[K] extends string ? Process$
|
|
32000
|
+
[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;
|
|
31997
32001
|
};
|
|
31998
32002
|
type WideContent<TContent extends string | number, TLeading extends string | number> = IsString<TContent> extends true ? `${TLeading}${string}` : number;
|
|
31999
32003
|
type WideLeading<TContent extends string | number, TLeading extends string | number> = TContent extends string ? `${TLeading}${TContent}` : number;
|
|
@@ -32018,7 +32022,7 @@ type WideLeading<TContent extends string | number, TLeading extends string | num
|
|
|
32018
32022
|
*
|
|
32019
32023
|
* **Related:** `EnsureLeadingEvery`, `EnsureTrailing`, `EnsureSurround`, `Surround`
|
|
32020
32024
|
*/
|
|
32021
|
-
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$
|
|
32025
|
+
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;
|
|
32022
32026
|
|
|
32023
32027
|
/**
|
|
32024
32028
|
* **EnsureLeadingEvery**`<TList, TLeader>`
|
|
@@ -32173,9 +32177,9 @@ type _FindIndexesWithMeta__Tuple<TOriginal extends readonly unknown[], TContent
|
|
|
32173
32177
|
*/
|
|
32174
32178
|
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;
|
|
32175
32179
|
|
|
32176
|
-
type Process
|
|
32180
|
+
type Process$10<TContent extends string> = First<Chars<TContent>>;
|
|
32177
32181
|
type Iterate$5<TContent extends readonly string[]> = {
|
|
32178
|
-
[K in keyof TContent]: Process
|
|
32182
|
+
[K in keyof TContent]: Process$10<TContent[K]>;
|
|
32179
32183
|
};
|
|
32180
32184
|
/**
|
|
32181
32185
|
* **FirstChar**`<TContent>`
|
|
@@ -32190,7 +32194,7 @@ type Iterate$5<TContent extends readonly string[]> = {
|
|
|
32190
32194
|
*
|
|
32191
32195
|
* **Related:** `LastChar`, `AfterFirstChar`
|
|
32192
32196
|
*/
|
|
32193
|
-
type FirstChar<TContent extends string | readonly string[]> = TContent extends readonly string[] ? Iterate$5<TContent> : TContent extends string ? string extends TContent ? string : Process
|
|
32197
|
+
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;
|
|
32194
32198
|
|
|
32195
32199
|
type UsStateLookup = Mutable<typeof US_STATE_LOOKUP>;
|
|
32196
32200
|
type UsProvinceLookup = Mutable<typeof US_STATE_LOOKUP_PROVINCES>;
|
|
@@ -32286,9 +32290,9 @@ type HasUppercase<T extends string> = string extends T ? "unknown" : T extends `
|
|
|
32286
32290
|
*/
|
|
32287
32291
|
type IsCapitalized<T extends string> = string extends T ? "unknown" : T extends Capitalize<T> ? true : false;
|
|
32288
32292
|
|
|
32289
|
-
type Process
|
|
32293
|
+
type Process$$<TContent extends string> = Last<Chars<TContent>>;
|
|
32290
32294
|
type Iterate$4<TContent extends readonly string[]> = {
|
|
32291
|
-
[K in keyof TContent]: Process
|
|
32295
|
+
[K in keyof TContent]: Process$$<TContent[K]>;
|
|
32292
32296
|
};
|
|
32293
32297
|
/**
|
|
32294
32298
|
* **LastChar**`<TContent>`
|
|
@@ -32303,7 +32307,7 @@ type Iterate$4<TContent extends readonly string[]> = {
|
|
|
32303
32307
|
*
|
|
32304
32308
|
* **Related:** `FirstChar`, `AfterFirstChar`
|
|
32305
32309
|
*/
|
|
32306
|
-
type LastChar<TContent extends string | readonly string[]> = TContent extends readonly string[] ? Iterate$4<TContent> : TContent extends string ? string extends TContent ? string : Process
|
|
32310
|
+
type LastChar<TContent extends string | readonly string[]> = TContent extends readonly string[] ? Iterate$4<TContent> : TContent extends string ? string extends TContent ? string : Process$$<TContent> : never;
|
|
32307
32311
|
|
|
32308
32312
|
type AccelerationMetricsLookup = typeof ACCELERATION_METRICS_LOOKUP;
|
|
32309
32313
|
/**
|
|
@@ -32867,7 +32871,7 @@ type TypeStrength = "strong" | "simple";
|
|
|
32867
32871
|
type StripSlash<T extends readonly string[]> = {
|
|
32868
32872
|
[K in keyof T]: T[K] extends `/${infer Middle}/` ? Middle : T[K] extends `/${infer Trailing}` ? Trailing : T[K] extends `${infer Leading}/` ? Leading : T[K];
|
|
32869
32873
|
};
|
|
32870
|
-
type Process$
|
|
32874
|
+
type Process$_<TPath extends string, TFirst extends string, TLast extends string> = TFirst extends `/${string}` ? TLast extends `${string}/` ? `/${TPath}/` : `/${TPath}` : TLast extends `${string}/` ? `${TPath}/` : TPath;
|
|
32871
32875
|
/**
|
|
32872
32876
|
* **PathJoin**`<T,U>`
|
|
32873
32877
|
*
|
|
@@ -32881,7 +32885,7 @@ type Process$Z<TPath extends string, TFirst extends string, TLast extends string
|
|
|
32881
32885
|
* `EnsureStarting<T>`, and `StripStarting<T>` to further shape
|
|
32882
32886
|
* the type.
|
|
32883
32887
|
*/
|
|
32884
|
-
type PathJoin<TSegments extends readonly string[]> = StripSlash<TSegments> extends readonly string[] ? Process$
|
|
32888
|
+
type PathJoin<TSegments extends readonly string[]> = StripSlash<TSegments> extends readonly string[] ? Process$_<Join<StripSlash<TSegments>, "/">, First<TSegments>, Last<TSegments>> : never;
|
|
32885
32889
|
|
|
32886
32890
|
type ExceptionLookup = typeof PLURAL_EXCEPTIONS;
|
|
32887
32891
|
type SingularNoun = "s" | "sh" | "ch" | "x" | "z" | "o";
|
|
@@ -32983,7 +32987,7 @@ type RetainAfterLast<TStr extends string, TBreak extends string, TInclude extend
|
|
|
32983
32987
|
TBreak
|
|
32984
32988
|
], TStr extends `${string}${infer Break extends TBreak}${infer REST}` ? If<IsTrue<TInclude>, `${Break}${REST}`, `${REST}`> : TStr, string>;
|
|
32985
32989
|
|
|
32986
|
-
type Process$
|
|
32990
|
+
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>}`>;
|
|
32987
32991
|
/**
|
|
32988
32992
|
* **RetainUntil**`<TContent,TComparator>`
|
|
32989
32993
|
*
|
|
@@ -32997,7 +33001,7 @@ type Process$Y<TChars extends readonly string[], TOp extends "is" | "not", TComp
|
|
|
32997
33001
|
*
|
|
32998
33002
|
* **Related:** `RetainWhile`
|
|
32999
33003
|
*/
|
|
33000
|
-
type RetainUntil<TContent extends string, TComparator extends string, TInclude extends boolean = false> = Process$
|
|
33004
|
+
type RetainUntil<TContent extends string, TComparator extends string, TInclude extends boolean = false> = Process$Z<Chars<TContent>, "not", TComparator, TInclude>;
|
|
33001
33005
|
/**
|
|
33002
33006
|
* **RetainWhile**`<TContent,TComparator>`
|
|
33003
33007
|
*
|
|
@@ -33011,7 +33015,7 @@ type RetainUntil<TContent extends string, TComparator extends string, TInclude e
|
|
|
33011
33015
|
*
|
|
33012
33016
|
* **Related:** `RetainUntil`
|
|
33013
33017
|
*/
|
|
33014
|
-
type RetainWhile<TContent extends string, TComparator extends string> = Process$
|
|
33018
|
+
type RetainWhile<TContent extends string, TComparator extends string> = Process$Z<Chars<TContent>, "is", TComparator>;
|
|
33015
33019
|
|
|
33016
33020
|
type Policy = "omit" | "before" | "after";
|
|
33017
33021
|
type Postfix<T extends string> = ["postfix", T];
|
|
@@ -33028,7 +33032,7 @@ type EachBlock<TContent extends readonly (string | Postfix<string>)[], TSep exte
|
|
|
33028
33032
|
First<TContent>
|
|
33029
33033
|
]>;
|
|
33030
33034
|
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>;
|
|
33031
|
-
type Process$
|
|
33035
|
+
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;
|
|
33032
33036
|
/**
|
|
33033
33037
|
* **Split**`<TContent,TSep,[TPolicy]>`
|
|
33034
33038
|
*
|
|
@@ -33043,7 +33047,7 @@ type Process$X<TContent extends string, TSep extends string | readonly string[],
|
|
|
33043
33047
|
* than `SplitAlt` but there are instances where `SplitAlt` is more performant
|
|
33044
33048
|
* in inference.
|
|
33045
33049
|
*/
|
|
33046
|
-
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$
|
|
33050
|
+
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[];
|
|
33047
33051
|
|
|
33048
33052
|
type UnionPolicy = "omit" | "include";
|
|
33049
33053
|
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
|
|
@@ -33058,8 +33062,8 @@ type LiteralSplit<TContent extends string, TSep extends string, TUnionPolicy ext
|
|
|
33058
33062
|
...TResults,
|
|
33059
33063
|
TUnionPolicy extends "omit" ? Block : `${Block}${TSep}`
|
|
33060
33064
|
]> : Filter<[...TResults, TContent], "">;
|
|
33061
|
-
type Process$
|
|
33062
|
-
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$
|
|
33065
|
+
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;
|
|
33066
|
+
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>;
|
|
33063
33067
|
/**
|
|
33064
33068
|
* **SplitAlt**`<TContent,TSep,[TPolicy]>`
|
|
33065
33069
|
*
|
|
@@ -33099,7 +33103,7 @@ type StripAfter<TStr extends string, TBreak extends string> = IsStringLiteral<TS
|
|
|
33099
33103
|
*/
|
|
33100
33104
|
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;
|
|
33101
33105
|
|
|
33102
|
-
type Process$
|
|
33106
|
+
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;
|
|
33103
33107
|
/**
|
|
33104
33108
|
* **StripLeading**`<T, U>`
|
|
33105
33109
|
*
|
|
@@ -33116,9 +33120,9 @@ type Process$V<TContent extends string, TStrip extends string> = And<[IsStringLi
|
|
|
33116
33120
|
* - if `T` is a non-string type then no transformation will be done
|
|
33117
33121
|
* - same applies to `U`
|
|
33118
33122
|
*/
|
|
33119
|
-
type StripLeading<TContent extends string | number, TStrip extends string | number> = TContent extends number ? AsNumber<Process$
|
|
33123
|
+
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;
|
|
33120
33124
|
|
|
33121
|
-
type Process$
|
|
33125
|
+
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;
|
|
33122
33126
|
/**
|
|
33123
33127
|
* **StripSurround**`<TContent, TSurround>`
|
|
33124
33128
|
*
|
|
@@ -33130,9 +33134,9 @@ type Process$U<TContent extends string, TSurround extends string> = TContent ext
|
|
|
33130
33134
|
* type Hello = StripSurround<"(Hi there)", "(" | ")">;
|
|
33131
33135
|
* ```
|
|
33132
33136
|
*/
|
|
33133
|
-
type StripSurround<TContent extends string | number, TSurround extends string | number> = IsWideType<TContent> extends true ? TContent : TContent extends string ? Process$
|
|
33137
|
+
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>>>;
|
|
33134
33138
|
|
|
33135
|
-
type Process$
|
|
33139
|
+
type Process$U<TContent extends string, TStrip extends string> = And<[IsStringLiteral<TContent>, IsStringLiteral<TStrip>]> extends true ? TContent extends `${infer Before}${TStrip}` ? Before : TContent : string;
|
|
33136
33140
|
/**
|
|
33137
33141
|
* **StripEnding**`<TContent, TStrip>`
|
|
33138
33142
|
*
|
|
@@ -33146,23 +33150,23 @@ type Process$T<TContent extends string, TStrip extends string> = And<[IsStringLi
|
|
|
33146
33150
|
* type R = StripEnding<T,U>;
|
|
33147
33151
|
* ```
|
|
33148
33152
|
*/
|
|
33149
|
-
type StripTrailing<TContent extends string | number, TStrip extends string | number> = TContent extends number ? AsNumber<Process$
|
|
33153
|
+
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;
|
|
33150
33154
|
|
|
33151
|
-
type Process$
|
|
33155
|
+
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> : "">;
|
|
33152
33156
|
/**
|
|
33153
33157
|
* **StripUntil**`<TContent,TComparator>`
|
|
33154
33158
|
*
|
|
33155
33159
|
* Strip characters from the start of `TContent` _until_ a
|
|
33156
33160
|
* character extends `TComparator`.
|
|
33157
33161
|
*/
|
|
33158
|
-
type StripUntil<TContent extends string, TComparator extends string> = Process$
|
|
33162
|
+
type StripUntil<TContent extends string, TComparator extends string> = Process$T<Chars<TContent>, "not", TComparator, TContent>;
|
|
33159
33163
|
/**
|
|
33160
33164
|
* **StripWhile**`<TContent,TComparator>`
|
|
33161
33165
|
*
|
|
33162
33166
|
* Strip characters from the start of `TContent` _while_ those
|
|
33163
33167
|
* characters extend `TComparator`.
|
|
33164
33168
|
*/
|
|
33165
|
-
type StripWhile<TContent extends string, TComparator extends string> = Process$
|
|
33169
|
+
type StripWhile<TContent extends string, TComparator extends string> = Process$T<Chars<TContent>, "is", TComparator, TContent>;
|
|
33166
33170
|
|
|
33167
33171
|
type Compute<TStr extends string, TLen extends Tuple = []> = TStr extends `${infer _Char}${infer Rest}` ? Compute<Rest, [...TLen, unknown]> : TLen["length"];
|
|
33168
33172
|
/**
|
|
@@ -33173,9 +33177,9 @@ type Compute<TStr extends string, TLen extends Tuple = []> = TStr extends `${inf
|
|
|
33173
33177
|
*/
|
|
33174
33178
|
type StrLen<T extends string> = Compute<T>;
|
|
33175
33179
|
|
|
33176
|
-
type Process$
|
|
33180
|
+
type Process$S<TContent extends string, TPrefix extends string, TPostfix extends string> = `${TPrefix}${TContent}${TPostfix}`;
|
|
33177
33181
|
type ProcessEach<TContent extends readonly string[], TPrefix extends string, TPostfix extends string> = {
|
|
33178
|
-
[K in keyof TContent]: Process$
|
|
33182
|
+
[K in keyof TContent]: Process$S<TContent[K], TPrefix, TPostfix>;
|
|
33179
33183
|
};
|
|
33180
33184
|
/**
|
|
33181
33185
|
* **Surround**`<TContent,TPrefix,TPostfix>`
|
|
@@ -33190,7 +33194,7 @@ type ProcessEach<TContent extends readonly string[], TPrefix extends string, TPo
|
|
|
33190
33194
|
* type T2 = Surround<["one","two"], "<",">">;
|
|
33191
33195
|
* ```
|
|
33192
33196
|
*/
|
|
33193
|
-
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$
|
|
33197
|
+
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;
|
|
33194
33198
|
|
|
33195
33199
|
type CivilianTwoDigitHour = "10" | "11" | "12";
|
|
33196
33200
|
type TimeResolution = "HH:MM" | "HH:MM:SS" | "HH:MM:SS.ms";
|
|
@@ -33406,7 +33410,7 @@ type TypeSubtype = `${string}/${string}` & {
|
|
|
33406
33410
|
brand: "type-subtype";
|
|
33407
33411
|
};
|
|
33408
33412
|
|
|
33409
|
-
type Process$
|
|
33413
|
+
type Process$R<T> = T extends NumberLike ? AsNumber<T> : T extends BooleanLike ? AsBoolean<T> : T;
|
|
33410
33414
|
/**
|
|
33411
33415
|
* **UnderlyingType**`<T>`
|
|
33412
33416
|
*
|
|
@@ -33419,8 +33423,8 @@ type Process$Q<T> = T extends NumberLike ? AsNumber<T> : T extends BooleanLike ?
|
|
|
33419
33423
|
* In all other cases it simply proxies the type of `T` through.
|
|
33420
33424
|
*/
|
|
33421
33425
|
type UnderlyingType<T> = T extends readonly unknown[] ? {
|
|
33422
|
-
[K in keyof T]: Process$
|
|
33423
|
-
} : Process$
|
|
33426
|
+
[K in keyof T]: Process$R<T[K]>;
|
|
33427
|
+
} : Process$R<T>;
|
|
33424
33428
|
|
|
33425
33429
|
/**
|
|
33426
33430
|
* **JsonValue**`<T>`
|
|
@@ -33472,7 +33476,7 @@ type MergeTuplesAcc<TDefault extends readonly unknown[], TOverride extends reado
|
|
|
33472
33476
|
* - if `TDefault` is longer than `TOverride` then `TDefault` will be extended
|
|
33473
33477
|
*/
|
|
33474
33478
|
type MergeTuples<TDefault extends readonly Narrowable[], TOverride extends readonly Narrowable[], TKey extends string | false = false> = MergeTuplesAcc<[...TDefault], [...TOverride], TKey>;
|
|
33475
|
-
type Process$
|
|
33479
|
+
type Process$Q<TDefault, TOverride> = And<[
|
|
33476
33480
|
DoesExtend<TDefault, Dictionary | Nothing>,
|
|
33477
33481
|
DoesExtend<TOverride, Dictionary | Nothing>
|
|
33478
33482
|
]> extends true ? MergeObjects<AsDictionary<TDefault>, AsDictionary<TOverride>> : And<[
|
|
@@ -33489,14 +33493,14 @@ type Process$P<TDefault, TOverride> = And<[
|
|
|
33489
33493
|
*
|
|
33490
33494
|
* **Related:** `MergeObjects`, `MergeScalars`, `MergeTuples`
|
|
33491
33495
|
*/
|
|
33492
|
-
type Merge<TDefault, TOverride> = AreSameType<TDefault, TOverride> extends true ? Process$
|
|
33496
|
+
type Merge<TDefault, TOverride> = AreSameType<TDefault, TOverride> extends true ? Process$Q<TDefault, TOverride> : Or<[
|
|
33493
33497
|
IsNothing<TDefault>,
|
|
33494
33498
|
IsNothing<TOverride>
|
|
33495
33499
|
]> 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", {
|
|
33496
33500
|
library: "inferred-types/constants";
|
|
33497
33501
|
TDef: TDefault;
|
|
33498
33502
|
TOver: TOverride;
|
|
33499
|
-
}> : Process$
|
|
33503
|
+
}> : 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", {
|
|
33500
33504
|
library: "inferred-types/constants";
|
|
33501
33505
|
TDef: TDefault;
|
|
33502
33506
|
TOver: TOverride;
|
|
@@ -33538,7 +33542,7 @@ type Immutable<T extends {
|
|
|
33538
33542
|
} ? Immutable<T[key]> : T[key];
|
|
33539
33543
|
};
|
|
33540
33544
|
|
|
33541
|
-
type Process$
|
|
33545
|
+
type Process$P<TSource extends AnyObject, TKeys extends readonly (ObjectKey & keyof TSource)[], TTuple extends readonly KeyValue[] = []> = [] extends TKeys ? TTuple : Process$P<TSource, AfterFirst<TKeys>, [
|
|
33542
33546
|
...TTuple,
|
|
33543
33547
|
{
|
|
33544
33548
|
key: First<TKeys>;
|
|
@@ -33562,10 +33566,10 @@ type Compact<TSource extends AnyObject, TKeys extends readonly (ObjectKey & keyo
|
|
|
33562
33566
|
* type C = ObjectToTuple< foo: 1 }, true>;
|
|
33563
33567
|
* ```
|
|
33564
33568
|
*/
|
|
33565
|
-
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$
|
|
33569
|
+
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)[]>>;
|
|
33566
33570
|
|
|
33567
33571
|
type Prefix$2<T extends boolean> = T extends true ? "\n " : "";
|
|
33568
|
-
type Process$
|
|
33572
|
+
type Process$O<T extends readonly Record<ObjectKey, any>[], E extends boolean> = Join<{
|
|
33569
33573
|
[K in keyof T]: T[K] extends Record<infer Key extends string, infer Value> ? `${Prefix$2<E>}${Key}: ${AsString<Value>}` : never;
|
|
33570
33574
|
}, "; ">;
|
|
33571
33575
|
/**
|
|
@@ -33575,9 +33579,9 @@ type Process$N<T extends readonly Record<ObjectKey, any>[], E extends boolean> =
|
|
|
33575
33579
|
*
|
|
33576
33580
|
* **Related:** `ObjectToJsString`, `ObjectToJsonString`, `ObjectToTuple`
|
|
33577
33581
|
*/
|
|
33578
|
-
type ObjectToCssString<TObj extends AnyObject, TExpand extends boolean = false> = TObj extends ExplicitlyEmptyObject ? "{}" : IsWideContainer<TObj> extends true ? string : Surround<Process$
|
|
33582
|
+
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}">;
|
|
33579
33583
|
|
|
33580
|
-
type Process$
|
|
33584
|
+
type Process$N<T extends readonly Record<ObjectKey, any>[]> = Join<{
|
|
33581
33585
|
[K in keyof T]: T[K] extends Record<infer Key extends string, infer Value> ? `${Surround<Key, `"`, `"`>}: ${Value extends string ? `"${Value}"` : `${AsString<Value>}`}` : never;
|
|
33582
33586
|
}, ", ">;
|
|
33583
33587
|
/**
|
|
@@ -33587,10 +33591,10 @@ type Process$M<T extends readonly Record<ObjectKey, any>[]> = Join<{
|
|
|
33587
33591
|
*
|
|
33588
33592
|
* **Related:** `ObjectToCssString`, `ObjectToJsString`, `ObjectToTuple`
|
|
33589
33593
|
*/
|
|
33590
|
-
type ObjectToJsonString<TObj extends AnyObject> = TObj extends ExplicitlyEmptyObject ? "{}" : IsWideContainer<TObj> extends true ? string : Surround<Process$
|
|
33594
|
+
type ObjectToJsonString<TObj extends AnyObject> = TObj extends ExplicitlyEmptyObject ? "{}" : IsWideContainer<TObj> extends true ? string : Surround<Process$N<ObjectToTuple<TObj, true>>, "{ ", " }">;
|
|
33591
33595
|
|
|
33592
33596
|
type Prefix$1<T extends boolean> = T extends true ? "\n " : "";
|
|
33593
|
-
type Process$
|
|
33597
|
+
type Process$M<T extends readonly Record<ObjectKey, any>[], E extends boolean> = Join<{
|
|
33594
33598
|
[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;
|
|
33595
33599
|
}, ", ">;
|
|
33596
33600
|
/**
|
|
@@ -33600,10 +33604,10 @@ type Process$L<T extends readonly Record<ObjectKey, any>[], E extends boolean> =
|
|
|
33600
33604
|
*
|
|
33601
33605
|
* **Related:** `ObjectToCssString`, `ObjectToJsonString`, `ObjectToTuple`
|
|
33602
33606
|
*/
|
|
33603
|
-
type ObjectToJsString<TObj extends AnyObject, TExpand extends boolean = false> = TObj extends ExplicitlyEmptyObject ? "{}" : IsWideContainer<TObj> extends true ? string : Surround<Process$
|
|
33607
|
+
type ObjectToJsString<TObj extends AnyObject, TExpand extends boolean = false> = TObj extends ExplicitlyEmptyObject ? "{}" : IsWideContainer<TObj> extends true ? string : Surround<Process$M<ObjectToTuple<TObj, true>, TExpand>, "{ ", " }">;
|
|
33604
33608
|
|
|
33605
33609
|
type Prefix<T extends boolean> = T extends true ? "\n " : "";
|
|
33606
|
-
type Process$
|
|
33610
|
+
type Process$L<T extends readonly Record<ObjectKey, any>[], E extends boolean> = Join<{
|
|
33607
33611
|
[K in keyof T]: T[K] extends Record<infer Key extends string, infer Value> ? Value extends AnyObject ? `${Prefix<E>}${Key} ${AsString<Value>}` : never : never;
|
|
33608
33612
|
}, "\n ">;
|
|
33609
33613
|
/**
|
|
@@ -33613,7 +33617,7 @@ type Process$K<T extends readonly Record<ObjectKey, any>[], E extends boolean> =
|
|
|
33613
33617
|
*
|
|
33614
33618
|
* **Related:** `ObjectToJsString`, `ObjectToJsonString`, `ObjectToTuple`, `ObjectToCssString`
|
|
33615
33619
|
*/
|
|
33616
|
-
type ObjectToKeyframeString<TObj extends AnyObject, TExpand extends boolean = false> = TObj extends ExplicitlyEmptyObject ? "{}" : IsWideContainer<TObj> extends true ? string : Surround<Process$
|
|
33620
|
+
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}">;
|
|
33617
33621
|
|
|
33618
33622
|
type ProcessTuple$3<TArray extends readonly unknown[] | unknown[], TResults extends readonly unknown[] = []> = [
|
|
33619
33623
|
] extends TArray ? TResults : First<TArray> extends TypedFunction ? ProcessTuple$3<AfterFirst<TArray>, [...TResults, ReturnType<First<TArray>>]> : ProcessTuple$3<AfterFirst<TArray>, [...TResults, First<TArray>]>;
|
|
@@ -33683,9 +33687,9 @@ type RemoveIndex<T extends Record<any, any>> = {
|
|
|
33683
33687
|
*/
|
|
33684
33688
|
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;
|
|
33685
33689
|
|
|
33686
|
-
type Process$
|
|
33687
|
-
type Iterate$2<TText extends string, TFind extends readonly string[], TReplace extends string> = [] extends TFind ? TText : Iterate$2<Process$
|
|
33688
|
-
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$
|
|
33690
|
+
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>;
|
|
33691
|
+
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>;
|
|
33692
|
+
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;
|
|
33689
33693
|
type Multiple<TText extends readonly string[], TFind extends string, TReplace extends string, TResult extends readonly string[] = []> = [] extends TText ? TResult : Multiple<AfterFirst<TText>, TFind, TReplace, [
|
|
33690
33694
|
...TResult,
|
|
33691
33695
|
ReplaceAll<First<TText>, TFind, TReplace>
|
|
@@ -33709,7 +33713,7 @@ type Multiple<TText extends readonly string[], TFind extends string, TReplace ex
|
|
|
33709
33713
|
*/
|
|
33710
33714
|
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;
|
|
33711
33715
|
|
|
33712
|
-
type Process$
|
|
33716
|
+
type Process$J<TChars extends readonly string[], TRetain extends string> = RemoveMarked<{
|
|
33713
33717
|
[K in keyof TChars]: TChars[K] extends TRetain ? TChars[K] : Constant<"Marked">;
|
|
33714
33718
|
}>;
|
|
33715
33719
|
/**
|
|
@@ -33719,7 +33723,7 @@ type Process$I<TChars extends readonly string[], TRetain extends string> = Remov
|
|
|
33719
33723
|
* of the characters in `TRetain` _retained_ while all
|
|
33720
33724
|
* other characters are removed.
|
|
33721
33725
|
*/
|
|
33722
|
-
type RetainChars<TContent extends string, TRetain extends string> = Or<[IsWideType<TContent>, IsWideType<TRetain>]> extends true ? string : Process$
|
|
33726
|
+
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;
|
|
33723
33727
|
|
|
33724
33728
|
type ProcessTuple$2<TArray extends readonly unknown[] | unknown[], TResults extends readonly unknown[] = []> = [
|
|
33725
33729
|
] extends TArray ? TResults : First<TArray> extends TypedFunction ? ProcessTuple$2<AfterFirst<TArray>, [...TResults, ReturnType<First<TArray>>]> : ProcessTuple$2<AfterFirst<TArray>, TResults>;
|
|
@@ -33776,7 +33780,7 @@ type StringLiteralFromTuple<T extends readonly unknown[]> = LitString<T>;
|
|
|
33776
33780
|
type Strip<TChars extends readonly string[], TStrip extends string> = {
|
|
33777
33781
|
[K in keyof TChars]: TChars[K] extends TStrip ? Marked$3 : TChars[K];
|
|
33778
33782
|
};
|
|
33779
|
-
type Process$
|
|
33783
|
+
type Process$I<TChars extends readonly string[], TStrip extends string> = As<RemoveMarked<Strip<TChars, TStrip>>, readonly string[]>;
|
|
33780
33784
|
/**
|
|
33781
33785
|
* **StripChars**`<TContent,TStrip>`
|
|
33782
33786
|
*
|
|
@@ -33787,7 +33791,7 @@ type Process$H<TChars extends readonly string[], TStrip extends string> = As<Rem
|
|
|
33787
33791
|
* of single characters or this will throw
|
|
33788
33792
|
* `ErrorCondition<"invalid-strip-char">`
|
|
33789
33793
|
*/
|
|
33790
|
-
type StripChars<TContent extends string, TStrip extends string> = Or<[IsWideType<TContent>, IsWideType<TStrip>]> extends true ? string : Chars<TContent> extends readonly string[] ? Concat<Process$
|
|
33794
|
+
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;
|
|
33791
33795
|
|
|
33792
33796
|
/**
|
|
33793
33797
|
* **ToBoolean**`<T>`
|
|
@@ -33896,7 +33900,7 @@ type ToStringArray<T extends Tuple> = {
|
|
|
33896
33900
|
*/
|
|
33897
33901
|
type ToUnion<T extends any[]> = T[number];
|
|
33898
33902
|
|
|
33899
|
-
type Process$
|
|
33903
|
+
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;
|
|
33900
33904
|
/**
|
|
33901
33905
|
* Trims off blank spaces, `\n` and `\t` characters from both sides of a _string literal_.
|
|
33902
33906
|
* ```ts
|
|
@@ -33906,7 +33910,7 @@ type Process$G<S extends string> = string extends S ? string : S extends `${Whit
|
|
|
33906
33910
|
* type T = Trim<string>;
|
|
33907
33911
|
* ```
|
|
33908
33912
|
*/
|
|
33909
|
-
type Trim<S extends string> = Process$
|
|
33913
|
+
type Trim<S extends string> = Process$H<S> extends string ? Process$H<S> : never;
|
|
33910
33914
|
|
|
33911
33915
|
/**
|
|
33912
33916
|
* Trims off whitespace on left of string
|
|
@@ -33982,7 +33986,7 @@ type Mutate<TElements extends readonly unknown[], TOp extends UnionMutationOp> =
|
|
|
33982
33986
|
} : never;
|
|
33983
33987
|
type UnionMutate<U, Op extends UnionMutationOp> = [U] extends [never] ? never : IsUnion<U> extends true ? Mutate<UnionToTuple$1<U>, Op>[number] : U;
|
|
33984
33988
|
|
|
33985
|
-
type Process$
|
|
33989
|
+
type Process$G<U, Last = LastInUnion$1<U>> = [U] extends [never] ? [] : [IsUnion<U>] extends [true] ? [Last, Exclude<U, Last>] : U;
|
|
33986
33990
|
/**
|
|
33987
33991
|
* **ShiftUnion**`<U>`
|
|
33988
33992
|
*
|
|
@@ -34000,7 +34004,7 @@ type Process$F<U, Last = LastInUnion$1<U>> = [U] extends [never] ? [] : [IsUnion
|
|
|
34000
34004
|
* - when calling `ShiftUnion`<U>` where `U` is _not_ a union you will
|
|
34001
34005
|
* get the tuple `[never, U]`
|
|
34002
34006
|
*/
|
|
34003
|
-
type UnionShift<U, Last = LastInUnion$1<U>> = Process$
|
|
34007
|
+
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];
|
|
34004
34008
|
|
|
34005
34009
|
/**
|
|
34006
34010
|
* **UnionToIntersection**`<U>`
|
|
@@ -34024,7 +34028,7 @@ type UnionWithAll<TList extends readonly unknown[], TUnion> = {
|
|
|
34024
34028
|
[K in keyof TList]: TList[K] | TUnion;
|
|
34025
34029
|
};
|
|
34026
34030
|
|
|
34027
|
-
type Process$
|
|
34031
|
+
type Process$F<T extends readonly unknown[]> = {
|
|
34028
34032
|
[K in keyof T]: T[K] extends TypedFunction ? ReturnType<T[K]> : T[K];
|
|
34029
34033
|
};
|
|
34030
34034
|
/**
|
|
@@ -34040,7 +34044,7 @@ type Process$E<T extends readonly unknown[]> = {
|
|
|
34040
34044
|
* type T = ValueOrReturns<[true, "foo", () => "bar"]>;
|
|
34041
34045
|
* ```
|
|
34042
34046
|
*/
|
|
34043
|
-
type ValueOrReturnValue<TEval> = TEval extends readonly unknown[] ? Process$
|
|
34047
|
+
type ValueOrReturnValue<TEval> = TEval extends readonly unknown[] ? Process$F<TEval> : Process$F<[TEval]>[0];
|
|
34044
34048
|
|
|
34045
34049
|
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;
|
|
34046
34050
|
/**
|
|
@@ -34049,10 +34053,10 @@ type GetKeys$1<T extends AnyFunction> = FnProps<T> extends Dictionary ? Keys<FnP
|
|
|
34049
34053
|
* Widens any _scalar_ type `T`.
|
|
34050
34054
|
*/
|
|
34051
34055
|
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;
|
|
34052
|
-
type Process$
|
|
34053
|
-
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$
|
|
34056
|
+
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;
|
|
34057
|
+
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>]>>>;
|
|
34054
34058
|
type WidenTuple<T extends readonly unknown[]> = {
|
|
34055
|
-
[K in keyof T]: IsLiteral<T[K]> extends true ? WidenLiteral<T[K]> : Process$
|
|
34059
|
+
[K in keyof T]: IsLiteral<T[K]> extends true ? WidenLiteral<T[K]> : Process$E<T[K]>;
|
|
34056
34060
|
};
|
|
34057
34061
|
type WidenFnParams<T extends readonly unknown[]> = {
|
|
34058
34062
|
[K in keyof T]: IsLiteral<T[K]> extends true ? WidenLiteral<T[K]> : IsLiteralUnion<T[K]> extends true ? WidenUnion<T[K]> : T[K];
|
|
@@ -34085,7 +34089,7 @@ type WidenContainer<T extends Container, TForce extends boolean = false> = [
|
|
|
34085
34089
|
* **Note:** should you want the container values to be fully widened you
|
|
34086
34090
|
* can set `TForce` to true.
|
|
34087
34091
|
*/
|
|
34088
|
-
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$
|
|
34092
|
+
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>;
|
|
34089
34093
|
|
|
34090
34094
|
type ProcessArr<T extends readonly unknown[]> = {
|
|
34091
34095
|
[K in keyof T]: Widen<T[K]>;
|
|
@@ -34123,7 +34127,7 @@ type WidenValues<T extends Container> = T extends readonly unknown[] ? ProcessAr
|
|
|
34123
34127
|
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;
|
|
34124
34128
|
|
|
34125
34129
|
type Tighten<T extends string> = T extends ` ${infer Rest extends string}` ? T extends ` ${infer Double extends string}` ? Double : Rest : T;
|
|
34126
|
-
type Process$
|
|
34130
|
+
type Process$D<T extends string, Result extends readonly unknown[] = []> = T extends `${infer Element},${infer Rest}` ? Process$D<Rest, [
|
|
34127
34131
|
...Result,
|
|
34128
34132
|
Tighten<Element> extends NumberLike ? AsNumber<Tighten<Element>> : Tighten<Element>
|
|
34129
34133
|
]> : [
|
|
@@ -34154,7 +34158,7 @@ type ProcessUnionStr<T extends string, Result extends string | number = never> =
|
|
|
34154
34158
|
*
|
|
34155
34159
|
* **Related:** `CsvToTupleStr`, `CsvToUnion`
|
|
34156
34160
|
*/
|
|
34157
|
-
type CsvToTuple<T extends string> = Process$
|
|
34161
|
+
type CsvToTuple<T extends string> = Process$D<T>;
|
|
34158
34162
|
/**
|
|
34159
34163
|
* **CsvToTupleStr**`<T>`
|
|
34160
34164
|
*
|
|
@@ -34191,14 +34195,14 @@ type CsvToStrUnion<T extends string> = ProcessUnionStr<T>;
|
|
|
34191
34195
|
*/
|
|
34192
34196
|
type CsvToJsonTuple<T extends string> = ProcessJsonTuple<T>;
|
|
34193
34197
|
|
|
34194
|
-
type Process$
|
|
34198
|
+
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>>>;
|
|
34195
34199
|
/**
|
|
34196
34200
|
* **Delta**`<A,B>`
|
|
34197
34201
|
*
|
|
34198
34202
|
* Provides the _delta_ between two numbers (including
|
|
34199
34203
|
* between negative numbers).
|
|
34200
34204
|
*/
|
|
34201
|
-
type Delta<A extends NumberLike, B extends NumberLike> = A extends `${number}` ? Process$
|
|
34205
|
+
type Delta<A extends NumberLike, B extends NumberLike> = A extends `${number}` ? Process$C<A, B> : AsNumber<Process$C<A, B>>;
|
|
34202
34206
|
type AsLit<T extends NumberLike> = T extends `${number}` ? T : T extends number ? `${T}` : never;
|
|
34203
34207
|
type ProcessNeg<A extends `${number}`, B extends `${number}`> = Delta<A, B> extends `${infer Num extends number}` ? StartsWith<Num, "-"> extends true ? `${Num}` : `-${Num}` : never;
|
|
34204
34208
|
type NegDelta<A extends NumberLike, B extends NumberLike> = A extends number ? ParseInt<ProcessNeg<AsLit<A>, AsLit<B>>> : ProcessNeg<AsLit<A>, AsLit<B>>;
|
|
@@ -34325,7 +34329,7 @@ type Negative<T extends number | `${number}`> = T extends `${number}` ? AsString
|
|
|
34325
34329
|
*/
|
|
34326
34330
|
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;
|
|
34327
34331
|
|
|
34328
|
-
type Process$
|
|
34332
|
+
type Process$B<L, C extends unknown[] = [], R = L> = C["length"] extends L ? R : Process$B<L, [...C, 0], C["length"] | R>;
|
|
34329
34333
|
/**
|
|
34330
34334
|
* **NumericRange**`<TLow,THigh>`
|
|
34331
34335
|
*
|
|
@@ -34336,7 +34340,7 @@ type Process$A<L, C extends unknown[] = [], R = L> = C["length"] extends L ? R :
|
|
|
34336
34340
|
* type Range = NumericRange<2,7>;
|
|
34337
34341
|
* ```
|
|
34338
34342
|
*/
|
|
34339
|
-
type NumericRange<TLow, THigh> = TLow | Exclude<Process$
|
|
34343
|
+
type NumericRange<TLow, THigh> = TLow | Exclude<Process$B<THigh>, Process$B<TLow>>;
|
|
34340
34344
|
|
|
34341
34345
|
/**
|
|
34342
34346
|
* **PriorDigit**`<T>`
|
|
@@ -34358,13 +34362,13 @@ type PriorDigit<T extends Digit | NumericChar> = T extends `${NumericChar}` ? To
|
|
|
34358
34362
|
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;
|
|
34359
34363
|
type SummedStrings<A extends number, B extends number> = AsNegativeNumber<Add<A, B>>;
|
|
34360
34364
|
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;
|
|
34361
|
-
type Process$
|
|
34365
|
+
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;
|
|
34362
34366
|
/**
|
|
34363
34367
|
* **Subtract**`<A,B>`
|
|
34364
34368
|
*
|
|
34365
34369
|
* Subtracts the value of `B` _from_ `A`.
|
|
34366
34370
|
*/
|
|
34367
|
-
type Subtract<A extends NumberLike, B extends NumberLike> = Or<[IsWideType<A>, IsWideType<B>]> extends true ? A extends number ? number : `${number}` : Process$
|
|
34371
|
+
type Subtract<A extends NumberLike, B extends NumberLike> = Or<[IsWideType<A>, IsWideType<B>]> extends true ? A extends number ? number : `${number}` : Process$A<A, B>;
|
|
34368
34372
|
|
|
34369
34373
|
type ToIntegerOp = "truncate" | "round";
|
|
34370
34374
|
type Truncate<T extends `${number}`> = T extends `${number}.${number}` ? T extends `${infer Q}.${number}` ? Q & `${number}` : never : T;
|
|
@@ -34527,7 +34531,7 @@ type ConvertSet<TSet extends readonly unknown[], TConversions extends Conversion
|
|
|
34527
34531
|
type SingleFilter$2<TList extends readonly unknown[], TComparator, TProp extends string, TOp extends ComparatorOperation, Result extends unknown[] = []> = TList extends [infer Head, ...infer Rest] ? [
|
|
34528
34532
|
Compare$1<Get$1<Head, TProp>, TOp, TComparator>
|
|
34529
34533
|
] extends [true] ? SingleFilter$2<Rest, TComparator, TProp, TOp, Result> : SingleFilter$2<Rest, TComparator, TProp, TOp, [...Result, Head]> : Result;
|
|
34530
|
-
type Process$
|
|
34534
|
+
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;
|
|
34531
34535
|
/**
|
|
34532
34536
|
* **FilterByProp**`<TList, TComparator, TProp, [TOp]>`
|
|
34533
34537
|
*
|
|
@@ -34540,9 +34544,9 @@ type Process$y<TList extends readonly unknown[], TComparator, TProp extends stri
|
|
|
34540
34544
|
*
|
|
34541
34545
|
* **Related:** `RetainByProp`, `Filter`, `RetainFromList`, `RemoveFromList`, `FilterProps`
|
|
34542
34546
|
*/
|
|
34543
|
-
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$
|
|
34547
|
+
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;
|
|
34544
34548
|
|
|
34545
|
-
type Process$
|
|
34549
|
+
type Process$y<T extends readonly unknown[]> = RemoveMarked<{
|
|
34546
34550
|
[K in keyof T]: IsLiteral<T[K]> extends true ? Constant<"Marked"> : T[K];
|
|
34547
34551
|
}>;
|
|
34548
34552
|
/**
|
|
@@ -34556,7 +34560,7 @@ type Process$x<T extends readonly unknown[]> = RemoveMarked<{
|
|
|
34556
34560
|
*
|
|
34557
34561
|
* **Related:** `Filter`, `FilterWideTypes`, `RetainLiterals`
|
|
34558
34562
|
*/
|
|
34559
|
-
type FilterLiterals<T extends readonly unknown[]> = Process$
|
|
34563
|
+
type FilterLiterals<T extends readonly unknown[]> = Process$y<T> extends readonly unknown[] ? Process$y<T> : never;
|
|
34560
34564
|
|
|
34561
34565
|
/**
|
|
34562
34566
|
* **FilterWideTypes**`<T>`
|
|
@@ -34640,12 +34644,12 @@ type WideFlatten<T> = T extends (infer Type)[] ? Type extends unknown[] ? Type :
|
|
|
34640
34644
|
* Just returns `TList` "as is" if it's not a a Tuple or
|
|
34641
34645
|
* Union type.
|
|
34642
34646
|
*/
|
|
34643
|
-
type Process$
|
|
34647
|
+
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;
|
|
34644
34648
|
/**
|
|
34645
34649
|
* converts a wide array to a scalar and tuple
|
|
34646
34650
|
* to a union type
|
|
34647
34651
|
*/
|
|
34648
|
-
type ToScalar<TList, TLevel extends 1 | 2 | 3> = [IsTuple<Process$
|
|
34652
|
+
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;
|
|
34649
34653
|
type IterateScalar<T extends readonly unknown[], TLevel extends 1 | 2 | 3> = TupleToUnion<{
|
|
34650
34654
|
[K in keyof T]: T[K] extends unknown[] ? ToScalar<T[K], TLevel> : T[K];
|
|
34651
34655
|
}>;
|
|
@@ -34661,15 +34665,15 @@ type IterateScalar<T extends readonly unknown[], TLevel extends 1 | 2 | 3> = Tup
|
|
|
34661
34665
|
* if you set `ToScalar` to `true` then it will flatten right out of being an array
|
|
34662
34666
|
* into a union type
|
|
34663
34667
|
*/
|
|
34664
|
-
type Flatten<TList, TLevel extends 1 | 2 | 3 = 1, ToScalar extends boolean = false> = [ToScalar] extends [false] ? Process$
|
|
34665
|
-
IsUnion<Process$
|
|
34666
|
-
] extends [true] ? IterateScalar<UnionToTuple$1<Process$
|
|
34668
|
+
type Flatten<TList, TLevel extends 1 | 2 | 3 = 1, ToScalar extends boolean = false> = [ToScalar] extends [false] ? Process$x<TList, TLevel> : [
|
|
34669
|
+
IsUnion<Process$x<TList, TLevel>>
|
|
34670
|
+
] 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;
|
|
34667
34671
|
|
|
34668
34672
|
/**
|
|
34669
34673
|
* extract props from functions
|
|
34670
34674
|
*/
|
|
34671
34675
|
type F<T> = T extends TypedFunction ? FnProps<T> : T;
|
|
34672
|
-
type Process$
|
|
34676
|
+
type Process$w<TList extends readonly unknown[], TKey extends string> = RemoveNever<{
|
|
34673
34677
|
[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;
|
|
34674
34678
|
}>;
|
|
34675
34679
|
/**
|
|
@@ -34691,7 +34695,7 @@ type Process$v<TList extends readonly unknown[], TKey extends string> = RemoveNe
|
|
|
34691
34695
|
* ], "name">
|
|
34692
34696
|
* ```
|
|
34693
34697
|
*/
|
|
34694
|
-
type GetEach<TList extends readonly unknown[], TKey extends string | null> = TKey extends null ? TList : TKey extends "" ? TList : IsReadonlyArray<TList> extends true ? Readonly<Process$
|
|
34698
|
+
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>>;
|
|
34695
34699
|
|
|
34696
34700
|
type Override<TValue, TOverride> = TOverride extends Constant<"no-override"> ? TValue : TValue extends ErrorCondition<"invalid-index"> ? TOverride : TValue;
|
|
34697
34701
|
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", {
|
|
@@ -34716,7 +34720,7 @@ type HandleObj<TValue extends Dictionary, TIdx extends PropertyKey> = TIdx exten
|
|
|
34716
34720
|
key: TIdx;
|
|
34717
34721
|
library: "inferred-types/constants";
|
|
34718
34722
|
}>;
|
|
34719
|
-
type Process$
|
|
34723
|
+
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", {
|
|
34720
34724
|
library: "inferred-types/constants";
|
|
34721
34725
|
container: TValue;
|
|
34722
34726
|
key: TIdx;
|
|
@@ -34745,9 +34749,9 @@ type Process$u<TValue, TIdx extends PropertyKey | null> = If<IsNull<TIdx>, TValu
|
|
|
34745
34749
|
* **Errors:** produces an `ErrorCondition<"invalid-index">` when an a bad index value
|
|
34746
34750
|
* is passed in for the given container
|
|
34747
34751
|
*/
|
|
34748
|
-
type IndexOf<TValue, TIdx extends PropertyKey | null, TOverride = Constant<"no-override">> = TIdx extends null ? TValue : Override<Process$
|
|
34752
|
+
type IndexOf<TValue, TIdx extends PropertyKey | null, TOverride = Constant<"no-override">> = TIdx extends null ? TValue : Override<Process$v<TValue, TIdx>, TOverride>;
|
|
34749
34753
|
|
|
34750
|
-
type Process$
|
|
34754
|
+
type Process$u<TTup extends Tuple, TResult = First<TTup>> = [] extends TTup ? TResult : Process$u<AfterFirst<TTup>, TResult & First<TTup>>;
|
|
34751
34755
|
/**
|
|
34752
34756
|
* **Intersect**`<TList>`
|
|
34753
34757
|
*
|
|
@@ -34755,7 +34759,7 @@ type Process$t<TTup extends Tuple, TResult = First<TTup>> = [] extends TTup ? TR
|
|
|
34755
34759
|
*
|
|
34756
34760
|
* **Related:** `Intersection`, `IntersectAll`
|
|
34757
34761
|
*/
|
|
34758
|
-
type Intersect$1<TList extends Tuple> = Process$
|
|
34762
|
+
type Intersect$1<TList extends Tuple> = Process$u<TList>;
|
|
34759
34763
|
|
|
34760
34764
|
type Intersect<TList extends readonly unknown[], TIntersect extends Narrowable, TResults extends unknown[] = []> = [] extends TList ? TResults : Intersect<AfterFirst<TList>, TIntersect, [
|
|
34761
34765
|
...TResults,
|
|
@@ -34848,14 +34852,14 @@ interface FnMeta<TFn extends AnyFunction = AnyFunction, TArgs extends readonly a
|
|
|
34848
34852
|
isNarrowingFn: IsNarrowingFn<TFn>;
|
|
34849
34853
|
}
|
|
34850
34854
|
|
|
34851
|
-
type Process$
|
|
34855
|
+
type Process$t<T extends AnyFunction> = IsEqual<T, Function> extends true ? EmptyObject : keyof T extends ObjectKey ? Pick<T, keyof T> : never;
|
|
34852
34856
|
/**
|
|
34853
34857
|
* **FnProps**`<T>`
|
|
34854
34858
|
*
|
|
34855
34859
|
* Return a dictionary of key/value pairs from a function. If no key/value
|
|
34856
34860
|
* pairs are assigned to the function base then an empty object is returned.
|
|
34857
34861
|
*/
|
|
34858
|
-
type FnProps<T extends AnyFunction> = Process$
|
|
34862
|
+
type FnProps<T extends AnyFunction> = Process$t<T>;
|
|
34859
34863
|
|
|
34860
34864
|
type FnDefn = [fn: AnyFunction] | [fn: AnyFunction, desc: string] | [fn: AnyFunction, props: Record<ObjectKey, unknown>];
|
|
34861
34865
|
/**
|
|
@@ -36113,7 +36117,7 @@ interface VueRef<T = any> {
|
|
|
36113
36117
|
*/
|
|
36114
36118
|
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>>>>;
|
|
36115
36119
|
|
|
36116
|
-
type Process$
|
|
36120
|
+
type Process$s<TValues extends readonly (boolean | LogicFunction)[], _TParams extends readonly unknown[] = []> = {
|
|
36117
36121
|
[K in keyof TValues]: TValues[K] extends ((...args: any[]) => boolean) ? ReturnType<TValues[K]> : TValues[K];
|
|
36118
36122
|
};
|
|
36119
36123
|
/**
|
|
@@ -36126,7 +36130,7 @@ type Process$r<TValues extends readonly (boolean | LogicFunction)[], _TParams ex
|
|
|
36126
36130
|
*
|
|
36127
36131
|
* **Related**: `ReturnTypes` and `TruthyReturns`
|
|
36128
36132
|
*/
|
|
36129
|
-
type LogicalReturns<TValues extends readonly (boolean | LogicFunction)[], _TParams extends readonly unknown[] = []> = Process$
|
|
36133
|
+
type LogicalReturns<TValues extends readonly (boolean | LogicFunction)[], _TParams extends readonly unknown[] = []> = Process$s<TValues, _TParams> extends readonly boolean[] ? Process$s<TValues, _TParams> : never;
|
|
36130
36134
|
|
|
36131
36135
|
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>;
|
|
36132
36136
|
/**
|
|
@@ -36146,7 +36150,7 @@ type Recurse<TList extends Tuple, TResults extends Tuple = []> = [] extends TLis
|
|
|
36146
36150
|
type Convert$1<TList extends Tuple> = Length<TList> extends 0 ? number[] : Recurse<{
|
|
36147
36151
|
[K in keyof TList]: K;
|
|
36148
36152
|
}>;
|
|
36149
|
-
type Process$
|
|
36153
|
+
type Process$r<TList extends Tuple> = If<IsReadonlyArray<TList>, TList["length"] extends 0 ? number[] : Readonly<Convert$1<TList>>, Convert$1<TList>>;
|
|
36150
36154
|
/**
|
|
36151
36155
|
* **NumericKeys**<`TList`>
|
|
36152
36156
|
*
|
|
@@ -36161,7 +36165,7 @@ type Process$q<TList extends Tuple> = If<IsReadonlyArray<TList>, TList["length"]
|
|
|
36161
36165
|
*
|
|
36162
36166
|
* **Related:** `Keys`
|
|
36163
36167
|
*/
|
|
36164
|
-
type NumericKeys<TList extends Tuple> = Process$
|
|
36168
|
+
type NumericKeys<TList extends Tuple> = Process$r<TList> extends readonly number[] ? Process$r<TList> : never;
|
|
36165
36169
|
|
|
36166
36170
|
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;
|
|
36167
36171
|
/**
|
|
@@ -36179,7 +36183,7 @@ type Get$1<TContainer, TDotPath, TDefVal = undefined> = IsNever<_Get<TContainer,
|
|
|
36179
36183
|
type SingleFilter$1<TList extends readonly unknown[], TComparator, TProp extends string, TOp extends ComparatorOperation, Result extends unknown[] = []> = TList extends [infer Head, ...infer Rest] ? [
|
|
36180
36184
|
Compare$1<Get$1<Head, TProp>, TOp, TComparator>
|
|
36181
36185
|
] extends [true] ? SingleFilter$1<Rest, TComparator, TProp, TOp, [...Result, Head]> : SingleFilter$1<Rest, TComparator, TProp, TOp, Result> : Result;
|
|
36182
|
-
type Process$
|
|
36186
|
+
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;
|
|
36183
36187
|
/**
|
|
36184
36188
|
* **RetainByProp**`<TList, TComparator, TProp, [TOp]>`
|
|
36185
36189
|
*
|
|
@@ -36207,7 +36211,7 @@ type Process$p<TList extends unknown[] | readonly unknown[], TComparator, TProp
|
|
|
36207
36211
|
*
|
|
36208
36212
|
* **Related:** `FilterByProp`, `Filter`, `RetainFromList`, `RemoveFromList`
|
|
36209
36213
|
*/
|
|
36210
|
-
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$
|
|
36214
|
+
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;
|
|
36211
36215
|
|
|
36212
36216
|
type RevAcc<TInput extends readonly unknown[], TResults extends readonly unknown[] = []> = [] extends TInput ? TResults : RevAcc<AfterFirst<TInput>, [
|
|
36213
36217
|
First<TInput>,
|
|
@@ -36288,7 +36292,7 @@ type _Pop<TVal extends Tuple> = TVal extends [...(infer Rest), unknown] ? Rest :
|
|
|
36288
36292
|
*/
|
|
36289
36293
|
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>>;
|
|
36290
36294
|
|
|
36291
|
-
type Process$
|
|
36295
|
+
type Process$p<TList extends readonly unknown[], TValue> = [
|
|
36292
36296
|
...TList,
|
|
36293
36297
|
TValue
|
|
36294
36298
|
];
|
|
@@ -36299,7 +36303,7 @@ type Process$o<TList extends readonly unknown[], TValue> = [
|
|
|
36299
36303
|
*
|
|
36300
36304
|
* - If you want to make the push conditional you can add `TCondition`
|
|
36301
36305
|
*/
|
|
36302
|
-
type Push<TList extends readonly unknown[], TVal, TCondition = true> = [TCondition] extends [true] ? As<Process$
|
|
36306
|
+
type Push<TList extends readonly unknown[], TVal, TCondition = true> = [TCondition] extends [true] ? As<Process$p<TList, TVal>, readonly unknown[]> : TList;
|
|
36303
36307
|
|
|
36304
36308
|
/**
|
|
36305
36309
|
* **ReplaceLast**`<TList,TVal>`
|
|
@@ -36312,7 +36316,7 @@ type ReplaceLast<TList extends readonly any[], TVal> = Pop<TList> extends readon
|
|
|
36312
36316
|
* Iterates over each element of the Tuple
|
|
36313
36317
|
*/
|
|
36314
36318
|
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;
|
|
36315
|
-
type Process$
|
|
36319
|
+
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;
|
|
36316
36320
|
type PrepList<T extends readonly unknown[], O extends ComparatorOperation> = Or<[
|
|
36317
36321
|
IsEqual<O, "contains">,
|
|
36318
36322
|
IsEqual<O, "startsWith">,
|
|
@@ -36331,9 +36335,9 @@ type PrepList<T extends readonly unknown[], O extends ComparatorOperation> = Or<
|
|
|
36331
36335
|
*
|
|
36332
36336
|
* **Related:** `Filter`
|
|
36333
36337
|
*/
|
|
36334
|
-
type Retain<TList extends readonly unknown[], TComparator, TOp extends ComparatorOperation = "extends"> = PrepList<TList, TOp> extends readonly unknown[] ? [TComparator] extends [unknown[]] ? Process$
|
|
36338
|
+
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;
|
|
36335
36339
|
|
|
36336
|
-
type Process$
|
|
36340
|
+
type Process$n<T extends readonly unknown[]> = RemoveMarked<{
|
|
36337
36341
|
[K in keyof T]: If<IsLiteral<T[K]>, T[K], Constant<"Marked">>;
|
|
36338
36342
|
}>;
|
|
36339
36343
|
/**
|
|
@@ -36346,9 +36350,9 @@ type Process$m<T extends readonly unknown[]> = RemoveMarked<{
|
|
|
36346
36350
|
*
|
|
36347
36351
|
* **Related:** `Retain`, `FilterLiterals`, `RetainWideTypes`
|
|
36348
36352
|
*/
|
|
36349
|
-
type RetainLiterals<T extends readonly unknown[]> = Process$
|
|
36353
|
+
type RetainLiterals<T extends readonly unknown[]> = Process$n<T> extends readonly unknown[] ? Process$n<T> : never;
|
|
36350
36354
|
|
|
36351
|
-
type Process$
|
|
36355
|
+
type Process$m<T extends readonly unknown[]> = RemoveMarked<{
|
|
36352
36356
|
[K in keyof T]: If<IsWideType<T[K]>, T[K], Constant<"Marked">>;
|
|
36353
36357
|
}>;
|
|
36354
36358
|
/**
|
|
@@ -36362,7 +36366,7 @@ type Process$l<T extends readonly unknown[]> = RemoveMarked<{
|
|
|
36362
36366
|
*
|
|
36363
36367
|
* **Related:** `Retain`, `RetainLiterals`, `FilterWideTypes`
|
|
36364
36368
|
*/
|
|
36365
|
-
type RetainWideTypes<T extends readonly unknown[]> = Process$
|
|
36369
|
+
type RetainWideTypes<T extends readonly unknown[]> = Process$m<T> extends readonly unknown[] ? Process$m<T> : never;
|
|
36366
36370
|
|
|
36367
36371
|
/**
|
|
36368
36372
|
* **ReturnTypes**`<T>`
|
|
@@ -36417,8 +36421,8 @@ type RemoveStart<TList extends readonly unknown[], TStart extends number> = TSta
|
|
|
36417
36421
|
...(infer REST)
|
|
36418
36422
|
] ? REST : Throw<"invalid-start-index">;
|
|
36419
36423
|
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>>;
|
|
36420
|
-
type Process$
|
|
36421
|
-
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$
|
|
36424
|
+
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;
|
|
36425
|
+
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;
|
|
36422
36426
|
/**
|
|
36423
36427
|
* **Slice**`<TList, TStart, TLen>`
|
|
36424
36428
|
*
|
|
@@ -36432,7 +36436,7 @@ type PreProcess<TList extends readonly unknown[], TStart extends number, TLen ex
|
|
|
36432
36436
|
*/
|
|
36433
36437
|
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;
|
|
36434
36438
|
|
|
36435
|
-
type Process$
|
|
36439
|
+
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>, [
|
|
36436
36440
|
...TResult,
|
|
36437
36441
|
First<TContent>
|
|
36438
36442
|
]>>;
|
|
@@ -36449,7 +36453,7 @@ type Process$j<TContent extends readonly unknown[], TLen extends number, TIdx ex
|
|
|
36449
36453
|
* - if you want a precise length, then set `THandle` to "throw" and
|
|
36450
36454
|
* an error will be thrown.
|
|
36451
36455
|
*/
|
|
36452
|
-
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$
|
|
36456
|
+
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>>>;
|
|
36453
36457
|
|
|
36454
36458
|
/**
|
|
36455
36459
|
* **TakeLast**`<TContent,TLen,[THandle]>`
|
|
@@ -36466,7 +36470,7 @@ type TakeFirst<TContent extends readonly unknown[], TLen extends number, THandle
|
|
|
36466
36470
|
*/
|
|
36467
36471
|
type TakeLast<TContent extends readonly unknown[], TLen extends number, THandle extends "ignore" | "throw" = "ignore"> = TakeFirst<Reverse<TContent>, TLen, THandle>;
|
|
36468
36472
|
|
|
36469
|
-
type Process$
|
|
36473
|
+
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>>}`>;
|
|
36470
36474
|
/**
|
|
36471
36475
|
* **ToCSV**`<TTuple,[TReplace]>`
|
|
36472
36476
|
*
|
|
@@ -36475,7 +36479,7 @@ type Process$i<T extends Tuple, TReplace extends string, TResult extends string
|
|
|
36475
36479
|
* be replaced with the value of `TReplace` (which defaults
|
|
36476
36480
|
* to `<comma>`).
|
|
36477
36481
|
*/
|
|
36478
|
-
type ToCSV<TTuple extends Tuple, TReplace extends string = "<comma>"> = Process$
|
|
36482
|
+
type ToCSV<TTuple extends Tuple, TReplace extends string = "<comma>"> = Process$j<TTuple, TReplace>;
|
|
36479
36483
|
|
|
36480
36484
|
/**
|
|
36481
36485
|
* **TruthyReturns**`<T>`
|
|
@@ -36541,13 +36545,13 @@ type ProcessTuple$1<T extends Container, TKeys extends readonly number[], TResul
|
|
|
36541
36545
|
type RemoveNever<T extends Container> = T extends readonly unknown[] ? ProcessTuple$1<T, NumericKeys<T>> : T extends Dictionary ? ProcessObj$1<T, _Keys$2<T>> : never;
|
|
36542
36546
|
|
|
36543
36547
|
type _Keys$1<T extends object> = UnionToTuple$1<keyof RemoveIndexKeys<T>> extends readonly ObjectKey[] ? UnionToTuple$1<keyof RemoveIndexKeys<T>> : never;
|
|
36544
|
-
type Process$
|
|
36548
|
+
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;
|
|
36545
36549
|
/**
|
|
36546
36550
|
* **RemoveUndefined**`<T>`
|
|
36547
36551
|
*
|
|
36548
36552
|
* Removes all the elements from `T` which are typed as _undefined_.
|
|
36549
36553
|
*/
|
|
36550
|
-
type RemoveUndefined<T extends Container> = Process$
|
|
36554
|
+
type RemoveUndefined<T extends Container> = Process$i<T, T extends Tuple ? NumericKeys<T> : _Keys$1<T>>;
|
|
36551
36555
|
|
|
36552
36556
|
/**
|
|
36553
36557
|
* **AddKeyValue**`<TObj,TKey,TVal>`
|
|
@@ -36565,7 +36569,7 @@ type _Keys<T extends object> = UnionToTuple$1<keyof RemoveIndexKeys<T>>;
|
|
|
36565
36569
|
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>;
|
|
36566
36570
|
type ProcessObj<TContainer extends object> = GetKeys<TContainer>;
|
|
36567
36571
|
type ProcessTuple<TContainer extends readonly unknown[]> = NumericKeys<TContainer> extends readonly number[] ? NumericKeys<TContainer> : never;
|
|
36568
|
-
type Process$
|
|
36572
|
+
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[];
|
|
36569
36573
|
/**
|
|
36570
36574
|
* **Keys**`<TContainer>`
|
|
36571
36575
|
*
|
|
@@ -36582,7 +36586,7 @@ type Process$g<TContainer extends AnyObject> = [IsObjectLiteral<RemoveIndexKeys<
|
|
|
36582
36586
|
*
|
|
36583
36587
|
* **Related:** `ValidKey`, `PublicKeys`
|
|
36584
36588
|
*/
|
|
36585
|
-
type Keys<TContainer extends Tuple | AnyObject> = TContainer extends Tuple ? ProcessTuple<TContainer> : TContainer extends AnyObject ? Process$
|
|
36589
|
+
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;
|
|
36586
36590
|
type _Public<TInput extends readonly PropertyKey[], TOutput extends readonly PropertyKey[] = []> = [] extends TInput ? TOutput : _Public<AfterFirst<TInput>, First<TInput> extends `_${string}` ? TOutput : [...TOutput, First<TInput>]>;
|
|
36587
36591
|
/**
|
|
36588
36592
|
* **PublicKeys**`<TContainer>`
|
|
@@ -36689,12 +36693,12 @@ type OptionalKeys<T extends AnyObject, V = Unset> = {
|
|
|
36689
36693
|
*/
|
|
36690
36694
|
type OptionalKeysTuple<T extends AnyObject> = UnionToTuple$1<OptionalKeys<T>>;
|
|
36691
36695
|
|
|
36692
|
-
type Process$
|
|
36696
|
+
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>;
|
|
36693
36697
|
/**
|
|
36694
36698
|
* Converts an object's keys to the **camelCase** equivalent
|
|
36695
36699
|
* while keeping the values the same.
|
|
36696
36700
|
*/
|
|
36697
|
-
type CamelKeys<T extends Dictionary> = MakeKeysOptional<Process$
|
|
36701
|
+
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"> : "" : "">;
|
|
36698
36702
|
|
|
36699
36703
|
/**
|
|
36700
36704
|
* **CombinedKeys**`<A,B>`
|
|
@@ -36730,7 +36734,7 @@ interface ConstrainedObjectIdentity<TConstraint extends AnyObject> {
|
|
|
36730
36734
|
asCallback: ConstrainedObjectCallback<TConstraint>;
|
|
36731
36735
|
}
|
|
36732
36736
|
|
|
36733
|
-
type Process$
|
|
36737
|
+
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>>;
|
|
36734
36738
|
/**
|
|
36735
36739
|
* **CreateKV**`<TKeys,[TValue]>`
|
|
36736
36740
|
*
|
|
@@ -36738,15 +36742,15 @@ type Process$e<TKeys extends readonly string[], TValue, TObj extends Dictionary
|
|
|
36738
36742
|
* as `TKeys` and with all properties set to the value
|
|
36739
36743
|
* of `TValue` (which defaults to `unknown`)
|
|
36740
36744
|
*/
|
|
36741
|
-
type CreateKV<TKeys extends readonly string[], TValue = unknown> = ExpandRecursively<Process$
|
|
36745
|
+
type CreateKV<TKeys extends readonly string[], TValue = unknown> = ExpandRecursively<Process$f<TKeys, TValue>>;
|
|
36742
36746
|
|
|
36743
|
-
type Process$
|
|
36747
|
+
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>;
|
|
36744
36748
|
/**
|
|
36745
36749
|
* **CreateLookup**
|
|
36746
36750
|
*
|
|
36747
36751
|
* Creates a dictionary lookup from a Tuple of similarly typed objects.
|
|
36748
36752
|
*/
|
|
36749
|
-
type CreateLookup<TPayload extends readonly Record<ObjectKey, unknown>[], TKeyProp extends string, TValProp extends string> = ExpandRecursively<Process$
|
|
36753
|
+
type CreateLookup<TPayload extends readonly Record<ObjectKey, unknown>[], TKeyProp extends string, TValProp extends string> = ExpandRecursively<Process$e<TPayload, TKeyProp, TValProp>>;
|
|
36750
36754
|
|
|
36751
36755
|
type StringLiteralVar = "string" | "number" | "boolean" | "Metric" | "OptSpace" | "CountryCode" | "CountryCode2" | "CountryCode3" | "UsState" | "UsStateName" | "Zip5" | "ZipCode";
|
|
36752
36756
|
type BaseConvert<T extends string> = ReplaceAll<ReplaceAll<ReplaceAll<T, `{{${OptSpace}string${OptSpace}}}`, `${string}`>, `{{${OptSpace}number${OptSpace}}}`, `${number}`>, `{{${OptSpace}boolean${OptSpace}}}`, `${boolean}`>;
|
|
@@ -37717,7 +37721,7 @@ type BuildObj<T extends readonly string[] | Dictionary | [Dictionary], TType> =
|
|
|
37717
37721
|
*/
|
|
37718
37722
|
type EnsureKeys<TObj extends object, TKeys extends readonly string[] | Dictionary | [Dictionary], TType = unknown> = ExpandRecursively<TObj & BuildObj<TKeys, TType>>;
|
|
37719
37723
|
|
|
37720
|
-
type Process$
|
|
37724
|
+
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>]>>;
|
|
37721
37725
|
/**
|
|
37722
37726
|
* **FilterProps**`<TObj, TComparator, [TOp]>`
|
|
37723
37727
|
*
|
|
@@ -37728,7 +37732,7 @@ type Process$c<TObj extends Dictionary, TComparator, TOp extends ComparatorOpera
|
|
|
37728
37732
|
* "extends" but you can change the comparison operation to
|
|
37729
37733
|
* `equals`, `startsWith`, `endsWith`, ...
|
|
37730
37734
|
*/
|
|
37731
|
-
type FilterProps<TObj extends Dictionary, TComparator, TOp extends ComparatorOperation = "extends"> = Process$
|
|
37735
|
+
type FilterProps<TObj extends Dictionary, TComparator, TOp extends ComparatorOperation = "extends"> = Process$d<TObj, TComparator, TOp, Keys<TObj>>;
|
|
37732
37736
|
|
|
37733
37737
|
/**
|
|
37734
37738
|
* **FromMaybeRef**`<T>`
|
|
@@ -37738,12 +37742,12 @@ type FilterProps<TObj extends Dictionary, TComparator, TOp extends ComparatorOpe
|
|
|
37738
37742
|
*/
|
|
37739
37743
|
type FromMaybeRef<T> = IsVueRef<T> extends true ? "value" extends keyof T ? T["value"] : never : T;
|
|
37740
37744
|
|
|
37741
|
-
type Process$
|
|
37745
|
+
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>;
|
|
37742
37746
|
/**
|
|
37743
37747
|
* Converts an object's keys to the **kebab-case** equivalent
|
|
37744
37748
|
* while keeping the values the same.
|
|
37745
37749
|
*/
|
|
37746
|
-
type KebabKeys<T extends Dictionary> = MakeKeysOptional<Process$
|
|
37750
|
+
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"> : "" : "">;
|
|
37747
37751
|
|
|
37748
37752
|
/**
|
|
37749
37753
|
* **KeysEqualValue**`<TObj,TValue>`
|
|
@@ -37791,7 +37795,7 @@ type KeysWithoutValue<TObj extends AnyObject, TValue extends Narrowable> = {
|
|
|
37791
37795
|
[K in keyof TObj]: TObj[K] extends TValue ? never : Readonly<K>;
|
|
37792
37796
|
}[keyof TObj];
|
|
37793
37797
|
|
|
37794
|
-
type Process$
|
|
37798
|
+
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;
|
|
37795
37799
|
/**
|
|
37796
37800
|
* **KeysWithValue**`<TObj,TValue>`
|
|
37797
37801
|
*
|
|
@@ -37805,7 +37809,7 @@ type Process$a<TKeys extends readonly ObjectKey[], TObj extends Dictionary, TVal
|
|
|
37805
37809
|
*
|
|
37806
37810
|
* **Related:** `KeysEqualValue`
|
|
37807
37811
|
*/
|
|
37808
|
-
type KeysWithValue<TObj extends Dictionary, TValue> = [IsObjectLiteral<TObj>] extends [true] ? Process$
|
|
37812
|
+
type KeysWithValue<TObj extends Dictionary, TValue> = [IsObjectLiteral<TObj>] extends [true] ? Process$b<Keys<TObj>, TObj, TValue> : ObjectKey[];
|
|
37809
37813
|
|
|
37810
37814
|
/**
|
|
37811
37815
|
* **KvFnDefn**
|
|
@@ -38113,9 +38117,9 @@ type MapCardinalityFrom<T extends MapperOld> = T extends MapperOld<any, any, inf
|
|
|
38113
38117
|
*/
|
|
38114
38118
|
type MaybeRef<T> = T | VueRef<T>;
|
|
38115
38119
|
|
|
38116
|
-
type Process$
|
|
38120
|
+
type Process$a<TInput extends readonly {
|
|
38117
38121
|
[key: string]: unknown;
|
|
38118
|
-
}[], TOutput extends Dictionary = EmptyObject> = [] extends TInput ? TOutput extends Record<string, unknown> ? ExpandRecursively<TOutput> : never : Process$
|
|
38122
|
+
}[], 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>>;
|
|
38119
38123
|
/**
|
|
38120
38124
|
* **MergeKVs**`<TKVs>`
|
|
38121
38125
|
*
|
|
@@ -38126,7 +38130,7 @@ type Process$9<TInput extends readonly {
|
|
|
38126
38130
|
*/
|
|
38127
38131
|
type MergeKVs<TInput extends readonly {
|
|
38128
38132
|
[key: string]: unknown;
|
|
38129
|
-
}[]> = Process$
|
|
38133
|
+
}[]> = Process$a<TInput>;
|
|
38130
38134
|
|
|
38131
38135
|
/**
|
|
38132
38136
|
* **MutableProps**`<T>`
|
|
@@ -38166,12 +38170,12 @@ type NonStringKeys<T extends AnyObject> = {
|
|
|
38166
38170
|
*/
|
|
38167
38171
|
type OptionalProps<T extends object> = EmptyObject extends RemoveIndexKeys<Pick<T, OptionalKeys<T>>> ? RemoveIndexKeys<Pick<T, OptionalKeys<T>>> : never;
|
|
38168
38172
|
|
|
38169
|
-
type Process$
|
|
38173
|
+
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>;
|
|
38170
38174
|
/**
|
|
38171
38175
|
* Converts an object's keys to the **camelCase** equivalent
|
|
38172
38176
|
* while keeping the values the same.
|
|
38173
38177
|
*/
|
|
38174
|
-
type PascalKeys<T extends Dictionary> = MakeKeysOptional<Process$
|
|
38178
|
+
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"> : "" : "">;
|
|
38175
38179
|
|
|
38176
38180
|
type MyEqual<A, B> = (<X>() => X extends A ? 0 : 1) extends <X>() => X extends B ? 0 : 1 ? true : false;
|
|
38177
38181
|
type isReadonly<T, K extends keyof T> = MyEqual<{
|
|
@@ -38246,7 +38250,7 @@ type RequiredProps<T extends AnyObject> = Pick<T, RequiredKeys<T>>;
|
|
|
38246
38250
|
*/
|
|
38247
38251
|
type RequireProps<T extends EmptyObject, R extends keyof T> = ExpandRecursively<Required<Pick<T, R>> & T>;
|
|
38248
38252
|
|
|
38249
|
-
type Process$
|
|
38253
|
+
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>;
|
|
38250
38254
|
/**
|
|
38251
38255
|
* **RetainProps**`<TObj, TComparator, [TOp]>`
|
|
38252
38256
|
*
|
|
@@ -38257,7 +38261,7 @@ type Process$7<TObj extends Dictionary, TComparator, TOp extends ComparatorOpera
|
|
|
38257
38261
|
* "extends" but you can change the comparison operation to
|
|
38258
38262
|
* `equals`, `startsWith`, `endsWith`, ...
|
|
38259
38263
|
*/
|
|
38260
|
-
type RetainProps<TObj extends Dictionary, TComparator, TOp extends ComparatorOperation = "extends"> = Process$
|
|
38264
|
+
type RetainProps<TObj extends Dictionary, TComparator, TOp extends ComparatorOperation = "extends"> = Process$8<TObj, TComparator, TOp, Keys<TObj>>;
|
|
38261
38265
|
|
|
38262
38266
|
/**
|
|
38263
38267
|
* **SetKeyStrict**`<TObj,TKey,TVal>
|
|
@@ -38329,12 +38333,12 @@ type SharedKeys<A extends Record<ObjectKey, unknown> | object, B extends Record<
|
|
|
38329
38333
|
*/
|
|
38330
38334
|
type SimplifyObject<T extends object> = ExpandRecursively<UnionToIntersection<ExpandRecursively<T>>>;
|
|
38331
38335
|
|
|
38332
|
-
type Process$
|
|
38336
|
+
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>;
|
|
38333
38337
|
/**
|
|
38334
38338
|
* Converts an object's keys to the **kebab-case** equivalent
|
|
38335
38339
|
* while keeping the values the same.
|
|
38336
38340
|
*/
|
|
38337
|
-
type SnakeKeys<T extends Dictionary> = MakeKeysOptional<Process$
|
|
38341
|
+
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"> : "" : "">;
|
|
38338
38342
|
|
|
38339
38343
|
/**
|
|
38340
38344
|
* **KeysUnion**`<T>`
|
|
@@ -38367,7 +38371,7 @@ type SKeys<T extends AnyObject> = IsVueRef<T> extends true ? ["value"] : _SKeys<
|
|
|
38367
38371
|
*/
|
|
38368
38372
|
type TakeProp<TTest, TProp extends PropertyKey, TElse = undefined> = TProp extends keyof TTest ? TTest[TProp] : TElse;
|
|
38369
38373
|
|
|
38370
|
-
type Process$
|
|
38374
|
+
type Process$6<TObj extends AnyObject, K extends ObjectKey, V> = K extends keyof TObj ? Omit<TObj, K> & Record<K, V> : TObj & Record<K, V>;
|
|
38371
38375
|
/**
|
|
38372
38376
|
* **UpsertKeyValue**`<TObj,TKey,TVal>`
|
|
38373
38377
|
*
|
|
@@ -38376,7 +38380,7 @@ type Process$5<TObj extends AnyObject, K extends ObjectKey, V> = K extends keyof
|
|
|
38376
38380
|
*
|
|
38377
38381
|
* **Related:** `AddKeyValue`
|
|
38378
38382
|
*/
|
|
38379
|
-
type UpsertKeyValue<TObj extends AnyObject, K extends ObjectKey, V> = ExpandRecursively<Process$
|
|
38383
|
+
type UpsertKeyValue<TObj extends AnyObject, K extends ObjectKey, V> = ExpandRecursively<Process$6<TObj, K, V>>;
|
|
38380
38384
|
|
|
38381
38385
|
/**
|
|
38382
38386
|
* **ValidKey**<TContainer>
|
|
@@ -38388,7 +38392,7 @@ type UpsertKeyValue<TObj extends AnyObject, K extends ObjectKey, V> = ExpandRecu
|
|
|
38388
38392
|
*/
|
|
38389
38393
|
type ValidKey<TContainer extends Container> = TupleToUnion<AsArray<Keys<TContainer>>>;
|
|
38390
38394
|
|
|
38391
|
-
type Process$
|
|
38395
|
+
type Process$5<TKeys extends readonly ObjectKey[], TObj extends Record<ObjectKey, unknown>, TResult extends readonly unknown[] = []> = [] extends TKeys ? TResult : Process$5<AfterFirst<TKeys>, TObj, [
|
|
38392
38396
|
...TResult,
|
|
38393
38397
|
First<TKeys> extends keyof TObj ? TObj[First<TKeys>] : never
|
|
38394
38398
|
]>;
|
|
@@ -38400,7 +38404,7 @@ type Process$4<TKeys extends readonly ObjectKey[], TObj extends Record<ObjectKey
|
|
|
38400
38404
|
* - for **tuples** this is just a _proxy_ of the type
|
|
38401
38405
|
* - for _wide_ types like `string[]`
|
|
38402
38406
|
*/
|
|
38403
|
-
type Values<T extends Container> = T extends Tuple ? T : T extends Dictionary ? Process$
|
|
38407
|
+
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] : [];
|
|
38404
38408
|
|
|
38405
38409
|
type MakeIntoUnion<K extends PropertyKey | readonly PropertyKey[]> = K extends readonly PropertyKey[] ? TupleToUnion<K> : K;
|
|
38406
38410
|
type MakeNumericIndex<T> = T;
|
|
@@ -38430,7 +38434,7 @@ type WithKeys<T extends AnyObject | Tuple, K extends PropertyKey | readonly Prop
|
|
|
38430
38434
|
*/
|
|
38431
38435
|
type WithNumericKeys<T extends object> = Omit<T, NonNumericKeys<T>>;
|
|
38432
38436
|
|
|
38433
|
-
type Process$
|
|
38437
|
+
type Process$4<TObj extends Dictionary, TKeys extends ObjectKey> = [] extends TKeys ? TObj : Omit<TObj, TKeys>;
|
|
38434
38438
|
/**
|
|
38435
38439
|
* **WithoutKeys**`<TObj, TKeys>`
|
|
38436
38440
|
*
|
|
@@ -38438,7 +38442,7 @@ type Process$3<TObj extends Dictionary, TKeys extends ObjectKey> = [] extends TK
|
|
|
38438
38442
|
* functionally equivalent to the `Omit<T,U>` built-in but rather than
|
|
38439
38443
|
* taking a union type it takes an array of keys.
|
|
38440
38444
|
*/
|
|
38441
|
-
type WithoutKeys<TObj extends Dictionary, TKeys extends ObjectKey | readonly ObjectKey[]> = TKeys extends readonly ObjectKey[] ? Process$
|
|
38445
|
+
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>>;
|
|
38442
38446
|
|
|
38443
38447
|
/**
|
|
38444
38448
|
* **WithoutValue**
|
|
@@ -38465,7 +38469,7 @@ type WithoutValue<TObj extends AnyObject, TValue extends Narrowable> = ExpandRec
|
|
|
38465
38469
|
type WithStringKeys<T extends AnyObject> = Omit<T, NonStringKeys<T>>;
|
|
38466
38470
|
|
|
38467
38471
|
type Marked$1 = typeof MARKED;
|
|
38468
|
-
type Process$
|
|
38472
|
+
type Process$3<TObj extends Dictionary, TValue, TOp extends "equals" | "extends"> = RemoveMarked<{
|
|
38469
38473
|
[K in keyof TObj]: If<Compare$1<TObj[K], TOp, TValue>, TObj[K], Marked$1>;
|
|
38470
38474
|
}>;
|
|
38471
38475
|
/**
|
|
@@ -38481,7 +38485,7 @@ type Process$2<TObj extends Dictionary, TValue, TOp extends "equals" | "extends"
|
|
|
38481
38485
|
*
|
|
38482
38486
|
* **Related:** `WithoutValue`, `WithKeys`, `WithoutKeys`
|
|
38483
38487
|
*/
|
|
38484
|
-
type WithValue<TObj extends Dictionary, TValue, TOp extends "equals" | "extends" = "extends"> = ExpandRecursively<Process$
|
|
38488
|
+
type WithValue<TObj extends Dictionary, TValue, TOp extends "equals" | "extends" = "extends"> = ExpandRecursively<Process$3<TObj, TValue, TOp>>;
|
|
38485
38489
|
|
|
38486
38490
|
/**
|
|
38487
38491
|
* **Left**<T>
|
|
@@ -38782,7 +38786,7 @@ interface KeyValue<K = ObjectKey, V = any> {
|
|
|
38782
38786
|
*/
|
|
38783
38787
|
type KvTuple<T, K extends keyof T> = [K, Record<K, T[K]>];
|
|
38784
38788
|
|
|
38785
|
-
type Process$
|
|
38789
|
+
type Process$2<TObj extends AnyObject, TKeys extends readonly (ObjectKey & keyof TObj)[], TKv extends readonly KeyValue[] = []> = [] extends TKeys ? TKv : Process$2<TObj, AfterFirst<TKeys>, [
|
|
38786
38790
|
...TKv,
|
|
38787
38791
|
{
|
|
38788
38792
|
key: First<TKeys>;
|
|
@@ -38811,7 +38815,7 @@ type Process$1<TObj extends AnyObject, TKeys extends readonly (ObjectKey & keyof
|
|
|
38811
38815
|
*
|
|
38812
38816
|
* **Related:** `KeyValue`, `FromKv`
|
|
38813
38817
|
*/
|
|
38814
|
-
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$
|
|
38818
|
+
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<{
|
|
38815
38819
|
[K in keyof TObj]: {
|
|
38816
38820
|
key: K;
|
|
38817
38821
|
value: TObj[K];
|
|
@@ -38961,7 +38965,7 @@ type SetCandidate = readonly unknown[] | Narrowable;
|
|
|
38961
38965
|
|
|
38962
38966
|
type Get<TValue, TDeref extends PropertyKey | never> = IfNever<TDeref, TValue, // just proxy value back
|
|
38963
38967
|
TDeref extends keyof TValue ? TValue[TDeref] : TValue extends Container ? never : TValue>;
|
|
38964
|
-
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>>>>>;
|
|
38968
|
+
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>>>>>;
|
|
38965
38969
|
/**
|
|
38966
38970
|
* **Unique**`<TList, [TDeref]>`
|
|
38967
38971
|
*
|
|
@@ -38978,7 +38982,7 @@ type Process<TValues extends readonly unknown[], TDeref extends string | number
|
|
|
38978
38982
|
* type FooBar = Unique<["foo","foo","bar"]>;
|
|
38979
38983
|
* ```
|
|
38980
38984
|
*/
|
|
38981
|
-
type Unique<TList extends readonly unknown[], TDeref extends string | number | never = never> = IfNever<TDeref, UnionToTuple$1<TupleToUnion<TList>>, Process<TList, TDeref>>;
|
|
38985
|
+
type Unique<TList extends readonly unknown[], TDeref extends string | number | never = never> = IfNever<TDeref, UnionToTuple$1<TupleToUnion<TList>>, Process$1<TList, TDeref>>;
|
|
38982
38986
|
|
|
38983
38987
|
/**
|
|
38984
38988
|
* **UniqueKeys**`<L,R>`
|
|
@@ -39127,4 +39131,15 @@ type LastOfEach<T extends readonly unknown[][]> = {
|
|
|
39127
39131
|
*/
|
|
39128
39132
|
type SecondOfEach<T extends unknown[][]> = T[number][1] extends T[number][number] ? T[number][1] : never;
|
|
39129
39133
|
|
|
39130
|
-
export { ACCELERATION_METRICS_LOOKUP$2 as ACCELERATION_METRICS_LOOKUP, ALPHA_CHARS, AMAZON_BOOKS, AMAZON_DNS$2 as AMAZON_DNS, APPLE_DNS$2 as APPLE_DNS, AREA_METRICS_LOOKUP$2 as AREA_METRICS_LOOKUP, AUSTRALIAN_NEWS$2 as AUSTRALIAN_NEWS, 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 AsClassSelector, 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 AsList, 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, BELGIUM_NEWS$2 as BELGIUM_NEWS, BEST_BUY_DNS$2 as BEST_BUY_DNS, BLOOD_MARKERS_LOOKUP, type BareCssSelector, type BaseTypeToken, type BeforeLast, type BelgianNewsCompanies, type BelgianNewsUrls, type BespokeLiteral, type BespokeUnion, type BestBuyUrl, type BooleanLike, type Box, type BoxValue, type BoxedFnParams, type Bracket, type Branded, type Break, type BuildDefinition, CANADIAN_NEWS$2 as CANADIAN_NEWS, CHEWY_DNS$2 as CHEWY_DNS, CHINESE_NEWS$2 as CHINESE_NEWS, COMMA, COMMON_OBJ_PROPS, CONSONANTS$2 as CONSONANTS, COSTCO_DNS$2 as COSTCO_DNS, CSS_NAMED_COLORS$2 as CSS_NAMED_COLORS, type CSV, CURRENT_METRICS_LOOKUP$2 as CURRENT_METRICS_LOOKUP, CVS_DNS$2 as CVS_DNS, 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 CommonObjProps, type ComparatorOperation, type Compare$1 as Compare, type Comparison, type CompleteError, type Concat, type ConfigDefinition, type ConfigRestApi, type ConfiguredMap, type Consonant, type Consonants, type Constant$3 as Constant, 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 CssFromDefnOption, 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 CssKeyframeCallback, 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 CssSelectorOptions, 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 CsvFormat, type CsvToJsonTuple, type CsvToStrUnion, type CsvToTuple, type CsvToTupleStr, type CsvToUnion, type Current, type CurrentMetrics, type CurrentUom, type CvsUrl, DANISH_NEWS$2 as DANISH_NEWS, DEFAULT_MANY_TO_ONE_MAPPING, DEFAULT_ONE_TO_MANY_MAPPING, DEFAULT_ONE_TO_ONE_MAPPING, DELL_DNS$2 as DELL_DNS, DISTANCE_METRICS_LOOKUP$2 as DISTANCE_METRICS_LOOKUP, DUTCH_NEWS$2 as DUTCH_NEWS, 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 DictionaryWithValueFilter, type DictionaryWithoutValueFilter, 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 DoesExtendTypeguard, type DoesNotExtend, type DomainName, type DoneFnTuple, type DotPathFor, type DoubleQuote, type DropChars, type DutchNewsCompanies, type DutchNewsUrls, type DynamicSegment, EBAY_DNS$2 as EBAY_DNS, ENERGY_METRICS_LOOKUP$2 as ENERGY_METRICS_LOOKUP, ETSY_DNS$2 as ETSY_DNS, type EbayUrl, type ElementOf, type Email, type Empty, type EmptyObject, type EmptyString, type EmptyStringOr, type EndingWithTypeGuard, type EndpointGenerator, type EndsWith, type Energy, type EnergyMetrics, type EnergyUom, type EnsureKeys, type EnsureLeading, type EnsureLeadingEvery, type EnsureSurround, type EnsureTrailing, type EqualTo, 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, FALSY_TYPE_KINDS$1 as FALSY_TYPE_KINDS, FALSY_VALUES, FRENCH_NEWS$2 as FRENCH_NEWS, FREQUENCY_METRICS_LOOKUP$2 as FREQUENCY_METRICS_LOOKUP, 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 Finder, 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 FnParam, type FnParams, 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, GERMAN_NEWS$2 as GERMAN_NEWS, GITHUB_INSIGHT_CATEGORY_LOOKUP$1 as GITHUB_INSIGHT_CATEGORY_LOOKUP, type GenParam, type GenParams, type GermanNewsCompanies, type GermanNewsUrls, type Get$1 as Get, type GetDefaultPort, type GetEach, type GetEachOptions, type GetEscapeFunction, type GetInference, type GetInferenceProps, type GetOptions, 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, HASH_TABLE_ALPHA_LOWER, HASH_TABLE_ALPHA_UPPER, HASH_TABLE_CHAR, HASH_TABLE_DIGIT, HASH_TABLE_OTHER, HASH_TABLE_SPECIAL, HASH_TABLE_WIDE, HM_DNS$2 as HM_DNS, HOME_DEPOT_DNS$2 as HOME_DEPOT_DNS, HTML_ATOMIC_TAGS$2 as HTML_ATOMIC_TAGS, HTML_BLOCK_TAGS$2 as HTML_BLOCK_TAGS, 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, IKEA_DNS$2 as IKEA_DNS, IMAGE_FORMAT_LOOKUP$1 as IMAGE_FORMAT_LOOKUP, INDIAN_NEWS$2 as INDIAN_NEWS, type IP6Multicast, type IP6Unicast, IPv4, IPv6$1 as IPv6, ISO3166_1$2 as ISO3166_1, ITALIAN_NEWS$2 as ITALIAN_NEWS, 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, JAPANESE_NEWS$2 as JAPANESE_NEWS, type JapaneseNewsCompanies, type JapaneseNewsUrls, type Jcb, type Join, type Joiner, type JsonValue, type JsonValues, type JustFunction, KROGER_DNS$2 as KROGER_DNS, type KebabCase, type KebabKeys, type KeyOf, type KeyValue, type KeyframeApi, 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, LITERAL_TYPE_KINDS$1 as LITERAL_TYPE_KINDS, LOWER_ALPHA_CHARS$2 as LOWER_ALPHA_CHARS, LOWES_DNS$2 as LOWES_DNS, LUMINOSITY_METRICS_LOOKUP$2 as LUMINOSITY_METRICS_LOOKUP, 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, MACYS_DNS$2 as MACYS_DNS, MARKED$2 as MARKED, MASS_METRICS_LOOKUP$2 as MASS_METRICS_LOOKUP, MEXICAN_NEWS$2 as MEXICAN_NEWS, MIME_TYPES, MONTH_ABBR$1 as MONTH_ABBR, MONTH_NAME$1 as MONTH_NAME, 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 Mapper, type MapperApi, type MapperOld, type Marked$5 as Marked, 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 MetricTypeGuard, 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, NARROW_CONTAINER_TYPE_KINDS$1 as NARROW_CONTAINER_TYPE_KINDS, NETWORK_PROTOCOL, NETWORK_PROTOCOL_INSECURE, NETWORK_PROTOCOL_LOOKUP$2 as NETWORK_PROTOCOL_LOOKUP, NETWORK_PROTOCOL_SECURE, NIKE_DNS$2 as NIKE_DNS, NON_ZERO_NUMERIC_CHAR$2 as NON_ZERO_NUMERIC_CHAR, NORWEGIAN_NEWS$2 as NORWEGIAN_NEWS, NOT_APPLICABLE$1 as NOT_APPLICABLE, NOT_DEFINED$1 as NOT_DEFINED, NO_DEFAULT_VALUE$2 as NO_DEFAULT_VALUE, NUMERIC_CHAR$2 as NUMERIC_CHAR, NUMERIC_DIGIT$1 as NUMERIC_DIGIT, 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, Never, type NewsUrls, type NextDigit, type NikeUrl, type NoDefaultValue$2 as NoDefaultValue, type NonAlphaChar, type NonArray, type NonNumericKeys, type NonStringKeys, type NonZeroNumericChar, type NorwegianNewsCompanies, type NorwegianNewsUrls, type Not, type NotApplicable$1 as NotApplicable, type NotDefined$1 as NotDefined, 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, OPTION, 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, PHONE_COUNTRY_CODES$2 as PHONE_COUNTRY_CODES, PHONE_FORMAT$1 as PHONE_FORMAT, PLURAL_EXCEPTIONS$2 as PLURAL_EXCEPTIONS, PLURAL_EXCEPTIONS_OLD, POWER_METRICS_LOOKUP$2 as POWER_METRICS_LOOKUP, PRESSURE_METRICS_LOOKUP$2 as PRESSURE_METRICS_LOOKUP, PROTOCOL_DEFAULT_PORTS$2 as PROTOCOL_DEFAULT_PORTS, PROXMOX_CT_STATE, 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 PluralExceptions, 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, REPO_PAGE_TYPES$1 as REPO_PAGE_TYPES, REPO_SOURCES$2 as REPO_SOURCES, REPO_SOURCE_LOOKUP$3 as REPO_SOURCE_LOOKUP, RESISTANCE_METRICS_LOOKUP$2 as RESISTANCE_METRICS_LOOKUP, RESULT$1 as RESULT, 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 Rtn, type RuntimeUnion, SHAPE_DELIMITER, SHAPE_PREFIXES, SIMPLE_ARRAY_TOKENS$2 as SIMPLE_ARRAY_TOKENS, SIMPLE_CONTAINER_TOKENS, SIMPLE_DICT_TOKENS$2 as SIMPLE_DICT_TOKENS, SIMPLE_DICT_VALUES$2 as SIMPLE_DICT_VALUES, SIMPLE_FN_TOKENS, SIMPLE_MAP_KEYS$2 as SIMPLE_MAP_KEYS, SIMPLE_MAP_TOKENS$2 as SIMPLE_MAP_TOKENS, SIMPLE_MAP_VALUES$2 as SIMPLE_MAP_VALUES, SIMPLE_OPT_SCALAR_TOKENS$2 as SIMPLE_OPT_SCALAR_TOKENS, SIMPLE_SCALAR_TOKENS$2 as SIMPLE_SCALAR_TOKENS, SIMPLE_SET_TOKENS$2 as SIMPLE_SET_TOKENS, SIMPLE_SET_TYPES$2 as SIMPLE_SET_TYPES, SIMPLE_TOKENS, SIMPLE_UNION_TOKENS$2 as SIMPLE_UNION_TOKENS, SINGULAR_NOUN_ENDINGS$1 as SINGULAR_NOUN_ENDINGS, type SKeys, SOCIAL_MEDIA$2 as SOCIAL_MEDIA, SOUTH_KOREAN_NEWS$2 as SOUTH_KOREAN_NEWS, SPANISH_NEWS$2 as SPANISH_NEWS, SPEED_METRICS_LOOKUP$2 as SPEED_METRICS_LOOKUP, SWISS_NEWS$2 as SWISS_NEWS, type Scalar, type ScalarCallback, type ScalarNotSymbol, type Second, type SecondOfEach, type Seconds, type SecretDefinition, type SemanticVersion, type SerializedComma, type SetCandidate, type SetKey, type SetKeyForce, type SetKeyStrict, type SetKeysTo, type Shape, type ShapeApi, ShapeApiImplementation, 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 SingletonClosure, 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 StartingWithTypeGuard, 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 StripSurroundConfigured, 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 SurroundWith, type SwissNewsCompanies, type SwissNewsUrls, type SymbolKind, type SyncFunction, TARGET_DNS$2 as TARGET_DNS, TEMPERATURE_METRICS_LOOKUP$2 as TEMPERATURE_METRICS_LOOKUP, TIME_METRICS_LOOKUP$2 as TIME_METRICS_LOOKUP, type TLD, TOP_LEVEL_DOMAINS$1 as TOP_LEVEL_DOMAINS, TT_ATOMICS$2 as TT_ATOMICS, type TT_Atomic, TT_CONTAINERS$2 as TT_CONTAINERS, type TT_Container, TT_DELIMITER$2 as TT_DELIMITER, TT_FUNCTIONS$2 as TT_FUNCTIONS, type TT_Function, TT_KIND_VARIANTS, TT_SETS$2 as TT_SETS, TT_SINGLETONS$2 as TT_SINGLETONS, TT_START$2 as TT_START, TT_STOP$2 as TT_STOP, type TT_Set, type TT_Singleton, TURKISH_NEWS$2 as TURKISH_NEWS, TW_CHROMA$2 as TW_CHROMA, TW_CHROMA_100, TW_CHROMA_200, TW_CHROMA_300, TW_CHROMA_400, TW_CHROMA_50, TW_CHROMA_500, TW_CHROMA_600, TW_CHROMA_700, TW_CHROMA_800, TW_CHROMA_900, TW_CHROMA_950, TW_COLOR_TARGETS$2 as TW_COLOR_TARGETS, TW_HUE$2 as TW_HUE, TW_HUE_NEUTRAL$2 as TW_HUE_NEUTRAL, TW_HUE_STATIC, TW_HUE_VIBRANT$2 as TW_HUE_VIBRANT, TW_LUMINOSITY$2 as TW_LUMINOSITY, TW_LUMIN_100, TW_LUMIN_200, TW_LUMIN_300, TW_LUMIN_400, TW_LUMIN_50, TW_LUMIN_500, TW_LUMIN_600, TW_LUMIN_700, TW_LUMIN_800, TW_LUMIN_900, TW_LUMIN_950, TW_MODIFIERS, TW_MODIFIERS_CORE$2 as TW_MODIFIERS_CORE, TW_MODIFIERS_ORDER$2 as TW_MODIFIERS_ORDER, TW_MODIFIERS_RELN$2 as TW_MODIFIERS_RELN, TW_MODIFIERS_SIZING$2 as TW_MODIFIERS_SIZING, TYPE_COMPARISONS, TYPE_KINDS, TYPE_OF$2 as TYPE_OF, TYPE_TOKEN_REC_KEY_VARIANTS$2 as TYPE_TOKEN_REC_KEY_VARIANTS, TYPE_TOKEN_REC_VARIANTS$2 as TYPE_TOKEN_REC_VARIANTS, TYPE_TOKEN_STRING_SET_VARIANTS$2 as TYPE_TOKEN_STRING_SET_VARIANTS, TYPE_TOKEN_UNION_SET_VARIANTS$2 as TYPE_TOKEN_UNION_SET_VARIANTS, TYPE_TRANSFORMS, 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 ToKeyValueSort, type ToKv, type ToNumber, type ToNumericArray, type ToPhoneFormat, type ToString, type ToStringArray, type ToStringLiteral, type ToUnion, type TokenContainerClosure, type TokenFunctionClosure, type TokenSetClosure, 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 TypeOfTypeGuard, 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, UK_NEWS$2 as UK_NEWS, UPPER_ALPHA_CHARS$2 as UPPER_ALPHA_CHARS, US_NEWS$2 as US_NEWS, US_STATE_LOOKUP$2 as US_STATE_LOOKUP, US_STATE_LOOKUP_PROVINCES$2 as US_STATE_LOOKUP_PROVINCES, US_STATE_LOOKUP_STRICT, type UkNewsCompanies, type UkNewsUrls, type Unbox, type UndefinedArrayIsUnknown, type UnderlyingType, type UnionArrayToTuple, type UnionClosure, 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 UomTypeGuard, type UpperAlphaChar, type UpsertKeyValue, type Uri, type UrlBuilder, type UrlMeta, type UrlOptions, type UrlPath, type UrlPathChars, type UrlPort, type UrlQueryParameters, type UrlsFrom, type UsNewsCompanies, type UsNewsUrls, type UsPhoneNumber, type UsStateAbbrev, type UsStateName, VOLTAGE_METRICS_LOOKUP$2 as VOLTAGE_METRICS_LOOKUP, VOLUME_METRICS_LOOKUP$2 as VOLUME_METRICS_LOOKUP, 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, WALGREENS_DNS$2 as WALGREENS_DNS, WALMART_DNS$2 as WALMART_DNS, WAYFAIR_DNS$2 as WAYFAIR_DNS, WHITESPACE_CHARS$2 as WHITESPACE_CHARS, WHOLE_FOODS_DNS$2 as WHOLE_FOODS_DNS, WIDE_CONTAINER_TYPE_KINDS$1 as WIDE_CONTAINER_TYPE_KINDS, WIDE_TYPE_KINDS$1 as WIDE_TYPE_KINDS, type WalgreensUrl, type WalmartUrl, type WayFairUrl, type WeakMapKeyDefn, type WeakMapValueDefn, type WhenNever, type WhereLeft, type Whitespace, type WholeFoodsUrl, WideAssignment, 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 YouTubeMeta, type YouTubePageType, type YouTubePlaylistUrl, type YouTubeShareUrl, type YouTubeSubscriptionsUrl, type YouTubeUrl, type YouTubeUsersPlaylistUrl, type YouTubeVideoUrl, type YouTubeVideosInPlaylist, ZARA_DNS$2 as ZARA_DNS, ZIP_TO_STATE$1 as ZIP_TO_STATE, type ZaraUrl, type Zero, type ZeroToMany, type ZeroToOne, type ZeroToZero, type Zip5, type ZipCode, type ZipPlus4, type ZipToState, addFnToProps, addPropsToFn, and, asApi, asArray, asChars, asDate, asEscapeFunction, asIsoDate, asOptionalParamFunction, asPhoneFormat, asRecord, asString, asStringLiteral, asType, asTypeToken, asVueRef, box, boxDictionaryValues, capitalize, cardType, choices, createConstant, createConverter, createCssKeyframe, createCssSelector, createErrorCondition, createFifoQueue, createFixedLengthArray, createFnWithProps, createFnWithPropsExplicit, createLifoQueue, createMapper, createObjectMap, createTypeToken, cssColor, cssFromDefinition, csv, defineCss, defineObj, defineObject, defineObjectApi, defineTuple, doesExtend, endsWith, ensureLeading, ensureSurround, ensureTrailing, entries, errCondition, filter, filterEmpty, filterUndefined, find, fnMeta, fromDefineObject, fromKeyValue, get, getDaysBetween, getEach, getPhoneCountryCode, getTailwindModifiers, getToday, getTokenKind, getTomorrow, getTypeSubtype, getUrlBase, getUrlDefaultPort, getUrlDynamics, getUrlPath, getUrlPort, getUrlProtocol, getUrlQueryParams, getUrlSource, getWeekNumber, getYesterday, getYouTubePageType, handleDoneFn, hasCountryCode, hasDefaultValue, hasHtml, hasIndexOf, hasKeys, hasOverlappingKeys, hasProtocol, hasProtocolPrefix, hasUrlPort, hasUrlQueryParameter, hasValidHtml, hasWhiteSpace, idLiteral, idTypeGuard, identity, ifArray, ifArrayPartial, ifBoolean, ifChar, ifContainer, ifDefined, ifFalse, ifFunction, ifHasKey, ifLength, ifLowercaseChar, ifNotNull, ifNull, ifNumber, ifObject, ifSameType, ifScalar, ifString, ifTrue, ifUndefined, ifUppercaseChar, indexOf, infer, intersect, intersection, ip6GroupExpansion, ip6Prefix, isAccelerationMetric, isAccelerationUom, isAlpha, isAmazonUrl, isAmericanExpress, isApi, isApiSurface, isAppleUrl, isAreaMetric, isAreaUom, isArray, isArrayToken, isAtomicKind, isAtomicToken, isAustralianNewsUrl, isBelgiumNewsUrl, isBestBuyUrl, isBitbucketUrl, isBoolean, isBooleanLike, isBox, isCanadianNewsUrl, isChineseNewsUrl, isCodeCommitUrl, isConstant, isContainer, isContainerToken, isCostCoUrl, isCountryAbbrev, isCountryCode2, isCountryCode3, isCountryName, isCreditCard, isCssAspectRatio, isCsv, isCurrentMetric, isCurrentUom, isCvsUrl, isDanishNewsUrl, isDate, isDefineObject, isDefined, isDellUrl, isDistanceMetric, isDistanceUom, isDomainName, isDoneFn, isDutchNewsUrl, isEbayUrl, isEmail, isEmpty, isEnergyMetric, isEnergyUom, isEqual, isErrorCondition, isEscapeFunction, isEtsyUrl, isFalse, isFalsy, isFnBasedKind, isFnBasedToken, isFnWithParams, isFrenchNewsUrl, isFrequencyMetric, isFrequencyUom, isFunction, isGermanNewsUrl, isGithubIssueUrl, isGithubIssuesListUrl, isGithubOrgUrl, isGithubProjectUrl, isGithubProjectsListUrl, isGithubReleaseTagUrl, isGithubReleasesListUrl, isGithubRepoReleaseTagUrl, isGithubRepoReleasesUrl, isGithubRepoUrl, isGithubUrl, isHexadecimal, isHmUrl, isHomeDepotUrl, isHtml, isHtmlComponentTag, isHtmlElement, isIkeaUrl, isIndexable, isIndianNewsUrl, isInlineSvg, isIp4Address, isIp6Address, isIpAddress, isIso3166Alpha2, isIso3166Alpha3, isIso3166CountryCode, isIso3166CountryName, isIsoDate, isIsoDateTime, isIsoExplicitDate, isIsoExplicitTime, isIsoImplicitDate, isIsoImplicitTime, isIsoTime, isIsoYear, isItalianNewsUrl, isJapaneseNewsUrl, isKrogersUrl, isLeapYear, isLength, isLikeRegExp, isLowesUrl, isLuminosityMetric, isLuminosityUom, isLuxonDateTime, isMacysUrl, isMap, isMapToken, isMassMetric, isMassUom, isMastercard, isMetric, isMetricCategory, isMexicanNewsUrl, isMoment, isNarrowableObject, isNever, isNewsUrl, isNikeUrl, isNorwegianNewsUrl, isNotEmpty, isNotNull, isNothing, isNull, isNumber, isNumberLike, isNumericArray, isNumericString, isObject, isObjectToken, isOptionalParamFunction, isPhoneNumber, isPowerMetric, isPowerUom, isPressureMetric, isPressureUom, isProtocol, isProtocolPrefix, isReadonlyArray, isRecordToken, isRef, isRegExp, isRepoSource, isRepoUrl, isResistanceMetric, isResistanceUom, isRetailUrl, isSameTypeOf, isScalar, isSemanticVersion, isSet, isSetBasedKind, isSetBasedToken, isSetContainer, isSetToken, isShape, isShapeCallback, isSimpleContainerToken, isSimpleContainerTokenTuple, isSimpleScalarToken, isSimpleScalarTokenTuple, isSimpleToken, isSimpleTokenTuple, isSingletonKind, isSingletonToken, isSocialMediaProfileUrl, isSocialMediaUrl, isSouthKoreanNewsUrl, isSpanishNewsUrl, isSpecificConstant, isSpeedMetric, isSpeedUom, isString, isStringArray, isSwissNewsUrl, isSymbol, isTailwindColor, isTailwindColorClass, isTailwindColorName, isTailwindColorTarget, isTailwindColorWithLuminosity, isTailwindColorWithLuminosityAndOpacity, isTailwindModifier, isTargetUrl, isTemperatureMetric, isTemperatureUom, isThenable, isThisMonth, isThisWeek, isThisYear, isTimeMetric, isTimeUom, isToday, isTomorrow, isTrimable, isTrue, isTruthy, isTuple, isTupleToken, isTurkishNewsUrl, isTypeOf, isTypeSubtype, isTypeToken, isTypeTokenKind, isTypeTuple, isUkNewsUrl, isUndefined, isUnset, isUom, isUomCategory, isUri, isUrl, isUrlPath, isUrlSource, isUsNewsUrl, isUsPhoneNumber, isUsStateAbbreviation, isUsStateName, isValidAtomicTag, isValidBlockTag, isValidHtml, isValidHtmlTag, isVariable, isVisa, isVisaMastercard, isVoltageMetric, isVoltageUom, isVolumeMetric, isVolumeUom, isVueRef, isWalgreensUrl, isWalmartUrl, isWayfairUrl, isWholeFoodsUrl, isYesterday, isYouTubeCreatorUrl, isYouTubeFeedHistoryUrl, isYouTubeFeedUrl, isYouTubePlaylistUrl, isYouTubePlaylistsUrl, isYouTubeShareUrl, isYouTubeSubscriptionsUrl, isYouTubeTrendingUrl, isYouTubeUrl, isYouTubeVideoUrl, isYouTubeVideosInPlaylist, isZaraUrl, isZipCode, isZipCode5, isZipPlus4, joinWith, jsonValue, jsonValues, keysOf, kindLiteral, last, list, literal, logicalReturns, lookupCountryAlpha2, lookupCountryAlpha3, lookupCountryCode, lookupCountryName, lowercase, maybePhoneNumber, mergeObjects, mergeScalars, mergeTuples, nameLiteral, narrow, narrowObjectTo, narrowObjectToType, never, objectToApi, objectValues, omit, optional, optionalOrNull, or, orNull, pathJoin, pluralize, removePhoneCountryCode, removeTailwindModifiers, removeUrlProtocol, result, retain, retainAfter, retainAfterInclusive, retainChars, retainUntil, retainUntilInclusive, retainWhile, reverse, rightWhitespace, shape, sharedKeys, shift, simpleContainerToken, simpleContainerTokenToTypeToken, simpleContainerType, simpleScalarToken, simpleScalarTokenToTypeToken, simpleScalarType, simpleToken, simpleType, simpleUnionTokenToTypeToken, slice, split, startsWith, stripAfter, stripBefore, stripChars, stripLeading, stripParenthesis, stripSurround, stripTrailing, stripUntil, stripWhile, surround, takeNumericCharacters, takeProp, toCamelCase, toKebabCase, toKeyValue, toNumber, toNumericArray, toPascalCase, toSnakeCase, toString, toUppercase, trim, trimEnd, trimLeft, trimRight, trimStart, truncate, tuple, twColor, unbox, uncapitalize, union, unionize, unique, uniqueKeys, unset, uppercase, urlMeta, validHtmlAttributes, valuesOf, widen, withDefaults, withKeys, withValue, withoutKeys, withoutValue, wrapFn, youtubeEmbed, youtubeMeta };
|
|
39134
|
+
type Process<T extends readonly unknown[], R extends readonly unknown[] = []> = [] extends T ? R[number] : Process<AfterFirst<T>, [
|
|
39135
|
+
...R,
|
|
39136
|
+
First<T> extends string ? Capitalize<First<T>> : First<T>
|
|
39137
|
+
]>;
|
|
39138
|
+
/**
|
|
39139
|
+
* **CapitalizeEachUnionMember**`<T>`
|
|
39140
|
+
*
|
|
39141
|
+
* Capitalizes all string-derived union members in a union.
|
|
39142
|
+
*/
|
|
39143
|
+
type CapitalizeEachUnionMember<T> = IsUnion<T> extends true ? Process<UnionToTuple$1<T>> : T extends string ? Capitalize<T> : T;
|
|
39144
|
+
|
|
39145
|
+
export { ACCELERATION_METRICS_LOOKUP$2 as ACCELERATION_METRICS_LOOKUP, ALPHA_CHARS, AMAZON_BOOKS, AMAZON_DNS$2 as AMAZON_DNS, APPLE_DNS$2 as APPLE_DNS, AREA_METRICS_LOOKUP$2 as AREA_METRICS_LOOKUP, AUSTRALIAN_NEWS$2 as AUSTRALIAN_NEWS, 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 AsClassSelector, 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 AsList, 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, BELGIUM_NEWS$2 as BELGIUM_NEWS, BEST_BUY_DNS$2 as BEST_BUY_DNS, BLOOD_MARKERS_LOOKUP, type BareCssSelector, type BaseTypeToken, type BeforeLast, type BelgianNewsCompanies, type BelgianNewsUrls, type BespokeLiteral, type BespokeUnion, type BestBuyUrl, type BooleanLike, type Box, type BoxValue, type BoxedFnParams, type Bracket, type Branded, type Break, type BuildDefinition, CANADIAN_NEWS$2 as CANADIAN_NEWS, CHEWY_DNS$2 as CHEWY_DNS, CHINESE_NEWS$2 as CHINESE_NEWS, COMMA, COMMON_OBJ_PROPS, CONSONANTS$2 as CONSONANTS, COSTCO_DNS$2 as COSTCO_DNS, CSS_NAMED_COLORS$2 as CSS_NAMED_COLORS, type CSV, CURRENT_METRICS_LOOKUP$2 as CURRENT_METRICS_LOOKUP, CVS_DNS$2 as CVS_DNS, 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 CommonObjProps, type ComparatorOperation, type Compare$1 as Compare, type Comparison, type CompleteError, type Concat, type ConfigDefinition, type ConfigRestApi, type ConfiguredMap, type Consonant, type Consonants, type Constant$3 as Constant, 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 CssFromDefnOption, 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 CssKeyframeCallback, 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 CssSelectorOptions, 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 CsvFormat, type CsvToJsonTuple, type CsvToStrUnion, type CsvToTuple, type CsvToTupleStr, type CsvToUnion, type Current, type CurrentMetrics, type CurrentUom, type CvsUrl, DANISH_NEWS$2 as DANISH_NEWS, DEFAULT_MANY_TO_ONE_MAPPING, DEFAULT_ONE_TO_MANY_MAPPING, DEFAULT_ONE_TO_ONE_MAPPING, DELL_DNS$2 as DELL_DNS, DISTANCE_METRICS_LOOKUP$2 as DISTANCE_METRICS_LOOKUP, DUTCH_NEWS$2 as DUTCH_NEWS, 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 DictionaryWithValueFilter, type DictionaryWithoutValueFilter, 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 DoesExtendTypeguard, type DoesNotExtend, type DomainName, type DoneFnTuple, type DotPathFor, type DoubleQuote, type DropChars, type DutchNewsCompanies, type DutchNewsUrls, type DynamicSegment, EBAY_DNS$2 as EBAY_DNS, ENERGY_METRICS_LOOKUP$2 as ENERGY_METRICS_LOOKUP, ETSY_DNS$2 as ETSY_DNS, type EbayUrl, type ElementOf, type Email, type Empty, type EmptyObject, type EmptyString, type EmptyStringOr, type EndingWithTypeGuard, type EndpointGenerator, type EndsWith, type Energy, type EnergyMetrics, type EnergyUom, type EnsureKeys, type EnsureLeading, type EnsureLeadingEvery, type EnsureSurround, type EnsureTrailing, type EqualTo, 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, FALSY_TYPE_KINDS$1 as FALSY_TYPE_KINDS, FALSY_VALUES, FRENCH_NEWS$2 as FRENCH_NEWS, FREQUENCY_METRICS_LOOKUP$2 as FREQUENCY_METRICS_LOOKUP, 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 Finder, 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 FnParam, type FnParams, 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, GERMAN_NEWS$2 as GERMAN_NEWS, GITHUB_INSIGHT_CATEGORY_LOOKUP$1 as GITHUB_INSIGHT_CATEGORY_LOOKUP, type GenParam, type GenParams, type GermanNewsCompanies, type GermanNewsUrls, type Get$1 as Get, type GetDefaultPort, type GetEach, type GetEachOptions, type GetEscapeFunction, type GetInference, type GetInferenceProps, type GetOptions, 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, HASH_TABLE_ALPHA_LOWER, HASH_TABLE_ALPHA_UPPER, HASH_TABLE_CHAR, HASH_TABLE_DIGIT, HASH_TABLE_OTHER, HASH_TABLE_SPECIAL, HASH_TABLE_WIDE, HM_DNS$2 as HM_DNS, HOME_DEPOT_DNS$2 as HOME_DEPOT_DNS, HTML_ATOMIC_TAGS$2 as HTML_ATOMIC_TAGS, HTML_BLOCK_TAGS$2 as HTML_BLOCK_TAGS, 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, IKEA_DNS$2 as IKEA_DNS, IMAGE_FORMAT_LOOKUP$1 as IMAGE_FORMAT_LOOKUP, INDIAN_NEWS$2 as INDIAN_NEWS, type IP6Multicast, type IP6Unicast, IPv4, IPv6$1 as IPv6, ISO3166_1$2 as ISO3166_1, ITALIAN_NEWS$2 as ITALIAN_NEWS, 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, JAPANESE_NEWS$2 as JAPANESE_NEWS, type JapaneseNewsCompanies, type JapaneseNewsUrls, type Jcb, type Join, type Joiner, type JsonValue, type JsonValues, type JustFunction, KROGER_DNS$2 as KROGER_DNS, type KebabCase, type KebabKeys, type KeyOf, type KeyValue, type KeyframeApi, 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, LITERAL_TYPE_KINDS$1 as LITERAL_TYPE_KINDS, LOWER_ALPHA_CHARS$2 as LOWER_ALPHA_CHARS, LOWES_DNS$2 as LOWES_DNS, LUMINOSITY_METRICS_LOOKUP$2 as LUMINOSITY_METRICS_LOOKUP, 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, MACYS_DNS$2 as MACYS_DNS, MARKED$2 as MARKED, MASS_METRICS_LOOKUP$2 as MASS_METRICS_LOOKUP, MEXICAN_NEWS$2 as MEXICAN_NEWS, MIME_TYPES, MONTH_ABBR$1 as MONTH_ABBR, MONTH_NAME$1 as MONTH_NAME, 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 Mapper, type MapperApi, type MapperOld, type Marked$5 as Marked, 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 MetricTypeGuard, 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, NARROW_CONTAINER_TYPE_KINDS$1 as NARROW_CONTAINER_TYPE_KINDS, NETWORK_PROTOCOL, NETWORK_PROTOCOL_INSECURE, NETWORK_PROTOCOL_LOOKUP$2 as NETWORK_PROTOCOL_LOOKUP, NETWORK_PROTOCOL_SECURE, NIKE_DNS$2 as NIKE_DNS, NON_ZERO_NUMERIC_CHAR$2 as NON_ZERO_NUMERIC_CHAR, NORWEGIAN_NEWS$2 as NORWEGIAN_NEWS, NOT_APPLICABLE$1 as NOT_APPLICABLE, NOT_DEFINED$1 as NOT_DEFINED, NO_DEFAULT_VALUE$2 as NO_DEFAULT_VALUE, NUMERIC_CHAR$2 as NUMERIC_CHAR, NUMERIC_DIGIT$1 as NUMERIC_DIGIT, 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, Never, type NewsUrls, type NextDigit, type NikeUrl, type NoDefaultValue$2 as NoDefaultValue, type NonAlphaChar, type NonArray, type NonNumericKeys, type NonStringKeys, type NonZeroNumericChar, type NorwegianNewsCompanies, type NorwegianNewsUrls, type Not, type NotApplicable$1 as NotApplicable, type NotDefined$1 as NotDefined, 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, OPTION, 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, PHONE_COUNTRY_CODES$2 as PHONE_COUNTRY_CODES, PHONE_FORMAT$1 as PHONE_FORMAT, PLURAL_EXCEPTIONS$2 as PLURAL_EXCEPTIONS, PLURAL_EXCEPTIONS_OLD, POWER_METRICS_LOOKUP$2 as POWER_METRICS_LOOKUP, PRESSURE_METRICS_LOOKUP$2 as PRESSURE_METRICS_LOOKUP, PROTOCOL_DEFAULT_PORTS$2 as PROTOCOL_DEFAULT_PORTS, PROXMOX_CT_STATE, 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 PluralExceptions, 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, REPO_PAGE_TYPES$1 as REPO_PAGE_TYPES, REPO_SOURCES$2 as REPO_SOURCES, REPO_SOURCE_LOOKUP$3 as REPO_SOURCE_LOOKUP, RESISTANCE_METRICS_LOOKUP$2 as RESISTANCE_METRICS_LOOKUP, RESULT$1 as RESULT, 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 Rtn, type RuntimeUnion, SHAPE_DELIMITER, SHAPE_PREFIXES, SIMPLE_ARRAY_TOKENS$2 as SIMPLE_ARRAY_TOKENS, SIMPLE_CONTAINER_TOKENS, SIMPLE_DICT_TOKENS$2 as SIMPLE_DICT_TOKENS, SIMPLE_DICT_VALUES$2 as SIMPLE_DICT_VALUES, SIMPLE_FN_TOKENS, SIMPLE_MAP_KEYS$2 as SIMPLE_MAP_KEYS, SIMPLE_MAP_TOKENS$2 as SIMPLE_MAP_TOKENS, SIMPLE_MAP_VALUES$2 as SIMPLE_MAP_VALUES, SIMPLE_OPT_SCALAR_TOKENS$2 as SIMPLE_OPT_SCALAR_TOKENS, SIMPLE_SCALAR_TOKENS$2 as SIMPLE_SCALAR_TOKENS, SIMPLE_SET_TOKENS$2 as SIMPLE_SET_TOKENS, SIMPLE_SET_TYPES$2 as SIMPLE_SET_TYPES, SIMPLE_TOKENS, SIMPLE_UNION_TOKENS$2 as SIMPLE_UNION_TOKENS, SINGULAR_NOUN_ENDINGS$1 as SINGULAR_NOUN_ENDINGS, type SKeys, SOCIAL_MEDIA$2 as SOCIAL_MEDIA, SOUTH_KOREAN_NEWS$2 as SOUTH_KOREAN_NEWS, SPANISH_NEWS$2 as SPANISH_NEWS, SPEED_METRICS_LOOKUP$2 as SPEED_METRICS_LOOKUP, SWISS_NEWS$2 as SWISS_NEWS, type Scalar, type ScalarCallback, type ScalarNotSymbol, type Second, type SecondOfEach, type Seconds, type SecretDefinition, type SemanticVersion, type SerializedComma, type SetCandidate, type SetKey, type SetKeyForce, type SetKeyStrict, type SetKeysTo, type Shape, type ShapeApi, ShapeApiImplementation, 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 SingletonClosure, 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 StartingWithTypeGuard, 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 StripSurroundConfigured, 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 SurroundWith, type SwissNewsCompanies, type SwissNewsUrls, type SymbolKind, type SyncFunction, TARGET_DNS$2 as TARGET_DNS, TEMPERATURE_METRICS_LOOKUP$2 as TEMPERATURE_METRICS_LOOKUP, TIME_METRICS_LOOKUP$2 as TIME_METRICS_LOOKUP, type TLD, TOP_LEVEL_DOMAINS$1 as TOP_LEVEL_DOMAINS, TT_ATOMICS$2 as TT_ATOMICS, type TT_Atomic, TT_CONTAINERS$2 as TT_CONTAINERS, type TT_Container, TT_DELIMITER$2 as TT_DELIMITER, TT_FUNCTIONS$2 as TT_FUNCTIONS, type TT_Function, TT_KIND_VARIANTS, TT_SETS$2 as TT_SETS, TT_SINGLETONS$2 as TT_SINGLETONS, TT_START$2 as TT_START, TT_STOP$2 as TT_STOP, type TT_Set, type TT_Singleton, TURKISH_NEWS$2 as TURKISH_NEWS, TW_CHROMA$2 as TW_CHROMA, TW_CHROMA_100, TW_CHROMA_200, TW_CHROMA_300, TW_CHROMA_400, TW_CHROMA_50, TW_CHROMA_500, TW_CHROMA_600, TW_CHROMA_700, TW_CHROMA_800, TW_CHROMA_900, TW_CHROMA_950, TW_COLOR_TARGETS$2 as TW_COLOR_TARGETS, TW_HUE$2 as TW_HUE, TW_HUE_NEUTRAL$2 as TW_HUE_NEUTRAL, TW_HUE_STATIC, TW_HUE_VIBRANT$2 as TW_HUE_VIBRANT, TW_LUMINOSITY$2 as TW_LUMINOSITY, TW_LUMIN_100, TW_LUMIN_200, TW_LUMIN_300, TW_LUMIN_400, TW_LUMIN_50, TW_LUMIN_500, TW_LUMIN_600, TW_LUMIN_700, TW_LUMIN_800, TW_LUMIN_900, TW_LUMIN_950, TW_MODIFIERS, TW_MODIFIERS_CORE$2 as TW_MODIFIERS_CORE, TW_MODIFIERS_ORDER$2 as TW_MODIFIERS_ORDER, TW_MODIFIERS_RELN$2 as TW_MODIFIERS_RELN, TW_MODIFIERS_SIZING$2 as TW_MODIFIERS_SIZING, TYPE_COMPARISONS, TYPE_KINDS, TYPE_OF$2 as TYPE_OF, TYPE_TOKEN_REC_KEY_VARIANTS$2 as TYPE_TOKEN_REC_KEY_VARIANTS, TYPE_TOKEN_REC_VARIANTS$2 as TYPE_TOKEN_REC_VARIANTS, TYPE_TOKEN_STRING_SET_VARIANTS$2 as TYPE_TOKEN_STRING_SET_VARIANTS, TYPE_TOKEN_UNION_SET_VARIANTS$2 as TYPE_TOKEN_UNION_SET_VARIANTS, TYPE_TRANSFORMS, 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 ToKeyValueSort, type ToKv, type ToNumber, type ToNumericArray, type ToPhoneFormat, type ToString, type ToStringArray, type ToStringLiteral, type ToUnion, type TokenContainerClosure, type TokenFunctionClosure, type TokenSetClosure, 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 TypeOfTypeGuard, 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, UK_NEWS$2 as UK_NEWS, UPPER_ALPHA_CHARS$2 as UPPER_ALPHA_CHARS, US_NEWS$2 as US_NEWS, US_STATE_LOOKUP$2 as US_STATE_LOOKUP, US_STATE_LOOKUP_PROVINCES$2 as US_STATE_LOOKUP_PROVINCES, US_STATE_LOOKUP_STRICT, type UkNewsCompanies, type UkNewsUrls, type Unbox, type UndefinedArrayIsUnknown, type UnderlyingType, type UnionArrayToTuple, type UnionClosure, 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 UomTypeGuard, type UpperAlphaChar, type UpsertKeyValue, type Uri, type UrlBuilder, type UrlMeta, type UrlOptions, type UrlPath, type UrlPathChars, type UrlPort, type UrlQueryParameters, type UrlsFrom, type UsNewsCompanies, type UsNewsUrls, type UsPhoneNumber, type UsStateAbbrev, type UsStateName, VOLTAGE_METRICS_LOOKUP$2 as VOLTAGE_METRICS_LOOKUP, VOLUME_METRICS_LOOKUP$2 as VOLUME_METRICS_LOOKUP, 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, WALGREENS_DNS$2 as WALGREENS_DNS, WALMART_DNS$2 as WALMART_DNS, WAYFAIR_DNS$2 as WAYFAIR_DNS, WHITESPACE_CHARS$2 as WHITESPACE_CHARS, WHOLE_FOODS_DNS$2 as WHOLE_FOODS_DNS, WIDE_CONTAINER_TYPE_KINDS$1 as WIDE_CONTAINER_TYPE_KINDS, WIDE_TYPE_KINDS$1 as WIDE_TYPE_KINDS, type WalgreensUrl, type WalmartUrl, type WayFairUrl, type WeakMapKeyDefn, type WeakMapValueDefn, type WhenNever, type WhereLeft, type Whitespace, type WholeFoodsUrl, WideAssignment, 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 YouTubeMeta, type YouTubePageType, type YouTubePlaylistUrl, type YouTubeShareUrl, type YouTubeSubscriptionsUrl, type YouTubeUrl, type YouTubeUsersPlaylistUrl, type YouTubeVideoUrl, type YouTubeVideosInPlaylist, ZARA_DNS$2 as ZARA_DNS, ZIP_TO_STATE$1 as ZIP_TO_STATE, type ZaraUrl, type Zero, type ZeroToMany, type ZeroToOne, type ZeroToZero, type Zip5, type ZipCode, type ZipPlus4, type ZipToState, addFnToProps, addPropsToFn, and, asApi, asArray, asChars, asDate, asEscapeFunction, asIsoDate, asOptionalParamFunction, asPhoneFormat, asRecord, asString, asStringLiteral, asType, asTypeToken, asVueRef, box, boxDictionaryValues, capitalize, cardType, choices, createConstant, createConverter, createCssKeyframe, createCssSelector, createErrorCondition, createFifoQueue, createFixedLengthArray, createFnWithProps, createFnWithPropsExplicit, createLifoQueue, createMapper, createObjectMap, createTypeToken, cssColor, cssFromDefinition, csv, defineCss, defineObj, defineObject, defineObjectApi, defineTuple, doesExtend, endsWith, ensureLeading, ensureSurround, ensureTrailing, entries, errCondition, filter, filterEmpty, filterUndefined, find, fnMeta, fromDefineObject, fromKeyValue, get, getDaysBetween, getEach, getPhoneCountryCode, getTailwindModifiers, getToday, getTokenKind, getTomorrow, getTypeSubtype, getUrlBase, getUrlDefaultPort, getUrlDynamics, getUrlPath, getUrlPort, getUrlProtocol, getUrlQueryParams, getUrlSource, getWeekNumber, getYesterday, getYouTubePageType, handleDoneFn, hasCountryCode, hasDefaultValue, hasHtml, hasIndexOf, hasKeys, hasOverlappingKeys, hasProtocol, hasProtocolPrefix, hasUrlPort, hasUrlQueryParameter, hasValidHtml, hasWhiteSpace, idLiteral, idTypeGuard, identity, ifArray, ifArrayPartial, ifBoolean, ifChar, ifContainer, ifDefined, ifFalse, ifFunction, ifHasKey, ifLength, ifLowercaseChar, ifNotNull, ifNull, ifNumber, ifObject, ifSameType, ifScalar, ifString, ifTrue, ifUndefined, ifUppercaseChar, indexOf, infer, intersect, intersection, ip6GroupExpansion, ip6Prefix, isAccelerationMetric, isAccelerationUom, isAlpha, isAmazonUrl, isAmericanExpress, isApi, isApiSurface, isAppleUrl, isAreaMetric, isAreaUom, isArray, isArrayToken, isAtomicKind, isAtomicToken, isAustralianNewsUrl, isBelgiumNewsUrl, isBestBuyUrl, isBitbucketUrl, isBoolean, isBooleanLike, isBox, isCanadianNewsUrl, isChineseNewsUrl, isCodeCommitUrl, isConstant, isContainer, isContainerToken, isCostCoUrl, isCountryAbbrev, isCountryCode2, isCountryCode3, isCountryName, isCreditCard, isCssAspectRatio, isCsv, isCurrentMetric, isCurrentUom, isCvsUrl, isDanishNewsUrl, isDate, isDefineObject, isDefined, isDellUrl, isDistanceMetric, isDistanceUom, isDomainName, isDoneFn, isDutchNewsUrl, isEbayUrl, isEmail, isEmpty, isEnergyMetric, isEnergyUom, isEqual, isErrorCondition, isEscapeFunction, isEtsyUrl, isFalse, isFalsy, isFnBasedKind, isFnBasedToken, isFnWithParams, isFrenchNewsUrl, isFrequencyMetric, isFrequencyUom, isFunction, isGermanNewsUrl, isGithubIssueUrl, isGithubIssuesListUrl, isGithubOrgUrl, isGithubProjectUrl, isGithubProjectsListUrl, isGithubReleaseTagUrl, isGithubReleasesListUrl, isGithubRepoReleaseTagUrl, isGithubRepoReleasesUrl, isGithubRepoUrl, isGithubUrl, isHexadecimal, isHmUrl, isHomeDepotUrl, isHtml, isHtmlComponentTag, isHtmlElement, isIkeaUrl, isIndexable, isIndianNewsUrl, isInlineSvg, isIp4Address, isIp6Address, isIpAddress, isIso3166Alpha2, isIso3166Alpha3, isIso3166CountryCode, isIso3166CountryName, isIsoDate, isIsoDateTime, isIsoExplicitDate, isIsoExplicitTime, isIsoImplicitDate, isIsoImplicitTime, isIsoTime, isIsoYear, isItalianNewsUrl, isJapaneseNewsUrl, isKrogersUrl, isLeapYear, isLength, isLikeRegExp, isLowesUrl, isLuminosityMetric, isLuminosityUom, isLuxonDateTime, isMacysUrl, isMap, isMapToken, isMassMetric, isMassUom, isMastercard, isMetric, isMetricCategory, isMexicanNewsUrl, isMoment, isNarrowableObject, isNever, isNewsUrl, isNikeUrl, isNorwegianNewsUrl, isNotEmpty, isNotNull, isNothing, isNull, isNumber, isNumberLike, isNumericArray, isNumericString, isObject, isObjectToken, isOptionalParamFunction, isPhoneNumber, isPowerMetric, isPowerUom, isPressureMetric, isPressureUom, isProtocol, isProtocolPrefix, isReadonlyArray, isRecordToken, isRef, isRegExp, isRepoSource, isRepoUrl, isResistanceMetric, isResistanceUom, isRetailUrl, isSameTypeOf, isScalar, isSemanticVersion, isSet, isSetBasedKind, isSetBasedToken, isSetContainer, isSetToken, isShape, isShapeCallback, isSimpleContainerToken, isSimpleContainerTokenTuple, isSimpleScalarToken, isSimpleScalarTokenTuple, isSimpleToken, isSimpleTokenTuple, isSingletonKind, isSingletonToken, isSocialMediaProfileUrl, isSocialMediaUrl, isSouthKoreanNewsUrl, isSpanishNewsUrl, isSpecificConstant, isSpeedMetric, isSpeedUom, isString, isStringArray, isSwissNewsUrl, isSymbol, isTailwindColor, isTailwindColorClass, isTailwindColorName, isTailwindColorTarget, isTailwindColorWithLuminosity, isTailwindColorWithLuminosityAndOpacity, isTailwindModifier, isTargetUrl, isTemperatureMetric, isTemperatureUom, isThenable, isThisMonth, isThisWeek, isThisYear, isTimeMetric, isTimeUom, isToday, isTomorrow, isTrimable, isTrue, isTruthy, isTuple, isTupleToken, isTurkishNewsUrl, isTypeOf, isTypeSubtype, isTypeToken, isTypeTokenKind, isTypeTuple, isUkNewsUrl, isUndefined, isUnset, isUom, isUomCategory, isUri, isUrl, isUrlPath, isUrlSource, isUsNewsUrl, isUsPhoneNumber, isUsStateAbbreviation, isUsStateName, isValidAtomicTag, isValidBlockTag, isValidHtml, isValidHtmlTag, isVariable, isVisa, isVisaMastercard, isVoltageMetric, isVoltageUom, isVolumeMetric, isVolumeUom, isVueRef, isWalgreensUrl, isWalmartUrl, isWayfairUrl, isWholeFoodsUrl, isYesterday, isYouTubeCreatorUrl, isYouTubeFeedHistoryUrl, isYouTubeFeedUrl, isYouTubePlaylistUrl, isYouTubePlaylistsUrl, isYouTubeShareUrl, isYouTubeSubscriptionsUrl, isYouTubeTrendingUrl, isYouTubeUrl, isYouTubeVideoUrl, isYouTubeVideosInPlaylist, isZaraUrl, isZipCode, isZipCode5, isZipPlus4, joinWith, jsonValue, jsonValues, keysOf, kindLiteral, last, list, literal, logicalReturns, lookupCountryAlpha2, lookupCountryAlpha3, lookupCountryCode, lookupCountryName, lowercase, maybePhoneNumber, mergeObjects, mergeScalars, mergeTuples, nameLiteral, narrow, narrowObjectTo, narrowObjectToType, never, objectToApi, objectValues, omit, optional, optionalOrNull, or, orNull, pathJoin, pluralize, removePhoneCountryCode, removeTailwindModifiers, removeUrlProtocol, result, retain, retainAfter, retainAfterInclusive, retainChars, retainUntil, retainUntilInclusive, retainWhile, reverse, rightWhitespace, shape, sharedKeys, shift, simpleContainerToken, simpleContainerTokenToTypeToken, simpleContainerType, simpleScalarToken, simpleScalarTokenToTypeToken, simpleScalarType, simpleToken, simpleType, simpleUnionTokenToTypeToken, slice, split, startsWith, stripAfter, stripBefore, stripChars, stripLeading, stripParenthesis, stripSurround, stripTrailing, stripUntil, stripWhile, surround, takeNumericCharacters, takeProp, toCamelCase, toKebabCase, toKeyValue, toNumber, toNumericArray, toPascalCase, toSnakeCase, toString, toUppercase, trim, trimEnd, trimLeft, trimRight, trimStart, truncate, tuple, twColor, unbox, uncapitalize, union, unionize, unique, uniqueKeys, unset, uppercase, urlMeta, validHtmlAttributes, valuesOf, widen, withDefaults, withKeys, withValue, withoutKeys, withoutValue, wrapFn, youtubeEmbed, youtubeMeta };
|