diff --git a/types/common.d.ts b/types/common.d.ts index 3165711c702..fac059061ce 100644 --- a/types/common.d.ts +++ b/types/common.d.ts @@ -18,4 +18,4 @@ export type HasDefined = Equal extends true ? false : true // https://stackoverflow.com/questions/49927523/disallow-call-with-any/49928360#49928360 export type IfAny = 0 extends 1 & T ? Y : N -export type LooseRequired = { [P in string & keyof T]: T[P] } +export type LooseRequired = { [P in keyof (T & Required)]: T[P] }