@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types.d.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tstdl/base",
3
- "version": "0.91.48",
3
+ "version": "0.91.49",
4
4
  "author": "Patrick Hein",
5
5
  "publishConfig": {
6
6
  "access": "public"
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, string>>;
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> = {