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

Type safe render options (props, slots, emits) #305

Closed
sand4rt opened this issue May 24, 2023 · 1 comment
Closed

Type safe render options (props, slots, emits) #305

sand4rt opened this issue May 24, 2023 · 1 comment

Comments

@sand4rt
Copy link
Contributor

sand4rt commented May 24, 2023

Vue released a library (https://www.npmjs.com/package/vue-component-type-helpers) with some type helpers like ComponentProps<typeof Component>, ComponentSlots<typeof Component> and ComponentEmits<typeof Component> which could make the render options type safe.

VTU also recently integrated this library: https://github.com/vuejs/test-utils/blob/main/test-dts/mount.d-test.ts#L60.

related to: #228 and microsoft/playwright#23151

@afontcu
Copy link
Member

afontcu commented May 18, 2024

Fixed in #314

@afontcu afontcu closed this as completed May 18, 2024
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

No branches or pull requests

2 participants