Преглед изворни кода

fix(types): props in defineOptions type should be optional

close #10841
Evan You пре 2 година
родитељ
комит
124c4cac83
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/runtime-core/src/apiSetupHelpers.ts

+ 1 - 1
packages/runtime-core/src/apiSetupHelpers.ts

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