@peersyst/react-types
Advanced tools
Comparing version 1.3.2 to 1.3.3
# Versions | ||
## 1.2.4 | ||
[LoosenDeeply] | ||
[RecursivePartial -> DeepPartial] | ||
[RecursivePartialExcept -> DeepPartialExcept] | ||
## 1.2.3 | ||
@@ -4,0 +10,0 @@ |
@@ -57,7 +57,7 @@ import { CSSProperties } from "react"; | ||
*/ | ||
type RecursivePartial<T> = { | ||
type DeepPartial<T> = { | ||
[P in keyof T]?: T[P] extends (infer U)[] | ||
? RecursivePartial<U>[] | ||
? DeepPartial<U>[] | ||
: T[P] extends object | ||
? RecursivePartial<T[P]> | ||
? DeepPartial<T[P]> | ||
: T[P]; | ||
@@ -69,3 +69,3 @@ }; | ||
*/ | ||
type RecursivePartialExcept<T, K extends keyof T> = RecursivePartial<T> & Pick<T, K>; | ||
type DeepPartialExcept<T, K extends keyof T> = RecursivePartial<T> & Pick<T, K>; | ||
@@ -83,2 +83,7 @@ /** | ||
/** | ||
* Makes properties of type K optional deeply | ||
*/ | ||
type LoosenDeeply<T, K extends keyof T> = Omit<T, K> & DeepPartial<Pick<T, K>>; | ||
/** | ||
* Gets all keys with type undefined of T | ||
@@ -85,0 +90,0 @@ */ |
{ | ||
"name": "@peersyst/react-types", | ||
"author": "Peersyst", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "types": "./index.d.ts", |
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
4214
81