Jelajahi Sumber

fix(types): Add missing type parameter constraints (#12754)

Nathan Shively-Sanders 3 tahun lalu
induk
melakukan
810f6d12ed
1 mengubah file dengan 4 tambahan dan 4 penghapusan
  1. 4 4
      types/options.d.ts

+ 4 - 4
types/options.d.ts

@@ -95,8 +95,8 @@ export type ThisTypedComponentOptionsWithArrayProps<
   Computed,
   PropNames extends string,
   SetupBindings,
-  Mixin,
-  Extends
+  Mixin extends ComponentOptionsMixin,
+  Extends extends ComponentOptionsMixin
 > = object &
   ComponentOptions<
     V,
@@ -132,8 +132,8 @@ export type ThisTypedComponentOptionsWithRecordProps<
   Computed,
   Props,
   SetupBindings,
-  Mixin,
-  Extends
+  Mixin extends ComponentOptionsMixin,
+  Extends extends ComponentOptionsMixin
 > = object &
   ComponentOptions<
     V,