@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.
- package/package.json +1 -1
- package/types.d.ts +1 -1
package/package.json
CHANGED
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>;
|