inferred-types 0.24.0 → 0.24.1
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/dist/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/types/dictionary/props.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -745,7 +745,7 @@ declare type RequiredProps<T extends object> = Pick<T, RequiredKeys<T>>;
|
|
|
745
745
|
*
|
|
746
746
|
* Reduces an object to only key/value pairs where the key is optional
|
|
747
747
|
*/
|
|
748
|
-
declare type OptionalProps<T extends object> = Pick<T,
|
|
748
|
+
declare type OptionalProps<T extends object> = Pick<T, OptionalKeys<T>>;
|
|
749
749
|
/**
|
|
750
750
|
* **WithValue**
|
|
751
751
|
*
|
package/package.json
CHANGED
|
@@ -94,7 +94,7 @@ export type RequiredProps<T extends object> = Pick<T, RequiredKeys<T>>;
|
|
|
94
94
|
*
|
|
95
95
|
* Reduces an object to only key/value pairs where the key is optional
|
|
96
96
|
*/
|
|
97
|
-
export type OptionalProps<T extends object> = Pick<T,
|
|
97
|
+
export type OptionalProps<T extends object> = Pick<T, OptionalKeys<T>>;
|
|
98
98
|
|
|
99
99
|
/**
|
|
100
100
|
* **WithValue**
|