You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to use pass slots up, a type error appears.
<templatev-for="(_, slot) in $slots" #[slot]="scope">
<slotv-bind="scope" :name="slot" />
</template>
src/App.vue:7:44 - error TS7053: Element implicitly has an 'any'type because expression of type'string | number' can't be used to index type '{ placeholder: any; afterlist: any; beforelist: any; list: any; multiplelabel: any; singlelabel: any; option: any; groupLabel: any; tag: any; infinite: any; }'. No index signature with a parameter of type 'string' was found on type '{ placeholder: any; afterlist: any; beforelist: any; list: any; multiplelabel: any; singlelabel: any; option: any; groupLabel: any; tag: any; infinite: any; }'. #[slot]="scope"
<Multiselectv-bind="$attrs" :name="name"><templatev-for="(_, slot) in ($slots as unknown as Multiselect['$slots'])" #[slot]="scope"><slot :name="slot"v-bind="scope || {}"/></template></Multiselect>
Version
Description
When trying to use pass slots up, a type error appears.
Demo
Run:
npm run build
https://codesandbox.io/s/pedantic-sky-hb7dqe?file=/src/App.vue
The text was updated successfully, but these errors were encountered: