fix(types): scrip-setup+ts: ensure proper handling of null
as default prop value. (#4979)
fix #4868
This commit is contained in:
parent
d145128ab4
commit
f2d2d7b2d2
@ -131,6 +131,7 @@ type InferDefaults<T> = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type InferDefault<P, T> = T extends
|
type InferDefault<P, T> = T extends
|
||||||
|
| null
|
||||||
| number
|
| number
|
||||||
| string
|
| string
|
||||||
| boolean
|
| boolean
|
||||||
|
Loading…
x
Reference in New Issue
Block a user