]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(types): props in defineOptions type should be optional
authorEvan You <yyx990803@gmail.com>
Tue, 30 Apr 2024 15:26:39 +0000 (08:26 -0700)
committerEvan You <yyx990803@gmail.com>
Tue, 30 Apr 2024 16:05:41 +0000 (09:05 -0700)
close #10841

packages/runtime-core/src/apiSetupHelpers.ts

index dbe27dde48ee7da499211a29b8c99767fd714bd6..71254d371719259045f74618c4e2d972c9b14c35 100644 (file)
@@ -210,7 +210,7 @@ export function defineOptions<
     /**
      * props should be defined via defineProps().
      */
-    props: never
+    props?: never
     /**
      * emits should be defined via defineEmits().
      */