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

Constructor simplification #713

Merged

Conversation

toasted-nutbread
Copy link

This change simplifies a lot of the constructors to not take an unnecessary details object. Using a details object is generally only really helpful when there are either 1) lots of parameters and/or 2) several are optional. Otherwise, it is easier to just pass the parameters directly. This should also help reduce the need to go back and forth between multiple files when adjusting one of these constructors, i.e. the .js and the .d.ts.

@toasted-nutbread toasted-nutbread requested a review from a team as a code owner February 19, 2024 18:01
Copy link

github-actions bot commented Feb 19, 2024

✔️ No visual differences introduced by this PR.

View Playwright Report (note: open the "playwright-report" artifact)

@djahandarie djahandarie added this pull request to the merge queue Feb 20, 2024
Merged via the queue into yomidevs:master with commit fe875bb Feb 20, 2024
7 checks passed
@djahandarie djahandarie added the kind/meta The issue or PR is meta label Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/meta The issue or PR is meta
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants