Comparing version 1.0.0 to 1.0.1
@@ -5,5 +5,14 @@ declare type Without<T, U> = { | ||
/** | ||
* TODO add jsdoc | ||
* Returns a type composed with T and U, restricting usage of either | ||
* exclusively to members of T or exclusively to members of U. | ||
* | ||
* No unique members of T can be used simultaneusly with any | ||
* unique members of U. | ||
* | ||
* Example: | ||
* `const myVar: XOR<T, U>` | ||
* | ||
* More: https://github.com/maninak/ts-xor/tree/master#description | ||
*/ | ||
export declare type XOR<T, U> = (T | U) extends object ? (Without<T, U> & U) | (Without<U, T> & T) : T | U; | ||
export {}; |
{ | ||
"name": "ts-xor", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Compose custom types containing mutually exclusive keys, using this generic Typescript helper type.", | ||
@@ -10,3 +10,4 @@ "main": "dist/index.js", | ||
"test": "echo \"Warning: no test specified\" && exit 0", | ||
"preversion": "rimraf dist && npm run build && npm test" | ||
"preversion": "rimraf dist && npm run build && npm test", | ||
"postpublish": "git push --tags" | ||
}, | ||
@@ -13,0 +14,0 @@ "repository": { |
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
6010
18
0