Skip to content

Conversation

cexbrayat
Copy link
Member

Also removes a ts-ignore.

return h(tag, {}, getSlots(ctx))
const render = (ctx: ComponentPublicInstance) => {
// TS is not happy with this signature, so we cast the Slots as any
return h(tag, {}, getSlots(ctx) as any)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TS is not happy here, as there is no signature of h matching h(string, {}, Slots). But it works, so I added as any even if I don't like it...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After digging a bit into it, I think this should be fixed in vue-next, and I submitted a PR: vuejs/core#1293
We can merge as is for now, and I'll remove the as any cast if Evan accepts my PR.

Copy link
Member

@lmiller1990 lmiller1990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool. Thanks a lot. Your PR looks fine in vue-next, hopefully it's going to be merged soon.

@lmiller1990 lmiller1990 merged commit f5b7d03 into vuejs:master Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants