types(runtime-core): add `undefined` to `NativeType` type (#13594)

close #13593
This commit is contained in:
Dylan Lathrum 2025-11-05 01:50:58 -07:00 committed by GitHub
parent c13e674fb9
commit 8ec7cb12e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 1 deletions

View File

@ -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 & {})