Переглянути джерело

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().
      */