Skip to content

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

Closed
@sand4rt

Description

@sand4rt

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions