Skip to content

Commit

Permalink
hotfix for "Type instantiation is excessively deep and possibly infin…
Browse files Browse the repository at this point in the history
…ite."
  • Loading branch information
Tim Zook committed Sep 2, 2019
1 parent f2a55cf commit 8880054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type Prefer<P, T> = P & Omit<T, keyof P>;
export type Prefer<P, T> = P & T;

// https://stackoverflow.com/questions/50374908/transform-union-type-to-intersection-type/50375286#50375286
export type UnionToIntersection<U> = (U extends any
Expand Down

0 comments on commit 8880054

Please sign in to comment.