Open ViktorSoroka07 opened 3 years ago
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?
Yeah, but I want to assign the type explicitly.
Ok, will export it when I get a moment.
In the meantime you can workaround with type RTLSelector = ReturnType<byRole>
or smth like that
Thank you.
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?