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

feat: add generic parameters to Modal interfaces #2644

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

matadaniel
Copy link

Description

Improve Modal types

Changsets

Instructions: Changesets automate our changelog. If you modify files in /packages, run pnpm changeset in the root of the monorepo, follow the prompts, then commit the markdown file. Changes that add features should be minor while chores and bugfixes should be patch. Please prefix the changeset message with feat:, bugfix: or chore:.

Checklist

Please read and apply all contribution requirements.

  • This PR targets the dev branch (NEVER master)
  • Documentation reflects all relevant changes
  • Branch is prefixed with: docs/, feat/, chore/, bugfix/
  • Ensure Svelte and Typescript linting is current - run pnpm ci:check
  • Ensure Prettier linting is current - run pnpm format
  • All test cases are passing - run pnpm test
  • Includes a changeset (if relevant; see above)

Copy link

changeset-bot bot commented May 1, 2024

⚠️ No Changeset found

Latest commit: 90aff9c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented May 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
skeleton-docs ✅ Ready (Inspect) Visit Preview May 30, 2024 5:42pm

Copy link

vercel bot commented May 1, 2024

@matadaniel is attempting to deploy a commit to the Skeleton Labs Team on Vercel.

A member of the Team first needs to authorize it.

@endigo9740
Copy link
Contributor

@AdrianGonz97 @ryceg if you guys get a chance you can please review this one. Thank you!

@ryceg
Copy link
Contributor

ryceg commented May 28, 2024

Yeah this looks solid- I'll give it a spin but it's quite a minimal change, but will allow for much better DX.

@endigo9740
Copy link
Contributor

endigo9740 commented May 29, 2024

@matadaniel Just checking on the status of this one. I noted it's still in a "draft" state, so I wanted to confirm all work is complete. Make sure to bump to "ready for review" when you hit that status.

If @ryceg gives the thumbs up we'll merge right away. Thanks!

@matadaniel
Copy link
Author

I made it a draft PR since you said it would allow you to review sooner rather than later, and I wanted a review to make sure no one's current types would break. I have also not completed much of the PR template checklist.

I did come across a discussion that I am unable to find now that mentioned that the ModalSettings.value type should stay as any rather than string. I will add it to the ModalSettings' generic parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants