From 9b2fe700a786d3b2543a93be8913cb782f2d2d67 Mon Sep 17 00:00:00 2001 From: mioxs <49021590+mioxs@users.noreply.github.com> Date: Tue, 14 Jun 2022 21:34:52 +0800 Subject: [PATCH] Update typeUtils.ts --- packages/shared/src/typeUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/shared/src/typeUtils.ts b/packages/shared/src/typeUtils.ts index 8730d7f38bf..bed04ff1c58 100644 --- a/packages/shared/src/typeUtils.ts +++ b/packages/shared/src/typeUtils.ts @@ -5,7 +5,7 @@ export type UnionToIntersection = ( : never // make keys required but keep undefined values -export type LooseRequired = { [P in string & keyof T]: T[P] } +export type LooseRequired = { [P in keyof T]: T[P] } // If the the type T accepts type "any", output type Y, otherwise output type N. // https://stackoverflow.com/questions/49927523/disallow-call-with-any/49928360#49928360