From 8ec7cb12e42948cb0203137367d12fd4ac457ef5 Mon Sep 17 00:00:00 2001 From: Dylan Lathrum Date: Wed, 5 Nov 2025 01:50:58 -0700 Subject: [PATCH] types(runtime-core): add `undefined` to `NativeType` type (#13594) close #13593 --- 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 209b3364ce..67e1d55038 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 | number | string | boolean | symbol | Function +type NativeType = + | null + | undefined + | number + | string + | boolean + | symbol + | Function type InferDefault = | ((props: P) => T & {}) -- 2.47.3