@tstdl/base 0.91.47 → 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 +3 -3
  2. package/types.d.ts +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tstdl/base",
3
- "version": "0.91.47",
3
+ "version": "0.91.49",
4
4
  "author": "Patrick Hein",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -115,7 +115,7 @@
115
115
  "luxon": "^3.5",
116
116
  "reflect-metadata": "^0.2",
117
117
  "rxjs": "^7.8",
118
- "type-fest": "4.29"
118
+ "type-fest": "4.30"
119
119
  },
120
120
  "devDependencies": {
121
121
  "@mxssfd/typedoc-theme": "1.1",
@@ -128,7 +128,7 @@
128
128
  "@types/node": "22",
129
129
  "@types/nodemailer": "6.4",
130
130
  "@types/pg": "8.11",
131
- "@typescript-eslint/eslint-plugin": "8.16",
131
+ "@typescript-eslint/eslint-plugin": "8.17",
132
132
  "concurrently": "9.1",
133
133
  "drizzle-kit": "0.28",
134
134
  "eslint": "8.57",
package/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Observable } from 'rxjs';
2
- import type { CamelCase, Except } from 'type-fest';
2
+ import type { CamelCase, Except, IsEqual, LiteralUnion } from 'type-fest';
3
3
  import type { Signal } from './signals/api.js';
4
4
  export type ObjectLiteral = {};
5
5
  export type PrimitiveTypeMap = {
@@ -132,6 +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, BaseType>>;
135
136
  export type UnionToIntersection<Union> = (Union extends unknown ? (distributedUnion: Union) => void : never) extends ((mergedIntersection: infer Intersection) => void) ? Intersection : never;
136
137
  export type UnionToTuple<T, Tuple extends any[] = []> = UnionToIntersection<T extends any ? () => T : never> extends () => infer R ? UnionToTuple<Exclude<T, R>, [R, ...Tuple]> : Tuple;
137
138
  export type UndefinableObject<T extends Record> = {