From 8880054bbf9819473b1732a6751aa19eabb6aae5 Mon Sep 17 00:00:00 2001 From: Tim Zook Date: Mon, 2 Sep 2019 16:32:51 -0500 Subject: [PATCH] hotfix for "Type instantiation is excessively deep and possibly infinite." --- src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index cf84e83d..ac5f81fd 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,4 +1,4 @@ -export type Prefer = P & Omit; +export type Prefer = P & T; // https://stackoverflow.com/questions/50374908/transform-union-type-to-intersection-type/50375286#50375286 export type UnionToIntersection = (U extends any