@waiting/shared-types
Advanced tools
Comparing version 9.1.0 to 9.2.0
@@ -5,3 +5,3 @@ /** | ||
* | ||
* @version 9.0.0 | ||
* @version 9.1.0 | ||
* @author waiting | ||
@@ -8,0 +8,0 @@ * @license MIT |
@@ -76,1 +76,7 @@ export declare type ToTuple<T> = T extends any[] ? T : any[]; | ||
} ? U : never; | ||
declare type IfAny<T, Y, N> = 0 extends (1 & T) ? Y : N; | ||
/** | ||
* @link https://stackoverflow.com/a/55541672 | ||
*/ | ||
export declare type OverwriteAnyToUnknown<T> = IfAny<T, unknown, T>; | ||
export {}; |
{ | ||
"name": "@waiting/shared-types", | ||
"author": "waiting", | ||
"version": "9.1.0", | ||
"version": "9.2.0", | ||
"description": "shared typescript types", | ||
@@ -30,3 +30,3 @@ "keywords": [ | ||
"peerDependencies": { | ||
"typescript": ">=4.1.0" | ||
"typescript": ">=4.2.0" | ||
}, | ||
@@ -92,3 +92,3 @@ "engines": { | ||
}, | ||
"gitHead": "92cde173c1349b7fb427d6ec2020b2c54649376d" | ||
"gitHead": "c46806b71d8afd650575a52112589b2d7280d386" | ||
} |
@@ -91,1 +91,9 @@ /* eslint-disable max-len */ | ||
type IfAny<T, Y, N> = 0 extends (1 & T) ? Y : N | ||
/** | ||
* @link https://stackoverflow.com/a/55541672 | ||
*/ | ||
export type OverwriteAnyToUnknown<T> = IfAny<T, unknown, T> | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57357
1714