-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Typings: getAttributes() typings #2598
Comments
Great! Need to note that it is iOS-only for the time being. Related issue: #2083 |
It also returns different things for different views, and returns array of attributes if there are multiple matches. Good luck 😂 |
Ah, I see it's possible to specify that a function returns either type A or type B, which will work here. 👍 |
It looks like Definitely Typed added this a few days ago. |
They have the following definition:
Which is impressive that they went and documented all that, but inaccurate. If multiple elements are matched, the return type is array of those. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions! For more information on bots in this reporsitory, read this discussion. |
Closing in favor of #2971 (dup). |
The current TypeScript definitions are lacking
element(...).getAttributes()
signature.Let's add it soon.
The text was updated successfully, but these errors were encountered: