]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(types): scrip-setup+ts: ensure proper handling of `null` as default prop value...
authorThorsten Lünborg <t.luenborg@googlemail.com>
Thu, 25 Nov 2021 09:33:29 +0000 (10:33 +0100)
committerGitHub <noreply@github.com>
Thu, 25 Nov 2021 09:33:29 +0000 (04:33 -0500)
fix #4868

packages/runtime-core/src/apiSetupHelpers.ts

index fc1866af958b210ec739f1a995d3bd5ce9751e54..02ca5d53e23b6b0fb025bd06458095f9bb69f338 100644 (file)
@@ -131,6 +131,7 @@ type InferDefaults<T> = {
 }
 
 type InferDefault<P, T> = T extends
+  | null
   | number
   | string
   | boolean