Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(types): add RawSlots in h signature #1293

Merged
merged 1 commit into from
Jun 12, 2020

Conversation

cexbrayat
Copy link
Member

RawSlots is supported as a third argument in most signatures except when the first one is a string. I think this is a valid use-case, as @dobromir-hristov used it for stubs in VTU next.
We are currently forced to cast the parameter as any to make TS happy in VTU. This commit should fix that.

Copy link
Member

@pikax pikax left a comment

Choose a reason for hiding this comment

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

Can you add dts tests?

`RawSlots` is supported as a third argument in most signatures except when the first one is a `string`. I _think_ this is a valid use-case, as @dobromir-hristov used it for stubs in VTU next.
We are currently forced to cast the parameter as `any` to make TS happy in VTU. This commit should fix that.
@cexbrayat
Copy link
Member Author

@pikax Sure, done!

@yyx990803 yyx990803 merged commit cab769f into vuejs:master Jun 12, 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.

3 participants