fix(types): scrip-setup+ts: ensure proper handling of null as default prop value. (#4979)

fix #4868
This commit is contained in:
Thorsten Lünborg 2021-11-25 10:33:29 +01:00 committed by GitHub
parent d145128ab4
commit f2d2d7b2d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,6 +131,7 @@ type InferDefaults<T> = {
}
type InferDefault<P, T> = T extends
| null
| number
| string
| boolean