@mui/types 7.2.9 → 7.2.11
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/index.d.ts +7 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -144,5 +144,11 @@ export interface OverridableTypeMap {
|
|
|
144
144
|
* Simplifies the display of a type (without modifying it).
|
|
145
145
|
* Taken from https://effectivetypescript.com/2022/02/25/gentips-4-display/
|
|
146
146
|
*/
|
|
147
|
-
// tslint:disable-next-line: ban-types
|
|
148
147
|
export type Simplify<T> = T extends Function ? T : { [K in keyof T]: T[K] };
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Changes the properties K from T to required
|
|
151
|
+
*/
|
|
152
|
+
export type PartiallyRequired<T, K extends keyof T> = DistributiveOmit<T, K> & {
|
|
153
|
+
[P in K]-?: T[P];
|
|
154
|
+
};
|