@types/ramda
Advanced tools
Comparing version 0.28.17 to 0.28.18
{ | ||
"name": "@types/ramda", | ||
"version": "0.28.17", | ||
"version": "0.28.18", | ||
"description": "TypeScript definitions for ramda", | ||
@@ -175,4 +175,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ramda", | ||
}, | ||
"typesPublisherContentHash": "5d8a57540d774664120dfa0a9df0cedd72aabd82fb66ff4207e6f3ae14a39fde", | ||
"typesPublisherContentHash": "e05d1d6d559bf4ab9d6cf67f250da5742fa543cec08be5a33861be453d1aab8c", | ||
"typeScriptVersion": "4.2" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Wed, 19 Oct 2022 08:02:58 GMT | ||
* Last updated: Thu, 20 Oct 2022 11:03:02 GMT | ||
* Dependencies: [@types/ts-toolbelt](https://npmjs.com/package/@types/ts-toolbelt) | ||
@@ -14,0 +14,0 @@ * Global values: `R` |
@@ -579,2 +579,21 @@ import { A, M, O, T } from 'ts-toolbelt'; | ||
/** | ||
* Getter of property from any value. Supports objects, arrays, tuples and maybe values | ||
* | ||
* @param T Value type | ||
* @param P Maybe key type | ||
* | ||
* @example | ||
* ```typescript | ||
* type K = Prop<{ x: number } | undefined, 'x'> | ||
* type L = Prop<[1, ...string[]] | undefined, 0> | ||
* type M = Prop<[1, ...string[]] | undefined, 1> | ||
* ``` | ||
* | ||
* <created by @anion155> | ||
*/ | ||
export type Prop<T, P extends keyof never> = P extends keyof Exclude<T, undefined> | ||
? T extends undefined ? undefined : T[Extract<P, keyof T>] | ||
: undefined; | ||
export {}; |
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
271472
7488