types-ramda
Advanced tools
Comparing version 0.29.3 to 0.29.4
@@ -437,8 +437,2 @@ import { A, M } from 'ts-toolbelt'; | ||
/** | ||
* When you have a union type, `keyof T` is not sufficient | ||
* <created by @harris-miller> | ||
*/ | ||
export type KeysOfUnion<T> = T extends infer U ? keyof U : never; | ||
/** | ||
* If `T` is a union, `T[keyof T]` (cf. `map` and `values` in `index.d.ts`) contains the types of object values that are common across the union (i.e., an intersection). | ||
@@ -533,21 +527,1 @@ * Because we want to include the types of all values, including those that occur in some, but not all members of the union, we first define `ValueOfUnion`. | ||
: T; | ||
/** | ||
* Recursively Update a deep property from a given path | ||
* | ||
* @param Keys array of keeps into the object | ||
* @param U The object to change | ||
* @param T the next type at the key path | ||
* | ||
* <created by @harris-miller> | ||
*/ | ||
export type DeepModify<Keys extends readonly PropertyKey[], U, T> = | ||
Keys extends [infer K, ...infer Rest] | ||
? K extends keyof U | ||
? Rest extends readonly [] | ||
? Omit<U, K> & Record<K, T> | ||
: Rest extends readonly PropertyKey[] | ||
? Omit<U, K> & Record<K, DeepModify<Rest, U[K], T>> | ||
: never | ||
: never | ||
: never; |
{ | ||
"name": "types-ramda", | ||
"version": "0.29.3", | ||
"version": "0.29.4", | ||
"description": "Dedicated types library for ramda", | ||
@@ -37,10 +37,11 @@ "author": "Harris Miller <harrismillerconsulting@gmail.com>", | ||
"files": [ | ||
"es" | ||
"es", | ||
"src" | ||
], | ||
"types": "./es/index.d.ts", | ||
"scripts": { | ||
"build": "node scripts/build-types.js", | ||
"build": "node scripts/buildTypes.mjs", | ||
"lint": "eslint . --max-warnings=0", | ||
"test": "tsd", | ||
"typecheck": "tsc --noEmit" | ||
"typecheck": "tsc -p tsconfig.types.json --noEmit" | ||
}, | ||
@@ -54,12 +55,12 @@ "tsd": { | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^5.57.0", | ||
"@typescript-eslint/parser": "^5.57.0", | ||
"@typescript-eslint/eslint-plugin": "^5.60.1", | ||
"@typescript-eslint/parser": "^5.60.1", | ||
"dox": "^1.0.0", | ||
"eslint": "^8.37.0", | ||
"eslint": "^8.43.0", | ||
"eslint-plugin-import": "^2.27.5", | ||
"ramda": "^0.29.0", | ||
"tsd": "^0.28.1", | ||
"typescript": "^5.0.2", | ||
"typescript": "^5.1.6", | ||
"xyz": "^4.0.0" | ||
} | ||
} |
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
246406
5
6733