@mui/types 7.2.12 → 7.2.14

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.
Files changed (2) hide show
  1. package/index.d.ts +3 -6
  2. package/package.json +3 -2
package/index.d.ts CHANGED
@@ -67,11 +67,8 @@ type GenerateStringUnion<T> = Extract<
67
67
  >;
68
68
 
69
69
  // https://stackoverflow.com/questions/53807517/how-to-test-if-two-types-are-exactly-the-same
70
- export type IfEquals<T, U, Y = unknown, N = never> = (<G>() => G extends T ? 1 : 2) extends <
71
- G,
72
- >() => G extends U ? 1 : 2
73
- ? Y
74
- : N;
70
+ export type IfEquals<T, U, Y = unknown, N = never> =
71
+ (<G>() => G extends T ? 1 : 2) extends <G>() => G extends U ? 1 : 2 ? Y : N;
75
72
 
76
73
  /**
77
74
  * Issues a type error if `Expected` is not identical to `Actual`.
@@ -95,7 +92,7 @@ export interface OverridableComponent<M extends OverridableTypeMap> {
95
92
  // If you make any changes to this interface, please make sure to update the
96
93
  // `OverridableComponent` type in `mui-material/src/OverridableComponent.d.ts` as well.
97
94
  // Also, there are types in Base UI that have a similar shape to this interface
98
- // (e.g. SelectType, OptionType, etc.).
95
+ // (for example SelectType, OptionType, etc.).
99
96
  <C extends React.ElementType>(
100
97
  props: {
101
98
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/types",
3
- "version": "7.2.12",
3
+ "version": "7.2.14",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "Utility types for MUI.",
@@ -27,7 +27,8 @@
27
27
  "homepage": "https://github.com/mui/material-ui/tree/master/packages/mui-types",
28
28
  "sideEffects": false,
29
29
  "publishConfig": {
30
- "access": "public"
30
+ "access": "public",
31
+ "directory": "build"
31
32
  },
32
33
  "peerDependencies": {
33
34
  "@types/react": "^17.0.0 || ^18.0.0"