types-ramda
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -34,11 +34,2 @@ import { A, M } from 'ts-toolbelt'; | ||
/** | ||
* Dictionary | ||
* @deprecated use typescript utils `Record<>` instead | ||
* @param A The type of dictionary values | ||
*/ | ||
export interface Dictionary<A> { | ||
[index: string]: A; | ||
} | ||
/** | ||
* Represents all objects evolvable with Evolver E | ||
@@ -338,2 +329,17 @@ * @param E | ||
/** | ||
* 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> = { | ||
[K in Key]: { [P in K]: unknown }; | ||
}[Key]; | ||
/** | ||
* <needs description> | ||
@@ -340,0 +346,0 @@ */ |
{ | ||
"name": "types-ramda", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Dedicated types library for ramda", | ||
@@ -5,0 +5,0 @@ "author": "Harris Miller <harrismillerconsulting@gmail.com>", |
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
6369