@material-ui/types
Advanced tools
Comparing version 4.0.1 to 4.1.0
@@ -45,1 +45,12 @@ // disable automatic export | ||
export type Overwrite<T, U> = Omit<T, keyof U> & U; | ||
/** | ||
* Returns true if T is any, otherwise false | ||
*/ | ||
// https://stackoverflow.com/a/49928360/3406963 without generic branch types | ||
export type IsAny<T> = 0 extends (1 & T) ? true : false; | ||
/** | ||
* Returns an empty object type if T is any, otherwise returns T | ||
*/ | ||
export type CoerceEmptyInterface<T> = IsAny<T> extends true ? {} : T; |
{ | ||
"name": "@material-ui/types", | ||
"version": "4.0.1", | ||
"version": "4.1.0", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "author": "Material-UI Team", |
2629
49