mirror of https://github.com/vuejs/core.git
types(runtime-core): add `undefined` to `NativeType` type (#13594)
close #13593
This commit is contained in:
parent
c13e674fb9
commit
8ec7cb12e4
|
|
@ -319,7 +319,14 @@ type InferDefaults<T> = {
|
||||||
[K in keyof T]?: InferDefault<T, T[K]>
|
[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> =
|
type InferDefault<P, T> =
|
||||||
| ((props: P) => T & {})
|
| ((props: P) => T & {})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue