@cloudflare/types
Advanced tools
Comparing version 1.0.20 to 1.0.21
@@ -6,2 +6,10 @@ # Change Log | ||
## [1.0.21](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/types@1.0.20...@cloudflare/types@1.0.21) (2019-04-22) | ||
**Note:** Version bump only for package @cloudflare/types | ||
## [1.0.20](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/types@1.0.19...@cloudflare/types@1.0.20) (2019-04-22) | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "@cloudflare/types", | ||
"description": "", | ||
"version": "1.0.20", | ||
"version": "1.0.21", | ||
"types": "./src", | ||
@@ -23,3 +23,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "bc743095b79efaec60bbe1dd2a088309f089f119" | ||
"gitHead": "0502fa84fc05a3ab6698fdf3e7f78a4986469231" | ||
} |
@@ -50,1 +50,12 @@ // (A - keys of B) | ||
: never; | ||
/** | ||
* Overwrite certain keys with new types. | ||
* Example: | ||
* type A = {a: string, b?: string} | ||
* type result = Overwrite<A, {b: string}> = {a: string, b: string} | ||
* (Note that b is no longer optional) | ||
*/ | ||
export type Overwrite<T1, T2> = { [P in Exclude<keyof T1, keyof T2>]: T1[P] } & | ||
T2; |
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
23387
729