ts-gems 3.11.1 → 3.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/required.d.ts CHANGED
@@ -23,7 +23,7 @@ export type DeepRequired<T> = {
23
23
  >]-?: IfNoDeepValue<Exclude<T[K], undefined>> extends true // Do not deep process No-Deep values
24
24
  ? Exclude<T[K], undefined>
25
25
  : // Deep process objects
26
- DeepRequired<Exclude<T[K], undefined>>;
26
+ DeepRequired<NonNullable<T[K]>>;
27
27
  };
28
28
 
29
29
  /**
@@ -38,7 +38,7 @@ export type DeeperRequired<T> = {
38
38
  IfNoDeepValue<NonNullable<T[K]>> extends true
39
39
  ? Exclude<T[K], undefined>
40
40
  : // Deep process objects
41
- DeepRequired<Exclude<T[K], undefined>>;
41
+ DeepRequired<NonNullable<T[K]>>;
42
42
  };
43
43
 
44
44
  /**
@@ -89,7 +89,7 @@ export type DeepPickRequired<T> = {
89
89
  : K]: IfNoDeepValue<NonNullable<T[K]>> extends true // Do not deep process No-Deep values
90
90
  ? T[K]
91
91
  : // Deep process objects
92
- DeepPickRequired<Exclude<T[K], undefined>>;
92
+ DeepPickRequired<NonNullable<T[K]>>;
93
93
  };
94
94
 
95
95
  /**
@@ -106,7 +106,7 @@ export type DeepOmitRequired<T> = {
106
106
  : K]?: IfNoDeepValue<NonNullable<T[K]>> extends true // Do not deep process No-Deep values
107
107
  ? T[K]
108
108
  : // Deep process objects
109
- DeepOmitRequired<Exclude<T[K], undefined>>;
109
+ DeepOmitRequired<NonNullable<T[K]>>;
110
110
  };
111
111
 
112
112
  /**
@@ -126,7 +126,7 @@ export type DeeperPickRequired<T> = {
126
126
  IfNoDeepValue<NonNullable<T[K]>> extends true
127
127
  ? T[K]
128
128
  : // Deep process objects
129
- DeeperPickRequired<Exclude<T[K], undefined>>;
129
+ DeeperPickRequired<NonNullable<T[K]>>;
130
130
  };
131
131
 
132
132
  /**
@@ -146,5 +146,5 @@ export type DeeperOmitRequired<T> = {
146
146
  IfNoDeepValue<NonNullable<T[K]>> extends true
147
147
  ? T[K]
148
148
  : // Deep process objects
149
- DeeperOmitRequired<Exclude<T[K], undefined>>;
149
+ DeeperOmitRequired<NonNullable<T[K]>>;
150
150
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ts-gems",
3
3
  "description": "Valuable typing extensions for TypeScript",
4
- "version": "3.11.1",
4
+ "version": "3.11.2",
5
5
  "license": "MIT",
6
6
  "module": "./lib/index.mjs",
7
7
  "main": "./lib/index.cjs",