Vue3, Typescript, Slots - how to get typed data returned from slot #9282
Unanswered
mavlutovr
asked this question in
Help/Questions
Replies: 1 comment 1 reply
-
<script lang="ts" setup generic="T extends object">
import type { VNode } from 'vue';
defineSlots<{
default: (props: { item: T }) => VNode[];
}>();
</script> ![]() |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I send a typed list to a component, how can I get typed items of the list back from a slot?
An example:
Beta Was this translation helpful? Give feedback.
All reactions