Closed jason0x43 closed 4 years ago
This will likely require the use of TS 2.8 conditional types or a separate CommandMulti (or something) type that will be returned by the findAll
methods.
If we went the CommandMulti route, The CommandMulti type would just be an extension of Command that returned array values for the relevant methods (like getVisibleText
).
This was fixed in 3cdba41
Ideally,
getVisibleText
in this instance should resolve to an array: