docs
docs copied to clipboard
Scoped slots + Typescript
I'm not sure if this is a documentation issue or a core issue, but I'd like to "pass through" types into scoped slots. For example, if I have a Table component that deals with, say, RemoteCollection<T>, which includes some metadata relevant to the table, but the Table itself doesn't care about T - it would be nice to expose this pass-through typing, so that when I do <Table :data="remoteCollection"><template #row="{row}">{{row.name}}</template></Table> the row.name template can be type checked against whatever type remoteCollection is.