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

Refactor - API helpers to accept object instead of a list of parameters #1976

Open
mohitb35 opened this issue Feb 15, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@mohitb35
Copy link
Collaborator

It may make sense to refactor the API handler parameters to accept a single object instead of a list of parameters.

It avoids having to pass undefined for certain parameters while calling the function, and maintaining the parameter order (devs may not get warned if they pass parameters in the wrong order if the type matches.)

#1765 (comment)

@mohitb35 mohitb35 added the bug Something isn't working label Feb 15, 2024
@mohitb35 mohitb35 mentioned this issue Feb 15, 2024
23 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant