From: Thorsten Lünborg Date: Thu, 25 Nov 2021 09:33:29 +0000 (+0100) Subject: fix(types): scrip-setup+ts: ensure proper handling of `null` as default prop value... X-Git-Tag: v3.2.23~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2d2d7b2d236f256531ae9ad2048bd939c92d834;p=thirdparty%2Fvuejs%2Fcore.git fix(types): scrip-setup+ts: ensure proper handling of `null` as default prop value. (#4979) fix #4868 --- diff --git a/packages/runtime-core/src/apiSetupHelpers.ts b/packages/runtime-core/src/apiSetupHelpers.ts index fc1866af95..02ca5d53e2 100644 --- a/packages/runtime-core/src/apiSetupHelpers.ts +++ b/packages/runtime-core/src/apiSetupHelpers.ts @@ -131,6 +131,7 @@ type InferDefaults = { } type InferDefault = T extends + | null | number | string | boolean