-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fix/documentation supplement in address search #221
Fix/documentation supplement in address search #221
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to reject this pull request since it changes documentation facing users that currently do not have access to our type files (they're not part of the published packages), and we know most of them use .js
anyway. Furthermore, examples explicitly refer to javascript (as seen on code fences: "```js") and this wouldn't be valid syntax there.
@jedi-of-the-sea Should you agree, please close this pull request.
@warm-coolguy I partly wanted to document this for myself because in a few month I might have forgotten about this problem and will be confused again 😅 But I agree that the example configurations should not be altered if they are for javascript. Maybe a hint like "Please note that you need to specify the type |
@jedi-of-the-sea Since our users can't use our typescript types, that's still somewhat confusing to them; I'd expect to have a usable Alternative suggestion: We extend the
That's a little unspecific, but saves us various typecasts, and is ultimately true. @dopenguin Requesting approval for change. |
I'd go along with
However, it may become interesting again if we deliver |
Summary
The configuration examples in AddressSearch were not sufficient in case of the bkg and mpapi search methods. To prevent a linting error, it is necessary to typecast the
queryParameters
toBKGParameters
orMpApiParameters
.Instructions for local reproduction and review
Pull Request Checklist (for Reviewee)
UI has been tested in the following tools regarding accessibility (only regarding functionality affected in this PR) - not relevant