Comparing version 2.9.0 to 2.9.1
@@ -0,3 +1,3 @@ | ||
import { DeepOmitNever, HighDeepOmitNever } from './deep-omit.js'; | ||
import { IfNoDeepValue } from './helpers.js'; | ||
import { OmitNever } from './omit.js'; | ||
@@ -7,6 +7,6 @@ /** | ||
*/ | ||
export type DeepRemoveNulls<T> = _DeepRemoveNulls<T>; | ||
export type DeepRemoveNulls<T> = DeepOmitNever<_DeepRemoveNulls<T>>; | ||
type _DeepRemoveNulls<T> = | ||
IfNoDeepValue<T> extends true ? T | ||
: OmitNever<{ [P in keyof T]: _DeepRemoveNulls<Exclude<T[P], null>> }>; | ||
: { [P in keyof T]: _DeepRemoveNulls<Exclude<T[P], null>> }; | ||
@@ -17,6 +17,6 @@ | ||
*/ | ||
export type HighDeepRemoveNulls<T> = _HighDeepRemoveNulls<T>; | ||
export type HighDeepRemoveNulls<T> = HighDeepOmitNever<_HighDeepRemoveNulls<T>>; | ||
type _HighDeepRemoveNulls<T> = | ||
T extends (infer U)[] ? _HighDeepRemoveNulls<U>[] | ||
: IfNoDeepValue<T> extends true ? T | ||
: OmitNever<{ [P in keyof T]: _HighDeepRemoveNulls<Exclude<T[P], null>> }>; | ||
: { [P in keyof T]: _HighDeepRemoveNulls<Exclude<T[P], null>> }; |
@@ -15,3 +15,3 @@ { | ||
], | ||
"version": "2.9.0", | ||
"version": "2.9.1", | ||
"types": "lib/index.d.ts", | ||
@@ -18,0 +18,0 @@ "main": "lib/index.js", |
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
29877