@waiting/shared-types
Advanced tools
Comparing version 4.1.0 to 4.2.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [4.2.0](https://github.com/waitingsong/shared-types/compare/v4.1.0...v4.2.0) (2020-06-12) | ||
### Features | ||
* **types:** add type Equals<X, Y> ([a4d3688](https://github.com/waitingsong/shared-types/commit/a4d3688af9ba2adba81b70bbb2666663581d2b57)) | ||
# [4.1.0](https://github.com/waitingsong/shared-types/compare/v4.0.0...v4.1.0) (2020-06-12) | ||
@@ -8,0 +19,0 @@ |
@@ -5,3 +5,3 @@ /** | ||
* | ||
* @version 4.0.0 | ||
* @version 4.1.0 | ||
* @author waiting | ||
@@ -8,0 +8,0 @@ * @license MIT |
@@ -56,2 +56,6 @@ export declare type Head<Tuple extends any[]> = Tuple extends [infer H, ...any[]] ? H : never; | ||
}; | ||
/** | ||
* @see https://github.com/microsoft/TypeScript/issues/27024#issuecomment-421529650 | ||
*/ | ||
export declare type Equals<X, Y> = (<T>() => T extends X ? 1 : 2) extends (<T>() => T extends Y ? 1 : 2) ? true : false; | ||
export {}; |
{ | ||
"name": "@waiting/shared-types", | ||
"author": "waiting", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"description": "shared typescript types", | ||
@@ -74,3 +74,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "065042e6b04d9b7d4b86d7b37c8f486c323a6df8" | ||
"gitHead": "8d3a0eae43406c81e6a17bb40c2ac73aac0f6e86" | ||
} |
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
13684
170