Explorar o código

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

close #10841
Evan You %!s(int64=2) %!d(string=hai) anos
pai
achega
124c4cac83
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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().
      */