@tstdl/base 0.91.48 → 0.91.49
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/package.json +1 -1
- package/types.d.ts +1 -1
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -132,7 +132,7 @@ export type SimplifyDeep<T> = T extends BuiltIn ? T : T extends readonly any[] ?
|
|
|
132
132
|
} : T extends Record ? {
|
|
133
133
|
[K in keyof T]: SimplifyDeep<T[K]>;
|
|
134
134
|
} & {} : T;
|
|
135
|
-
export type SimplifiedLiteralUnion<LiteralType, BaseType extends Primitive> = If<IsEqual<LiteralType, BaseType>, LiteralType, LiteralUnion<LiteralType,
|
|
135
|
+
export type SimplifiedLiteralUnion<LiteralType, BaseType extends Primitive> = If<IsEqual<LiteralType, BaseType>, LiteralType, LiteralUnion<LiteralType, BaseType>>;
|
|
136
136
|
export type UnionToIntersection<Union> = (Union extends unknown ? (distributedUnion: Union) => void : never) extends ((mergedIntersection: infer Intersection) => void) ? Intersection : never;
|
|
137
137
|
export type UnionToTuple<T, Tuple extends any[] = []> = UnionToIntersection<T extends any ? () => T : never> extends () => infer R ? UnionToTuple<Exclude<T, R>, [R, ...Tuple]> : Tuple;
|
|
138
138
|
export type UndefinableObject<T extends Record> = {
|