@types/ramda
Advanced tools
Comparing version 0.27.34 to 0.27.35
{ | ||
"name": "@types/ramda", | ||
"version": "0.27.34", | ||
"version": "0.27.35", | ||
"description": "TypeScript definitions for ramda", | ||
@@ -169,4 +169,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "55904f5b966a742f958115001be14605bf85fdfa75a7de210665e960abd2b315", | ||
"typesPublisherContentHash": "9d6887bd33ac183719efe918050bde1b5ce57a99d44908f8fcc8cde4f9c5b6b7", | ||
"typeScriptVersion": "3.7" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Wed, 16 Dec 2020 17:25:36 GMT | ||
* Last updated: Wed, 20 Jan 2021 00:49:28 GMT | ||
* Dependencies: [@types/ts-toolbelt](https://npmjs.com/package/@types/ts-toolbelt) | ||
@@ -14,0 +14,0 @@ * Global values: `R` |
@@ -314,2 +314,17 @@ import { A, O, T } from "ts-toolbelt"; | ||
/** | ||
* An object with at least one of its properties beeing of type `Key`. | ||
* | ||
* @example | ||
* ``` | ||
* // $ExpectType { foo: unknown } | { bar: unknown } | ||
* type Foo = ObjectHavingSome<"foo" | "bar"> | ||
* ``` | ||
*/ | ||
// Implementation taken from | ||
// https://github.com/piotrwitek/utility-types/blob/df2502ef504c4ba8bd9de81a45baef112b7921d0/src/mapped-types.ts#L351-L362 | ||
export type ObjectHavingSome<Key extends string> = A.Clean<{ | ||
[K in Key]: { [P in K]: unknown } | ||
}[Key]>; | ||
// --------------------------------------------------------------------------------------- | ||
@@ -316,0 +331,0 @@ // P |
Sorry, the diff of this file is too big to display
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
163019
3314