docs icon indicating copy to clipboard operation
docs copied to clipboard

Scoped slots + Typescript

Open dts opened this issue 4 years ago • 0 comments

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.

dts avatar Apr 14 '21 17:04 dts