@mui/types
Advanced tools
Comparing version 7.2.13 to 7.2.14-dev.20240529-082515-213b5e33ab
@@ -30,3 +30,6 @@ import * as React from 'react'; | ||
) => React.JSXElementConstructor< | ||
DistributiveOmit<JSX.LibraryManagedAttributes<C, React.ComponentProps<C>>, keyof InjectedProps> & | ||
DistributiveOmit< | ||
React.JSX.LibraryManagedAttributes<C, React.ComponentProps<C>>, | ||
keyof InjectedProps | ||
> & | ||
AdditionalProps | ||
@@ -71,7 +74,4 @@ >; | ||
// https://stackoverflow.com/questions/53807517/how-to-test-if-two-types-are-exactly-the-same | ||
export type IfEquals<T, U, Y = unknown, N = never> = (<G>() => G extends T ? 1 : 2) extends < | ||
G, | ||
>() => G extends U ? 1 : 2 | ||
? Y | ||
: N; | ||
export type IfEquals<T, U, Y = unknown, N = never> = | ||
(<G>() => G extends T ? 1 : 2) extends <G>() => G extends U ? 1 : 2 ? Y : N; | ||
@@ -100,3 +100,3 @@ /** | ||
// Also, there are types in Base UI that have a similar shape to this interface | ||
// (e.g. SelectType, OptionType, etc.). | ||
// (for example SelectType, OptionType, etc.). | ||
<C extends React.ElementType>( | ||
@@ -110,4 +110,4 @@ props: { | ||
} & OverrideProps<M, C>, | ||
): JSX.Element | null; | ||
(props: DefaultComponentProps<M>): JSX.Element | null; | ||
): React.JSX.Element | null; | ||
(props: DefaultComponentProps<M>): React.JSX.Element | null; | ||
propTypes?: any; | ||
@@ -114,0 +114,0 @@ } |
@@ -18,4 +18,4 @@ import * as React from 'react'; | ||
} & OverridePropsVer2<M, C>, | ||
): JSX.Element; | ||
(props: DefaultComponentPropsVer2<M>): JSX.Element; | ||
): React.JSX.Element; | ||
(props: DefaultComponentPropsVer2<M>): React.JSX.Element; | ||
propTypes?: any; | ||
@@ -22,0 +22,0 @@ } |
{ | ||
"name": "@mui/types", | ||
"version": "7.2.13", | ||
"version": "7.2.14-dev.20240529-082515-213b5e33ab", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "author": "MUI Team", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
7966
1