From 02984a479f76b0168326611e2b5ed15d05d51629 Mon Sep 17 00:00:00 2001 From: Dylan Lathrum Date: Tue, 8 Jul 2025 16:22:12 -0700 Subject: [PATCH 1/2] Add `undefined` to `NativeType` type Fixes: https://github.com/vuejs/core/issues/13593 --- packages/runtime-core/src/apiSetupHelpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/apiSetupHelpers.ts b/packages/runtime-core/src/apiSetupHelpers.ts index 2ddaeb509ad..17a6196e6b5 100644 --- a/packages/runtime-core/src/apiSetupHelpers.ts +++ b/packages/runtime-core/src/apiSetupHelpers.ts @@ -319,7 +319,7 @@ type InferDefaults = { [K in keyof T]?: InferDefault } -type NativeType = null | number | string | boolean | symbol | Function +type NativeType = null | undefined | number | string | boolean | symbol | Function type InferDefault = | ((props: P) => T & {}) From 1b1e93f21a66daf004991495fb1d51d625f7971c Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Wed, 9 Jul 2025 00:08:16 +0000 Subject: [PATCH 2/2] [autofix.ci] apply automated fixes --- packages/runtime-core/src/apiSetupHelpers.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/runtime-core/src/apiSetupHelpers.ts b/packages/runtime-core/src/apiSetupHelpers.ts index 17a6196e6b5..05eefd3f2de 100644 --- a/packages/runtime-core/src/apiSetupHelpers.ts +++ b/packages/runtime-core/src/apiSetupHelpers.ts @@ -319,7 +319,14 @@ type InferDefaults = { [K in keyof T]?: InferDefault } -type NativeType = null | undefined | number | string | boolean | symbol | Function +type NativeType = + | null + | undefined + | number + | string + | boolean + | symbol + | Function type InferDefault = | ((props: P) => T & {})