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

Export Options type #1111

Closed
joshuajaco opened this issue Mar 30, 2023 · 0 comments · Fixed by #1112
Closed

Export Options type #1111

joshuajaco opened this issue Mar 30, 2023 · 0 comments · Fixed by #1112
Labels
enhancement New feature or request

Comments

@joshuajaco
Copy link
Contributor

Problem description

The new docs mention that one can wrap userEvent.setup() in a setup function, however this makes it hard to pass options to userEvent.setup. When trying to make the options the second argument to my custom setup function I currently have to use:

type Options = Parameters<typeof userEvent.setup>[0]

Suggested solution

Export the Options type

Additional context

Relates to #1085

@joshuajaco joshuajaco added enhancement New feature or request needs assessment This needs to be looked at by a team member labels Mar 30, 2023
@ph-fritsche ph-fritsche removed the needs assessment This needs to be looked at by a team member label May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants