]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
types(runtime-core): add `undefined` to `NativeType` type (#13594)
authorDylan Lathrum <dylanlathrum@gmail.com>
Wed, 5 Nov 2025 08:50:58 +0000 (01:50 -0700)
committerGitHub <noreply@github.com>
Wed, 5 Nov 2025 08:50:58 +0000 (16:50 +0800)
close #13593

packages/runtime-core/src/apiSetupHelpers.ts

index 209b3364ceca3f2b56400cb483ac304ffe0bdd67..67e1d550387b4a5e8af55b4899ddfb162d15816e 100644 (file)
@@ -319,7 +319,14 @@ type InferDefaults<T> = {
   [K in keyof T]?: InferDefault<T, T[K]>
 }
 
-type NativeType = null | number | string | boolean | symbol | Function
+type NativeType =
+  | null
+  | undefined
+  | number
+  | string
+  | boolean
+  | symbol
+  | Function
 
 type InferDefault<P, T> =
   | ((props: P) => T & {})