@tstdl/base 0.82.77 → 0.82.78

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.82.77",
3
+ "version": "0.82.78",
4
4
  "author": "Patrick Hein",
5
5
  "publishConfig": {
6
6
  "access": "public"
package/types.d.ts CHANGED
@@ -147,7 +147,7 @@ export type IfUnknown<T, Then, Else = never> = unknown extends T ? Then : Else;
147
147
  export type IsAny<T> = IfAny<T, true, false>;
148
148
  export type IsUnknown<T> = IfUnknown<T, true, false>;
149
149
  export type If<B extends Boolean, Then, Else> = B extends true ? Then : Else;
150
- export type Fallback<T, F> = T extends never ? F : T;
150
+ export type Fallback<T, F> = [T] extends [never] ? F : T;
151
151
  export type PartialProperty<T, P extends keyof T> = Omit<T, P> & Partial<Pick<T, P>>;
152
152
  export type TypeOf<T extends object, P extends keyof T> = T[P];
153
153
  export type PropertyOf<T extends object, P extends keyof T> = Property<Of<T>, P>;