We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0b74a1 commit cbc3e67Copy full SHA for cbc3e67
packages/shared/src/typeUtils.ts
@@ -5,7 +5,7 @@ export type UnionToIntersection<U> = (
5
: never
6
7
// make keys required but keep undefined values
8
-export type LooseRequired<T> = { [P in string & keyof T]: T[P] }
+export type LooseRequired<T> = { [P in keyof (T & Required<T>)]: T[P] }
9
10
// If the the type T accepts type "any", output type Y, otherwise output type N.
11
// https://stackoverflow.com/questions/49927523/disallow-call-with-any/49928360#49928360
0 commit comments