Skip to content

Commit

Permalink
Remove type altogether
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jan 15, 2020
1 parent fbf1cf2 commit 066d883
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/material-ui-types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ export type Overwrite<T, U> = Omit<T, keyof U> & U;
// 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;

export type Or<A, B, C = false> = A extends true
? true
: B extends true
Expand Down

0 comments on commit 066d883

Please sign in to comment.