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

Unable to import RTLSelector for typing #1

Open
ViktorSoroka07 opened this issue Aug 18, 2021 · 4 comments
Open

Unable to import RTLSelector for typing #1

ViktorSoroka07 opened this issue Aug 18, 2021 · 4 comments

Comments

@ViktorSoroka07
Copy link

I want to use RTLSelector in order to type the shared selectors and need RTLSelector exported for that. Can this be done or maybe there is another alternative approach for that?

@domasx2
Copy link
Owner

domasx2 commented Sep 6, 2021

You don't have to explicitly type them, types are inferred. For example in const input = byRole('textbox') , input will be of type RTLSelector. Or do you have some other use case in mind?

@ViktorSoroka07
Copy link
Author

Yeah, but I want to assign the type explicitly.

@domasx2
Copy link
Owner

domasx2 commented Sep 7, 2021

Ok, will export it when I get a moment.
In the meantime you can workaround with type RTLSelector = ReturnType<byRole> or smth like that

@ViktorSoroka07
Copy link
Author

Thank you.

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