Selaa lähdekoodia

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

fix #4868
Thorsten Lünborg 4 vuotta sitten
vanhempi
commit
f2d2d7b2d2
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      packages/runtime-core/src/apiSetupHelpers.ts

+ 1 - 0
packages/runtime-core/src/apiSetupHelpers.ts

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