close #13593
@@ -319,7 +319,14 @@ type InferDefaults<T> = {
[K in keyof T]?: InferDefault<T, T[K]>
}
-type NativeType = null | number | string | boolean | symbol | Function
+type NativeType =
+ | null
+ | undefined
+ | number
+ | string
+ | boolean
+ | symbol
+ | Function
type InferDefault<P, T> =
| ((props: P) => T & {})