@types/ramda
Advanced tools
Comparing version 0.28.3 to 0.28.4
{ | ||
"name": "@types/ramda", | ||
"version": "0.28.3", | ||
"version": "0.28.4", | ||
"description": "TypeScript definitions for ramda", | ||
@@ -180,4 +180,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ramda", | ||
}, | ||
"typesPublisherContentHash": "7fb576bcc00613e4a452798d3f9cf1166ed8a60a4bbf829cb88c65583c2f52aa", | ||
"typesPublisherContentHash": "e40ff103de9e6412829cfa0ceb39b810acdd3a25d22ab1ae78bc7b75b2a87889", | ||
"typeScriptVersion": "4.2" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 25 Mar 2022 21:01:45 GMT | ||
* Last updated: Mon, 28 Mar 2022 02:31:43 GMT | ||
* Dependencies: [@types/ts-toolbelt](https://npmjs.com/package/@types/ts-toolbelt) | ||
@@ -14,0 +14,0 @@ * Global values: `R` |
@@ -75,2 +75,8 @@ import { A, O, T } from 'ts-toolbelt'; | ||
/** | ||
* R.cond's [predicate, transform] pair in a typeguarded version | ||
*/ | ||
export type CondPairTypeguard<T, TFiltered extends T, R> = [(value: T) => value is TFiltered, (value: TFiltered) => R]; | ||
// --------------------------------------------------------------------------------------- | ||
@@ -278,6 +284,24 @@ // D | ||
/** | ||
* <needs description> | ||
* Takes a lists of arguments and returns either `true` or `false`. | ||
* | ||
* Classical predicates only take one argument, but since ramda | ||
* supports multiple arguments, we also use them like that. | ||
* | ||
* Note that these predicates, don't represent typeguards, | ||
* meaning when this type is used, we can't get type narrowing. | ||
* | ||
* @see {@link PredTypeguard} for the typeguard version of this. | ||
*/ | ||
export type Pred<T extends any[] = any[]> = (...a: T) => boolean; | ||
/** | ||
* Takes an argument and returns either `true` or `false`. | ||
* | ||
* This is usually used as an overload before {@link Pred}. | ||
* If you would this type alone, the function would **required** | ||
* to be a typeguard, meaning a simple function just returning | ||
* a `boolean` wouldn't satisfy this constrain. | ||
*/ | ||
export type PredTypeguard<T, TTypeguarded extends T> = (a: T) => a is TTypeguarded; | ||
// --------------------------------------------------------------------------------------- | ||
@@ -284,0 +308,0 @@ // R |
Sorry, the diff of this file is too big to display
179518
4266