@cloudflare/types
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -6,2 +6,10 @@ # Change Log | ||
## [1.0.9](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/types@1.0.8...@cloudflare/types@1.0.9) (2019-02-23) | ||
**Note:** Version bump only for package @cloudflare/types | ||
## [1.0.8](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/types@1.0.7...@cloudflare/types@1.0.8) (2019-02-23) | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "@cloudflare/types", | ||
"description": "", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"types": "./src", | ||
@@ -20,3 +20,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "87a03891ba96b8c8f08ca8225cf8ae3d3a8cbf35" | ||
"gitHead": "fee49f2c43c333977a2f61a1b97af7f2b2e058ba" | ||
} |
@@ -10,2 +10,10 @@ // (A - keys of B) | ||
/** | ||
* Get PropTypes of a component. | ||
* @example | ||
* const OtherComponent: React.SFC<{ foo: string }> = () => <div>{foo}</div> | ||
* type MyComponentProps = PropTypes<typeof OtherComponent> & { bar: string } // {foo: string, bar: string} | ||
*/ | ||
export type PropTypes<C> = C extends React.ComponentType<infer P> ? P : never; | ||
/** | ||
* ValueOf: similar to keyof, but picks a value. | ||
@@ -12,0 +20,0 @@ * |
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
17840
594