Przeglądaj źródła

chore: fix types

Evan You 5 lat temu
rodzic
commit
68416e988f
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      packages/runtime-core/src/componentSlots.ts

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

@@ -70,7 +70,7 @@ const normalizeSlot = (
       )
       )
     }
     }
     return normalizeSlotValue(rawSlot(props))
     return normalizeSlotValue(rawSlot(props))
-  }, ctx)
+  }, ctx) as Slot
 
 
 const normalizeObjectSlots = (rawSlots: RawSlots, slots: InternalSlots) => {
 const normalizeObjectSlots = (rawSlots: RawSlots, slots: InternalSlots) => {
   const ctx = rawSlots._ctx
   const ctx = rawSlots._ctx